1 % if ( scalar(@{ $opt{'reason_type'} }) == 0 ) {
3 <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'typenum' %>" VALUE="">
7 <& /elements/tr-td-label.html, label => $opt{'label'} || 'Reason type', %opt &>
9 <TD COLSPAN="<% $colspan %>">
10 <% include( '/elements/select-reason_type.html',
11 'curr_value' => $typenum,
23 my $typenum = $opt{'curr_value'} || $opt{'value'};
25 $opt{'reason_type'} ||= [ qsearch( 'reason_type', { disabled=>'' } ) ];
27 my $colspan = delete($opt{'colspan'}) || 1;