projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Net 9, RT#12722
[freeside.git]
/
httemplate
/
elements
/
select-pkg_class.html
diff --git
a/httemplate/elements/select-pkg_class.html
b/httemplate/elements/select-pkg_class.html
index
032c7ab
..
e47cfe4
100644
(file)
--- 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)',
'table' => 'pkg_class',
'name_col' => 'classname',
'value' => $classnum,
'empty_label' => '(none)',
-
#'hashref' => { 'disabled' => '' }
,
+
'hashref' => \%hash
,
%opt,
)
%>
%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>