X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpkg_category.html;h=20e1093833b3e42eda626379591ae831676b48f5;hb=62bfeae993beb7f98d50d319360f1fece128982b;hp=a244bd53a446e03c5bb90221c5abed6c86548312;hpb=457cf05ffc31212de613249c95a8ab05aed34f47;p=freeside.git 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 = @_; + +