summaryrefslogtreecommitdiff
path: root/httemplate/elements/checkbox.html
diff options
context:
space:
mode:
authorivan <ivan>2011-06-10 03:33:57 +0000
committerivan <ivan>2011-06-10 03:33:57 +0000
commitef398b33e062bbb7a89c527bf4b34d62414c372c (patch)
tree732209a2e97859325ea5b3f8de073425dda97e8e /httemplate/elements/checkbox.html
parent8ea66dde554e2b302ac6a24655fb285eaa569f61 (diff)
add package def option to show $0 recurring on invoices, RT#9777
Diffstat (limited to 'httemplate/elements/checkbox.html')
-rw-r--r--httemplate/elements/checkbox.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/elements/checkbox.html b/httemplate/elements/checkbox.html
index 51760701e..91efe8578 100644
--- a/httemplate/elements/checkbox.html
+++ b/httemplate/elements/checkbox.html
@@ -6,6 +6,7 @@
? ' CHECKED'
: ''
%>
+ <% $opt{disabled} %>
<% $onchange %>
><% $opt{'postfix'} %>
<%init>
@@ -16,4 +17,9 @@ my $onchange = $opt{'onchange'}
? '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>