X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-fixed.html;h=3e115d69af2ed3ebf127dd3285a5c3ec2fa47a36;hp=6904e3b3011be9a9c4776513aa7da292f990bdaf;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=63d5cd3d1b5f7f7acf42eb9e0bb9c9c1f5d4dd47 diff --git a/httemplate/elements/tr-fixed.html b/httemplate/elements/tr-fixed.html index 6904e3b30..3e115d69a 100644 --- a/httemplate/elements/tr-fixed.html +++ b/httemplate/elements/tr-fixed.html @@ -1,16 +1,20 @@ -<% include('tr-td-label.html', @_ ) %> +<& tr-td-label.html, @_ &> - ><% $value %> + <% $colspan %>><% $value %> -<% include('hidden.html', %opt ) %> +<& hidden.html, %opt &> <%init> my %opt = @_; -my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; +my $style = $opt{'cell_style'} + ? ' STYLE="'. $opt{'cell_style'}. '" ' + : ' STYLE="color:#666666" '; + +my $colspan = $opt{'colspan'} ? ' COLSPAN="'. $opt{'colspan'}. '" ' : ''; my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'}; $value = $opt{'prefix'} . $value if defined($opt{'prefix'});