summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authormark <mark>2011-04-29 08:58:19 +0000
committermark <mark>2011-04-29 08:58:19 +0000
commit91fd4ea0e91ee9e6717e0b12e01eebb8f8b21322 (patch)
tree9d2cb55cb767422e00e6cadd6c91714a77e87943 /httemplate/edit
parent4cd3537f6e3e14a596c67478bb83b2095303ec50 (diff)
svc_dish and svc_hardware fixes, #11454
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/hardware_status.html24
-rw-r--r--httemplate/edit/svc_dish.cgi5
-rw-r--r--httemplate/edit/svc_hardware.cgi6
3 files changed, 27 insertions, 8 deletions
diff --git a/httemplate/edit/hardware_status.html b/httemplate/edit/hardware_status.html
index ee5f25db8..23e5b6eba 100644
--- a/httemplate/edit/hardware_status.html
+++ b/httemplate/edit/hardware_status.html
@@ -1,12 +1,20 @@
<% include( 'elements/edit.html',
- 'name' => 'Hardware Status',
- 'table' => 'hardware_status',
- 'labels' => {
- 'statusnum' => 'Status number',
- 'label' => 'Description' ,
- },
- 'viewall_dir' => 'browse',
- )
+ 'name_singular' => 'Hardware Status',
+ 'table' => 'hardware_status',
+ 'labels' => {
+ 'statusnum' => 'Status number',
+ 'label' => 'Description' ,
+ 'disabled' => 'Disable status'
+ },
+ 'fields' => [
+ 'label',
+ { field => 'disabled',
+ type => 'checkbox',
+ value => 'Y',
+ },
+ ],
+ 'viewall_dir' => 'browse',
+ )
%>
<%init>
diff --git a/httemplate/edit/svc_dish.cgi b/httemplate/edit/svc_dish.cgi
index 77a223933..57df49846 100644
--- a/httemplate/edit/svc_dish.cgi
+++ b/httemplate/edit/svc_dish.cgi
@@ -21,6 +21,11 @@ my @fields = (
label => 'DISH Account #',
},
{
+ field => 'installdate',
+ type => 'input-date-field',
+ label => 'Install date',
+ },
+ {
field => 'note',
type => 'textarea',
rows => 4,
diff --git a/httemplate/edit/svc_hardware.cgi b/httemplate/edit/svc_hardware.cgi
index e6cb22bcb..cde74490e 100644
--- a/httemplate/edit/svc_hardware.cgi
+++ b/httemplate/edit/svc_hardware.cgi
@@ -35,12 +35,18 @@ my @fields = (
label => 'IP address',
},
{
+ field => 'smartcard',
+ type => 'text',
+ label => 'Smartcard #',
+ },
+ {
field => 'statusnum',
type => 'select-table',
table => 'hardware_status',
label => 'Service status',
name_col => 'label',
disable_empty => 1,
+ hashref => { 'disabled' => '' },
},
{
field => 'note',