summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-pkg_class.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/tr-select-pkg_class.html')
-rw-r--r--httemplate/elements/tr-select-pkg_class.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-pkg_class.html b/httemplate/elements/tr-select-pkg_class.html
new file mode 100644
index 000000000..7f37e816e
--- /dev/null
+++ b/httemplate/elements/tr-select-pkg_class.html
@@ -0,0 +1,22 @@
+%
+% my( $classnum, %opt ) = @_;
+%
+% $opt{'pkg_class'} ||= [ qsearch( 'pkg_class', {} ) ]; # { disabled=>'' } )
+%
+% #warn "***** tr-select-pkg-class: \n". Dumper(%opt);
+%
+% if ( scalar(@{ $opt{'pkg_class'} }) == 0 ) {
+
+
+ <INPUT TYPE="hidden" NAME="classnum" VALUE="">
+% } else {
+
+
+ <TR>
+ <TD ALIGN="right"><% $opt{'label'} || 'Package class' %></TD>
+ <TD>
+ <% include( '/elements/select-pkg_class.html', $classnum, %opt ) %>
+ </TD>
+ </TR>
+% }
+