From 2d2ba7d543ab88f52a245a8f274950f443c7c3df Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 22 Oct 2016 04:19:53 -0700 Subject: 4.x style advanced customer search --- httemplate/elements/tr-select-cust-fields.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'httemplate/elements/tr-select-cust-fields.html') diff --git a/httemplate/elements/tr-select-cust-fields.html b/httemplate/elements/tr-select-cust-fields.html index 80562fe3d..dd8513316 100644 --- a/httemplate/elements/tr-select-cust-fields.html +++ b/httemplate/elements/tr-select-cust-fields.html @@ -1,15 +1,11 @@ -% -% my( $cust_fields, %opt ) = @_; -% -% use FS::ConfDefaults; -% $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; -% -% - - - <% $opt{'label'} || 'Customer fields' %> - - <% include( '/elements/select-cust-fields.html', $cust_fields, %opt ) %> - + <% $opt{'label'} || mt('Customer fields') |h %> + <& /elements/select-cust-fields.html, $cust_fields, %opt &> +<%init> + +my( $cust_fields, %opt ) = @_; + +$opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; + + -- cgit v1.2.1