diff options
Diffstat (limited to 'httemplate/elements/select-pkg_class.html')
-rw-r--r-- | httemplate/elements/select-pkg_class.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html new file mode 100644 index 0000000..e47cfe4 --- /dev/null +++ b/httemplate/elements/select-pkg_class.html @@ -0,0 +1,22 @@ +<% include( '/elements/select-table.html', + 'table' => 'pkg_class', + 'name_col' => 'classname', + 'value' => $classnum, + 'empty_label' => '(none)', + 'hashref' => \%hash, + %opt, + ) +%> +<%init> + +my %opt = @_; +my $classnum = $opt{'curr_value'} || $opt{'value'}; + +my %hash = (); +$hash{'disabled'} = '' unless $opt{'showdisabled'}; + + +$opt{'records'} = delete $opt{'pkg_class'} + if $opt{'pkg_class'}; + +</%init> |