From ef398b33e062bbb7a89c527bf4b34d62414c372c Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 10 Jun 2011 03:33:57 +0000 Subject: add package def option to show $0 recurring on invoices, RT#9777 --- httemplate/elements/checkbox.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'httemplate/elements/checkbox.html') 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? + -- cgit v1.2.1