RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / elements / tr-select-cust-fields.html
index ca37e42..dd85133 100644 (file)
@@ -1,14 +1,11 @@
-<%
-  my( $cust_fields, %opt ) = @_;
+<TR>
+  <TH ALIGN="right"><% $opt{'label'} || mt('Customer fields') |h %></TH>
+  <TD><& /elements/select-cust-fields.html, $cust_fields, %opt &></TD>
+</TR>
+<%init>
 
-  use FS::ConfDefaults;
-  $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];
+my( $cust_fields, %opt ) = @_;
 
-%>
+$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>
-</TR>
+</%init>