1 % if ( $opt{'part_pkg'} && scalar(@{ $opt{'part_pkg'} }) == 0 ) {
2 % unless ( $opt{'js_only'} ) {
4 <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'pkgpart' %>" VALUE="">
10 % unless ( $opt{'js_only'} ) {
12 <% include('tr-td-label.html', %opt) %>
13 <TD <% $cell_style %>>
17 <% include( '/elements/select-part_pkg.html', %opt ) %>
19 % unless ( $opt{'js_only'} ) {
31 my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
33 $opt{'label'} ||= 'Package definition';
35 #taken care of (better) in select-part_pkg now (is there anything using this
36 # that needs to override the disabed=>'' ??)
37 #$opt{'part_pkg'} ||= [ qsearch( 'part_pkg', {} ) ]; # { disabled=>'' } )