summaryrefslogtreecommitdiff
path: root/httemplate/search/report_svc_hardware.html
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/search/report_svc_hardware.html
parent4cd3537f6e3e14a596c67478bb83b2095303ec50 (diff)
svc_dish and svc_hardware fixes, #11454
Diffstat (limited to 'httemplate/search/report_svc_hardware.html')
-rwxr-xr-xhttemplate/search/report_svc_hardware.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/search/report_svc_hardware.html b/httemplate/search/report_svc_hardware.html
index 4a763b0b4..07a6241e3 100755
--- a/httemplate/search/report_svc_hardware.html
+++ b/httemplate/search/report_svc_hardware.html
@@ -20,7 +20,7 @@
<% include('/elements/tr-input-text.html',
'field' => 'serial',
- 'label' => 'Serial #',
+ 'label' => 'Serial number',
) %>
<% include('/elements/tr-input-text.html',
'field' => 'hw_addr',
@@ -30,12 +30,20 @@
'field' => 'ip_addr',
'label' => 'IP address',
) %>
+ <% include('/elements/tr-input-text.html',
+ 'field' => 'smartcard',
+ 'label' => 'Smartcard #',
+ ) %>
<% include('/elements/tr-select-table.html',
'field' => 'statusnum',
'label' => 'Service status',
'table' => 'hardware_status',
'name_col' => 'label',
'empty_label' => 'any',
+ 'hashref' => {},
+ 'extra_sql' => ' WHERE hardware_status.disabled IS NULL
+OR (SELECT COUNT(*) FROM svc_hardware
+ WHERE svc_hardware.statusnum = hardware_status.statusnum) > 0',
) %>
</TABLE>