X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-td-label.html;h=3111f435cfd02b027235335890404a69c5c5ec5a;hb=081638aa4a483577a9c5bc7ac9ea518370cf2381;hp=77c048405d775292c526f1cba8b3602da60ba9c0;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/httemplate/elements/tr-td-label.html b/httemplate/elements/tr-td-label.html index 77c048405..3111f435c 100644 --- a/httemplate/elements/tr-td-label.html +++ b/httemplate/elements/tr-td-label.html @@ -1,10 +1,18 @@ - +<%doc> + +Actually $label - +Note that this puts the 'label' argument into the document verbatim, with no +escaping or localization. - <% $opt{label} %> + + - + <% $required %><% $opt{label} %> <%init> @@ -14,4 +22,9 @@ my $style = 'padding-top: 3px'; $style .= '; '. $opt{'cell_style'} if $opt{'cell_style'}; +my $required = $opt{'required'} ? '* ' : ''; +if ($required) { + $style .= ';font-weight: bold'; +} +