From b2fd002f3285b70311642f8ff0025598d42bd16e Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 18 Nov 2015 13:07:47 -0800 Subject: track customer invoice destination emails using contact_email, #25536 --- httemplate/elements/tr-checkbox.html | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'httemplate/elements/tr-checkbox.html') diff --git a/httemplate/elements/tr-checkbox.html b/httemplate/elements/tr-checkbox.html index 5761263cf..ed166502b 100644 --- a/httemplate/elements/tr-checkbox.html +++ b/httemplate/elements/tr-checkbox.html @@ -9,13 +9,26 @@ Example: &> -<% include('tr-td-label.html', @_ ) %> +% if ( $opt{'box_first'} ) { + + + <& checkbox.html, @_ &> + <% $required %><% $opt{label} %> + + +% } else { +<& tr-td-label.html, @_ &> > <% include('checkbox.html', @_) %> +% } <%init> @@ -25,6 +38,12 @@ my $onchange = $opt{'onchange'} ? 'onChange="'. $opt{'onchange'}. '(this)"' : ''; -my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; +my $style = 'text-align: left; padding-top: 3px'; +$style .= '; '. $opt{'cell_style'} if $opt{'cell_style'}; + +my $required = $opt{'required'} ? '* ' : ''; +if ($required) { + $style .= ';font-weight: bold'; +} -- cgit v1.2.1