RT# 40206 Add logging to freeside-cdr-mysql
[freeside.git] / httemplate / browse / part_pkg_report_option.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Package optional report classes',
3                  'html_init'   => $html_init,
4                  'name'        => 'package optional report classes',
5                  'disableable' => 1,
6                  'disabled_statuspos' => 2,
7                  'query'       => { 'table'     => 'part_pkg_report_option',
8                                     'hashref'   => {},
9                                     'order_by' => 'ORDER BY name',
10                                   },
11                  'count_query' => 'SELECT COUNT(*) FROM part_pkg_report_option',
12                  'header'      => [ '#', 'Class' ],
13                  'fields'      => [ 'num', 'name' ],
14                  'links'       => [ $link, $link ],
15              )
16 %>
17 <%init>
18
19 die "access denied"
20   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
21
22 my $html_init = 
23   'Package optional report classes define optional groups of packages for reporting only.'.
24   qq!<BR><BR><A HREF="${p}edit/part_pkg_report_option.html"><I>Add a class</I></A><BR><BR>!;
25
26 my $link = [ $p.'edit/part_pkg_report_option.html?', 'num' ];
27
28 </%init>