X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fselect-pkg_class.html;h=e47cfe48c90b4a7236f739e0e9df9a85017cc397;hp=032c7abda9bba558a17ac462fc0064704e26ae60;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=e65c6a26ca778166aec2b2d1dd3012ab84fa611a diff --git a/httemplate/elements/select-pkg_class.html b/httemplate/elements/select-pkg_class.html index 032c7abda..e47cfe48c 100644 --- a/httemplate/elements/select-pkg_class.html +++ b/httemplate/elements/select-pkg_class.html @@ -1,17 +1,22 @@ -<% - my( $classnum, %opt ) = @_; - - $opt{'records'} = delete $opt{'pkg_class'} - if $opt{'pkg_class'}; - - #warn "***** select-pkg-class: \n". Dumper(%opt); - -%><%= include( '/elements/select-table.html', +<% include( '/elements/select-table.html', 'table' => 'pkg_class', 'name_col' => 'classname', 'value' => $classnum, 'empty_label' => '(none)', - #'hashref' => { 'disabled' => '' }, + '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'}; + +