diff options
Diffstat (limited to 'httemplate/elements/tr-select-part_pkg.html')
| -rw-r--r-- | httemplate/elements/tr-select-part_pkg.html | 39 | 
1 files changed, 39 insertions, 0 deletions
| diff --git a/httemplate/elements/tr-select-part_pkg.html b/httemplate/elements/tr-select-part_pkg.html new file mode 100644 index 000000000..88653f465 --- /dev/null +++ b/httemplate/elements/tr-select-part_pkg.html @@ -0,0 +1,39 @@ +% 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'} ) { + +      <% 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> | 
