summaryrefslogtreecommitdiff
path: root/httemplate/edit/hardware_type.html
blob: 09a272402d43604d1dc0e2cc2ba79ee53bace8e3 (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'   => 'Device Type',
                 'table'  => 'hardware_type',
                 'fields' => \@fields,
                 'labels' => { 
                               'typenum'  => 'Type number',
                               'model'    => 'Device model',
                               'classnum' => 'Hardware class',
                             },
                 'viewall_url' => $p.'browse/hardware_class.html',
           )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my @fields = (
  { field => 'classnum',
    type  => 'select-table',
    table => 'hardware_class',
    disable_empty => 1,
    name_col => 'classname',
  },
  'model',
);

</%init>