diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-18 13:07:47 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-18 13:07:47 -0800 |
commit | b2fd002f3285b70311642f8ff0025598d42bd16e (patch) | |
tree | 8005ab27d04c8aaaa7e9bfd10a9ba0f48cafd967 /httemplate/elements/tr-checkbox.html | |
parent | 1daa37e733b9e972e5328503374130a423d02836 (diff) |
track customer invoice destination emails using contact_email, #25536
Diffstat (limited to 'httemplate/elements/tr-checkbox.html')
-rw-r--r-- | httemplate/elements/tr-checkbox.html | 23 |
1 files changed, 21 insertions, 2 deletions
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: &> </%doc> -<% include('tr-td-label.html', @_ ) %> +% if ( $opt{'box_first'} ) { + <TR> + <TH COLSPAN="<% $opt{'colspan'} || 2 %>" + VALIGN = "<% $opt{'valign'} || 'top' %>" + STYLE = "<% $style %>" + ID = "<% $opt{label_id} || $opt{id}. '_label0' %>" + > + <& checkbox.html, @_ &> + <% $required %><% $opt{label} %> + </TH> + </TR> +% } else { +<& tr-td-label.html, @_ &> <TD <% $style %>> <% include('checkbox.html', @_) %> </TD> </TR> +% } <%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'} ? '<font color="#ff0000">*</font> ' : ''; +if ($required) { + $style .= ';font-weight: bold'; +} </%init> |