invoice_sections_with_taxes per-agent, RT#79636
[freeside.git] / httemplate / edit / svc_hardware.cgi
1 <% include( 'elements/svc_Common.html',
2             'table'     => 'svc_hardware',
3             'html_foot' => $html_foot,
4             'fields'    => \@fields,
5     )
6 %>
7 <%init>
8
9 die "access denied"
10   unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
11
12 my $conf = new FS::Conf;
13 my $date_format = $conf->config('date_format') || '%m/%d/%Y';
14
15 my $html_foot = sub { };
16
17 my @fields = (
18   {
19     field => 'typenum',
20     type  => 'select-hardware_type',
21   },
22   {
23     field => 'serial',
24     type  => 'text',
25     label => 'Device serial #',
26   },
27   {
28     field => 'hw_addr',
29     type  => $conf->exists('svc_hardware-check_mac_addr') ? 
30               'input-mac_addr' : 'text',
31     label => 'Hardware address',
32   },
33   {
34     field => 'ip_addr',
35     type  => 'text',
36     label => 'IP address',
37   },
38   {
39     field => 'smartcard',
40     type  => 'text',
41     label => 'Smartcard #',
42   },
43   {
44     field => 'statusnum',
45     type  => 'select-table',
46     table => 'hardware_status',
47     label => 'Service status',
48     name_col => 'label',
49     disable_empty => 1,
50     hashref => { 'disabled' => '' },
51   },
52   {
53     field => 'note',
54     type  => 'textarea',
55     rows  => 8,
56     cols  => 50,
57     label => 'Installation notes',
58   },
59
60 );
61     
62 </%init>