Reverted menu-left-example.png back to original and cleaned up menu-top-example to...
[freeside.git] / httemplate / browse / discount.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Discounts',
3                  'name'        => 'discounts',
4                  'menubar'     => [ 'Add a new discount' =>
5                                       $p.'edit/discount.html',
6                                   ],
7                  'query'       => { 'table' => 'discount', },
8                  'count_query' => 'SELECT COUNT(*) FROM discount',
9                  'disableable' => 1,
10                  'disabled_statuspos' => 1,
11                  'header'      => [ 'Name', 'Comment', 'Class', 'Discount', ],
12                  'fields'      => [ 'name',
13                                     'comment',
14                                     'classname',
15                                     'description',
16                                   ],
17                  'links'       => [ $link,
18                                     $link,
19                                   ],
20              )
21 %>
22 <%init>
23
24 die "access denied"
25   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
26
27 my $link = [ "${p}edit/discount.html?", 'discountnum' ];
28
29 </%init>