1 <% include( 'edit.html',
5 ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>'pkg_category', 'name_col'=>'categoryname' }
6 : { field=>'categorynum', type=>'hidden' }
8 { field=>'disabled', type=>'checkbox', value=>'Y', },
11 'classnum' => 'Class number',
12 'classname' => 'Class name',
13 'categorynum' => 'Category',
14 'disabled' => 'Disable class',
16 'viewall_dir' => 'browse',
24 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
28 my $table = $opt{'table'};
31 unless ( $opt{'nocat'} ) {
32 ( my $category_table = $table ) =~ s/class/category/ or die;
33 @category = qsearch($category_table, { 'disabled' => '' });