RT# 77498 - Customer Import now uses contact/Import.pm rather than contact_import.pm
[freeside.git] / httemplate / elements / tr-select-cust_class.html
1 % if ( scalar(@{ $opt{'cust_class'} }) == 0 ) { 
2
3   <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE="">
4
5 % } else { 
6
7   <TR>
8     <TH ALIGN="right"><% $opt{'label'} || 'Customer class' %></TD>
9     <TD>
10       <% include( '/elements/select-cust_class.html',
11                     'curr_value' => $classnum,
12                     %opt
13                 )
14       %>
15     </TD>
16   </TR>
17
18 % } 
19
20 <%init>
21
22 my %opt = @_;
23 my $classnum = $opt{'curr_value'} || $opt{'value'};
24
25 $opt{'cust_class'} ||= [ qsearch( 'cust_class', { disabled=>'' } ) ];
26
27 </%init>