-<%
- my( $classnum, %opt ) = @_;
-
- my %select_opt = ();
- $select_opt{'records'} = $opt{'pkg_class'}
- if $opt{'pkg_class'};
-
-%><%= include( '/elements/select-table.html',
+<% include( '/elements/select-table.html',
'table' => 'pkg_class',
'name_col' => 'classname',
'value' => $classnum,
'empty_label' => '(none)',
- #'hashref' => { 'disabled' => '' },
- #%select_opt,
+ '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>