summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_pkg_report_option.html
blob: 00f2e8388403a41083580f9a66be5469873c6146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<% include( 'elements/browse.html',
                 'title'       => 'Package optional report classes',
                 'html_init'   => $html_init,
                 'name'        => 'package optional report classes',
                 'disableable' => 1,
                 'disabled_statuspos' => 2,
                 'query'       => { 'table'     => 'part_pkg_report_option',
                                    'hashref'   => {},
                                    'order_by' => 'ORDER BY name',
                                  },
                 'count_query' => 'SELECT COUNT(*) FROM part_pkg_report_option',
                 'header'      => [ '#', 'Class' ],
                 'fields'      => [ 'num', 'name' ],
                 'links'       => [ $link, $link ],
             )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $html_init = 
  'Package optional report classes define optional groups of packages for reporting only.'.
  qq!<BR><BR><A HREF="${p}edit/part_pkg_report_option.html"><I>Add a class</I></A><BR><BR>!;

my $link = [ $p.'edit/part_pkg_report_option.html?', 'num' ];

</%init>