summaryrefslogtreecommitdiff
path: root/httemplate/edit/pkg_class.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/pkg_class.html')
-rw-r--r--httemplate/edit/pkg_class.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/pkg_class.html b/httemplate/edit/pkg_class.html
index eddbfc16e..2e4e9d1cd 100644
--- a/httemplate/edit/pkg_class.html
+++ b/httemplate/edit/pkg_class.html
@@ -3,6 +3,10 @@
'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' => {
@@ -19,4 +23,5 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+my @category = qsearch('pkg_category', { 'disabled' => '' });
</%init>