summaryrefslogtreecommitdiff
path: root/httemplate/edit/pkg_category.html
diff options
context:
space:
mode:
authorjeff <jeff>2009-11-20 17:33:40 +0000
committerjeff <jeff>2009-11-20 17:33:40 +0000
commit62bfeae993beb7f98d50d319360f1fece128982b (patch)
tree6c97d81c0983b672dfeb15aeaf00f8be58cf4dec /httemplate/edit/pkg_category.html
parent457cf05ffc31212de613249c95a8ab05aed34f47 (diff)
invoice formatting: add sections for usage, add sections per svc_phone, add folding like line items into one #6592
Diffstat (limited to 'httemplate/edit/pkg_category.html')
-rw-r--r--httemplate/edit/pkg_category.html27
1 files changed, 25 insertions, 2 deletions
diff --git a/httemplate/edit/pkg_category.html b/httemplate/edit/pkg_category.html
index a244bd53a..20e109383 100644
--- a/httemplate/edit/pkg_category.html
+++ b/httemplate/edit/pkg_category.html
@@ -1,5 +1,28 @@
-<% include( 'elements/category_Common.html',
+<% include( 'elements/edit.html',
'name' => 'Package Category',
'table' => 'pkg_category',
- )
+ 'fields' => [
+ 'categoryname',
+ 'weight',
+ { field=>'condense', type=>'checkbox', value=>'Y', },
+ { field=>'disabled', type=>'checkbox', value=>'Y', },
+ ],
+ 'labels' => {
+ 'categorynum' => 'Category number',
+ 'categoryname' => 'Category name',
+ 'weight' => 'Weight',
+ 'condense' => 'Collapse identical items to one',
+ 'disabled' => 'Disable category',
+ },
+ 'viewall_dir' => 'browse',
+ %opt,
+ )
%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my %opt = @_;
+
+</%init>