diff options
author | jeff <jeff> | 2008-08-23 21:59:46 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-08-23 21:59:46 +0000 |
commit | ef0d8db38d1ee28a65a7ecdc6e11c7a82c0a741b (patch) | |
tree | 78518afc3aa8623211251caedf78459167cd0877 /httemplate/browse/usage_class.html | |
parent | 8381e7232f90ac22b3f655cdccd0d39e2bde1d63 (diff) |
add usage classes to rate details
Diffstat (limited to 'httemplate/browse/usage_class.html')
-rw-r--r-- | httemplate/browse/usage_class.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/browse/usage_class.html b/httemplate/browse/usage_class.html new file mode 100644 index 000000000..63fd2c5a2 --- /dev/null +++ b/httemplate/browse/usage_class.html @@ -0,0 +1,28 @@ +<% include( 'elements/browse.html', + 'title' => 'Usage classes', + 'html_init' => $html_init, + 'name' => 'usage classes', + 'disableable' => 1, + 'disabled_statuspos' => 2, + 'query' => { 'table' => 'usage_class', + 'hashref' => {}, + 'extra_sql' => 'ORDER BY classnum', + }, + 'count_query' => 'SELECT COUNT(*) FROM usage_class', + 'header' => [ '#', 'Class' ], + 'fields' => [ 'classnum', 'classname' ], + 'links' => [ $link, $link ], + ) +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $html_init = + 'Usage classes define groups of usage for taxation purposes.<BR><BR>'. + qq!<A HREF="${p}edit/usage_class.html"><I>Add a usage class</I></A><BR><BR>!; + +my $link = [ $p.'edit/usage_class.html?', 'classnum' ]; + +</%init> |