summaryrefslogtreecommitdiff
path: root/httemplate/edit/pkg_category.html
blob: 3be74c7f55f86d5366ab419aecadb330d548886c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<% include( 'elements/edit.html',
              'name_singular' => '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 = @_;

</%init>