enable CardFortress in test database, #71513
[freeside.git] / httemplate / elements / tr-select-reason_type.html
1 % if ( scalar(@{ $opt{'reason_type'} }) == 0 ) { 
2
3   <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'typenum' %>" VALUE="">
4
5 % } else { 
6
7    <& /elements/tr-td-label.html, label => $opt{'label'} || 'Reason type', %opt &>
8
9     <TD COLSPAN="<% $colspan %>">
10       <% include( '/elements/select-reason_type.html',
11                     'curr_value' => $typenum,
12                     %opt
13                 )
14       %>
15     </TD>
16   </TR>
17
18 % } 
19
20 <%init>
21
22 my %opt = @_;
23 my $typenum = $opt{'curr_value'} || $opt{'value'};
24
25 $opt{'reason_type'} ||= [ qsearch( 'reason_type', { disabled=>'' } ) ];
26
27 my $colspan = delete($opt{'colspan'}) || 1;
28
29 </%init>