diff options
| author | mark <mark> | 2011-04-01 02:52:24 +0000 | 
|---|---|---|
| committer | mark <mark> | 2011-04-01 02:52:24 +0000 | 
| commit | b65b8096089410001dfbcd35f9a56f9405b9f5f1 (patch) | |
| tree | df16b0422007bd876bc969bdff857d8a510b0aca /httemplate/edit/svc_hardware.cgi | |
| parent | 19b0c403fbf697a1de92f12abc8a2104daca07bc (diff) | |
svc_hardware and svc_dish, #11454
Diffstat (limited to 'httemplate/edit/svc_hardware.cgi')
| -rw-r--r-- | httemplate/edit/svc_hardware.cgi | 55 | 
1 files changed, 55 insertions, 0 deletions
diff --git a/httemplate/edit/svc_hardware.cgi b/httemplate/edit/svc_hardware.cgi new file mode 100644 index 000000000..e6cb22bcb --- /dev/null +++ b/httemplate/edit/svc_hardware.cgi @@ -0,0 +1,55 @@ +<% include( 'elements/svc_Common.html', +            'table'   	=> 'svc_hardware', +            'html_foot' => $html_foot, +            'fields'    => \@fields, +    ) +%> +<%init> + +die "access denied" +  unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific? + +my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + +my $html_foot = sub { }; + +my @fields = ( +  { +    field => 'typenum', +    type  => 'select-hardware_type', +  }, +  { +    field => 'serial', +    type  => 'text', +    label => 'Device serial #', +  }, +  { +    field => 'hw_addr', +    type  => 'text', +    label => 'Hardware address', +  }, +  { +    field => 'ip_addr', +    type  => 'text', +    label => 'IP address', +  }, +  { +    field => 'statusnum', +    type  => 'select-table', +    table => 'hardware_status', +    label => 'Service status', +    name_col => 'label', +    disable_empty => 1, +  }, +  { +    field => 'note', +    type  => 'textarea', +    rows  => 4, +    cols  => 30, +    label => 'Installation notes', +  }, + +); +     +</%init>  | 
