summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-05-25 12:14:24 +0000
committerivan <ivan>2010-05-25 12:14:24 +0000
commitd5b344c9d44f9dcc1efd68dc879dcfbe280a33fb (patch)
tree049ce832d30e73132b8ffeb168c49650c5b7b9bc
parentb0cea1070026b23dedb0e3638bd958d773c3d4b4 (diff)
add showdisabled option
-rw-r--r--httemplate/elements/select-pkg_class.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html
index f30259e55..e47cfe48c 100644
--- a/httemplate/elements/select-pkg_class.html
+++ b/httemplate/elements/select-pkg_class.html
@@ -3,7 +3,7 @@
'name_col' => 'classname',
'value' => $classnum,
'empty_label' => '(none)',
- 'hashref' => { 'disabled' => '' },
+ 'hashref' => \%hash,
%opt,
)
%>
@@ -12,6 +12,10 @@
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'};