projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added refund reasons to main menu
[freeside.git]
/
httemplate
/
elements
/
checkbox.html
diff --git
a/httemplate/elements/checkbox.html
b/httemplate/elements/checkbox.html
index
5176070
..
91efe85
100644
(file)
--- a/
httemplate/elements/checkbox.html
+++ b/
httemplate/elements/checkbox.html
@@
-6,6
+6,7
@@
? ' CHECKED'
: ''
%>
? ' CHECKED'
: ''
%>
+ <% $opt{disabled} %>
<% $onchange %>
><% $opt{'postfix'} %>
<%init>
<% $onchange %>
><% $opt{'postfix'} %>
<%init>
@@
-16,4
+17,9
@@
my $onchange = $opt{'onchange'}
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
+$opt{'disabled'} = &{ $opt{'disabled'} }( \%opt )
+ if ref($opt{'disabled'}) eq 'CODE';
+$opt{'disabled'} = 'DISABLED'
+ if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah?
+
</%init>
</%init>