diff options
author | ivan <ivan> | 2007-08-01 22:26:52 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-08-01 22:26:52 +0000 |
commit | eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd (patch) | |
tree | bb38241e8c865c3bca861da7749071feeadd2b5b /httemplate/elements/tr-select-part_pkg.html | |
parent | 32b5d3a31f112a381f0a15ac5e3a2204242f3405 (diff) |
event refactor, landing on HEAD!
Diffstat (limited to 'httemplate/elements/tr-select-part_pkg.html')
-rw-r--r-- | httemplate/elements/tr-select-part_pkg.html | 29 |
1 files changed, 29 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..b6d4d4d9e --- /dev/null +++ b/httemplate/elements/tr-select-part_pkg.html @@ -0,0 +1,29 @@ +% if ( scalar(@{ $opt{'part_pkg'} }) == 0 ) { + + <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'pkgpart' %>" VALUE=""> + +% } else { + + <TR> + <TD ALIGN="right"><% $opt{'label'} || 'Package definition' %></TD> + <TD> + <% include( '/elements/select-table.html', + 'table' => 'part_pkg', + 'name_col' => 'pkg', + 'multiple' => 1, + #N/A 'empty_label' => '(none)', + %opt, + ) + %> + </TD> + </TR> + +% } + +<%init> + +my( %opt ) = @_; + +$opt{'part_pkg'} ||= [ qsearch( 'part_pkg', {} ) ]; # { disabled=>'' } ) + +</%init> |