blob: db9afd2dfbcaba06694681273599a44ac437b3c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
% if ( $opt{'part_pkg'} && scalar(@{ $opt{'part_pkg'} }) == 0 ) {
% unless ( $opt{'js_only'} ) {
<INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'pkgpart' %>" VALUE="">
% }
%
% } else {
%
% unless ( $opt{'js_only'} ) {
<% include('tr-td-label.html', %opt) %>
<TD <% $cell_style %>>
% }
%
<% include( '/elements/select-part_pkg.html', %opt ) %>
%
% unless ( $opt{'js_only'} ) {
</TD>
</TR>
% }
%
% }
<%init>
my( %opt ) = @_;
my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
$opt{'label'} ||= 'Package definition';
#taken care of (better) in select-part_pkg now (is there anything using this
# that needs to override the disabed=>'' ??)
#$opt{'part_pkg'} ||= [ qsearch( 'part_pkg', {} ) ]; # { disabled=>'' } )
</%init>
|