summaryrefslogtreecommitdiff
path: root/httemplate/edit/pkg_class.html
diff options
context:
space:
mode:
authorivan <ivan>2009-10-29 01:08:33 +0000
committerivan <ivan>2009-10-29 01:08:33 +0000
commit9d77a21db3642ca66d9a0e545b804b7e6b4090ee (patch)
tree8323e01c8e25420222c97b4e0ea87f89b73203fd /httemplate/edit/pkg_class.html
parentf274814c7cde3681578ca594a2b00475370e4c92 (diff)
customer classification, RT#6376
Diffstat (limited to 'httemplate/edit/pkg_class.html')
-rw-r--r--httemplate/edit/pkg_class.html27
1 files changed, 2 insertions, 25 deletions
diff --git a/httemplate/edit/pkg_class.html b/httemplate/edit/pkg_class.html
index 26bc8ba..4f7a729 100644
--- a/httemplate/edit/pkg_class.html
+++ b/httemplate/edit/pkg_class.html
@@ -1,28 +1,5 @@
-<% include( 'elements/edit.html',
+<% include( 'elements/class_Common.html',
'name' => 'Package Class',
'table' => 'pkg_class',
- 'fields' => [
- 'classname',
- (scalar(@category)
- ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>'pkg_category', 'name_col'=>'categoryname' }
- : { field=>'categorynum', type=>'hidden' }
- ),
- { field=>'disabled', type=>'checkbox', value=>'Y', },
- ],
- 'labels' => {
- 'classnum' => 'Class number',
- 'classname' => 'Class name',
- 'categorynum' => 'Category',
- 'disabled' => 'Disable class',
- },
- 'viewall_dir' => 'browse',
- )
-
+ )
%>
-<%init>
-
-die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-
-my @category = qsearch('pkg_category', { 'disabled' => '' });
-</%init>