summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-part_pkg.html
blob: 400cc5ae8190131d8d362f44b07bd2f8a50d41b7 (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
% if ( $opt{'part_pkg'} && scalar(@{ $opt{'part_pkg'} }) == 0 ) { 
%   unless ( $opt{'js_only'} ) {

      <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'pkgpart' %>" VALUE="">

%   }
%
% } else { 
%
%   unless ( $opt{'js_only'} ) {

      <& tr-td-label.html, %opt &>
        <TD <% $cell_style %>>

%   }
%
          <& /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'} ||= emt('Package definition');

</%init>