% if ( 0 ) { # scalar(@{ $opt{'vend_class'} }) == 0 ) {
% } else {
<% $opt{'label'} || 'Vendor class' %> |
<% include( '/elements/select-vend_class.html',
'curr_value' => $classnum,
%opt
)
%>
|
% }
<%init>
my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};
$opt{'vend_class'} ||= [ qsearch( 'vend_class', { disabled=>'' } ) ];
%init>