From eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 1 Aug 2007 22:26:52 +0000 Subject: event refactor, landing on HEAD! --- httemplate/elements/tr-select-part_pkg.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 httemplate/elements/tr-select-part_pkg.html (limited to 'httemplate/elements/tr-select-part_pkg.html') 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 ) { + + + +% } else { + + + <% $opt{'label'} || 'Package definition' %> + + <% include( '/elements/select-table.html', + 'table' => 'part_pkg', + 'name_col' => 'pkg', + 'multiple' => 1, + #N/A 'empty_label' => '(none)', + %opt, + ) + %> + + + +% } + +<%init> + +my( %opt ) = @_; + +$opt{'part_pkg'} ||= [ qsearch( 'part_pkg', {} ) ]; # { disabled=>'' } ) + + -- cgit v1.2.1