summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-part_pkg.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/tr-select-part_pkg.html')
-rw-r--r--httemplate/elements/tr-select-part_pkg.html35
1 files changed, 35 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..400cc5ae8
--- /dev/null
+++ b/httemplate/elements/tr-select-part_pkg.html
@@ -0,0 +1,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>