X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_svc_hardware.html;h=07a6241e38b2d6d6a115f8c8a7c97c06941715c0;hp=4a763b0b4054264b65dc57952ccba38eaf71359c;hb=91fd4ea0e91ee9e6717e0b12e01eebb8f8b21322;hpb=4cd3537f6e3e14a596c67478bb83b2095303ec50 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', ) %>