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