X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_svc_hardware.html;h=b0bfc08c7f6d8d196bf6af9cc3de212a0137add6;hp=07a6241e38b2d6d6a115f8c8a7c97c06941715c0;hb=HEAD;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/httemplate/search/report_svc_hardware.html b/httemplate/search/report_svc_hardware.html index 07a6241e3..b0bfc08c7 100755 --- a/httemplate/search/report_svc_hardware.html +++ b/httemplate/search/report_svc_hardware.html @@ -7,15 +7,19 @@ Search options - - <% include('/elements/selectlayers.html', - 'field' => 'classnum', - 'label' => '', - 'options' => \@classnums, - 'labels' => \%class_labels, - 'layer_callback' => \&layer_callback, - 'html_between' => '', - ) %> + <& /elements/tr-td-label.html, label => 'Device type' &> +%# <% include('/elements/selectlayers.html', +%# 'field' => 'classnum', +%# 'label' => '', +%# 'options' => \@classnums, +%# 'labels' => \%class_labels, +%# 'layer_callback' => \&layer_callback, +%# 'html_between' => '', +%# ) %> + + <& /elements/select-hardware_type.html, + 'empty_label' => '(all)' + &> <% include('/elements/tr-input-text.html', @@ -57,7 +61,7 @@ OR (SELECT COUNT(*) FROM svc_hardware <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('List packages'); #? + unless $FS::CurrentUser::CurrentUser->access_right('Services: Hardware: Advanced search'); my $title = 'Hardware Service Report'; @@ -71,6 +75,7 @@ sub layer_callback { include('/elements/select-hardware_type.html', 'field' => 'classnum'.$classnum.'typenum', 'classnum' => $classnum, + 'prefix' => $classnum, 'empty_label' => 'any', ); }