optimize CDR rating after timed rate perf regression, RT#15739
[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  => 'text',
30     label => 'Hardware address',
31   },
32   {
33     field => 'ip_addr',
34     type  => 'text',
35     label => 'IP address',
36   },
37   {
38     field => 'smartcard',
39     type  => 'text',
40     label => 'Smartcard #',
41   },
42   {
43     field => 'statusnum',
44     type  => 'select-table',
45     table => 'hardware_status',
46     label => 'Service status',
47     name_col => 'label',
48     disable_empty => 1,
49     hashref => { 'disabled' => '' },
50   },
51   {
52     field => 'note',
53     type  => 'textarea',
54     rows  => 8,
55     cols  => 50,
56     label => 'Installation notes',
57   },
58
59 );
60     
61 </%init>