% if ( scalar(@{ $opt{'reason_type'} }) == 0 ) {
% } else {
<& /elements/tr-td-label.html, label => $opt{'label'} || 'Reason type', %opt &>
<% include( '/elements/select-reason_type.html',
'curr_value' => $typenum,
%opt
)
%>
|
% }
<%init>
my %opt = @_;
my $typenum = $opt{'curr_value'} || $opt{'value'};
$opt{'reason_type'} ||= [ qsearch( 'reason_type', { disabled=>'' } ) ];
my $colspan = delete($opt{'colspan'}) || 1;
%init>