Merge branch '20150325-cust_main-CurrentUser' of https://github.com/fozzmoo/Freeside...
[freeside.git] / httemplate / browse / part_pkg_taxclass.html
1 <% include( 'elements/browse.html',
2                  'title'         => 'Tax Classes',
3                  'name_singular' => 'tax class',
4                  'menubar'       => [ 'Add a new tax class' =>
5                                         $p.'edit/part_pkg_taxclass.html',
6                                     ],
7                  'query'         => { 'table' => 'part_pkg_taxclass', },
8                  'count_query'   => 'SELECT COUNT(*) FROM part_pkg_taxclass',
9                  'header'        => [ '#', 'Tax class' ],
10                  'fields'        => [ 'taxclassnum',
11                                       'taxclass',
12                                     ],
13                  'links'         => [ $link,
14                                       $link,
15                                     ],
16                  'disableable'   => 1,
17                  'disabled_statuspos' => 1,
18              )
19 %>
20 <%init>
21
22 die "access denied"
23   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
24
25 my $link = [ "${p}edit/part_pkg_taxclass.html?", 'taxclassnum' ];
26
27 </%init>