X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-checkbox.html;h=ed166502b306b3262d4469337693e903b66d22d3;hb=2554b11e48a7ec4567bf89f9a48f7a83ec925eea;hp=5761263cf8947f638fd9b49b151015db085f7664;hpb=67ed70f00872700565d6868627da427016d2c6e3;p=freeside.git 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'; +}