summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-10-22 04:19:57 -0700
committerIvan Kohler <ivan@freeside.biz>2016-10-22 04:19:57 -0700
commit17e0ba08c98efa2e0173995ae9502a498b950a65 (patch)
tree0d079109ea729d4120f2597e961f567d7a83815e /httemplate/elements
parentad20de4aa7709e54f5af5670946ccc64484a8cf8 (diff)
4.x style advanced customer search
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-input-lessthan_greaterthan.html4
-rw-r--r--httemplate/elements/tr-select-cust-fields.html22
2 files changed, 11 insertions, 15 deletions
diff --git a/httemplate/elements/tr-input-lessthan_greaterthan.html b/httemplate/elements/tr-input-lessthan_greaterthan.html
index 16c2ed9fc..961be5b61 100644
--- a/httemplate/elements/tr-input-lessthan_greaterthan.html
+++ b/httemplate/elements/tr-input-lessthan_greaterthan.html
@@ -1,10 +1,10 @@
<TR>
- <TD ALIGN="right"><% $opt{label} %> less than: </TD>
+ <TH ALIGN="right"><% $opt{label} %> less than: </TH>
<TD><INPUT TYPE="text" NAME="<% $opt{field} %>_lt" SIZE=7></TD>
</TR>
<TR>
- <TD ALIGN="right"><% $opt{label} %> greater than: </TD>
+ <TH ALIGN="right"><% $opt{label} %> greater than: </TH>
<TD><INPUT TYPE="text" NAME="<% $opt{field} %>_gt" SIZE=7></TD>
</TR>
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() ];
-%
-%
-
-
<TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Customer fields' %></TD>
- <TD>
- <% include( '/elements/select-cust-fields.html', $cust_fields, %opt ) %>
- </TD>
+ <TH ALIGN="right"><% $opt{'label'} || mt('Customer fields') |h %></TH>
+ <TD><& /elements/select-cust-fields.html, $cust_fields, %opt &></TD>
</TR>
+<%init>
+
+my( $cust_fields, %opt ) = @_;
+
+$opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];
+
+</%init>