X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fpkg_class.html;h=498c34a6b0ee09f3c263a0718d71ebb41ab15aa1;hp=26bc8baa5c0418fabce57a3b38c71fd628da00fd;hb=HEAD;hpb=ccf4534b4dce67626c17bfe1300d0d2d6b035bc8 diff --git a/httemplate/edit/pkg_class.html b/httemplate/edit/pkg_class.html index 26bc8baa5..498c34a6b 100644 --- a/httemplate/edit/pkg_class.html +++ b/httemplate/edit/pkg_class.html @@ -1,28 +1,4 @@ -<% include( 'elements/edit.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' => '' }); - +<& elements/class_Common.html, + 'name_singular' => 'Package Class', + 'table' => 'pkg_class', +&>