diff options
Diffstat (limited to 'httemplate/browse/discount.html')
-rw-r--r-- | httemplate/browse/discount.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/browse/discount.html b/httemplate/browse/discount.html new file mode 100644 index 000000000..13dc1e6f9 --- /dev/null +++ b/httemplate/browse/discount.html @@ -0,0 +1,27 @@ +<% include( 'elements/browse.html', + 'title' => 'Discounts', + 'name' => 'discounts', + 'menubar' => [ 'Add a new discount' => + $p.'edit/discount.html', + ], + 'query' => { 'table' => 'discount', }, + 'count_query' => 'SELECT COUNT(*) FROM discount', + 'disableable' => 1, + 'disabled_statuspos' => 1, + 'header' => [ 'Name', 'Discount', ], + 'fields' => [ 'name', + 'description', + ], + 'links' => [ $link, + '', + ], + ) +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $link = [ "${p}edit/discount.html?", 'discountnum' ]; + +</%init> |