X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-fixed.html;h=dad8da03fc16565ef41c701ed7fcbc2ca6c63140;hb=50f247ce6da7497428ce772d3c37c6cba3b9c736;hp=f358343dd1c97e196f04b437eeebaf86733810c1;hpb=307a7d85568a15f5eb0d97c648507484108fcc56;p=freeside.git
diff --git a/httemplate/elements/tr-fixed.html b/httemplate/elements/tr-fixed.html
index f358343dd..dad8da03f 100644
--- a/httemplate/elements/tr-fixed.html
+++ b/httemplate/elements/tr-fixed.html
@@ -1,6 +1,6 @@
<% include('tr-td-label.html', @_ ) %>
-
><% $value %> |
+ <% $colspan %>><% $value %> |
@@ -10,16 +10,23 @@
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'};
-#compatibility with select-table and friends
-if ( $opt{'multiple'} ) {
- $value = [ split(/\s*,\s*/, $value) ] if !ref $value;
- $value = join('
', map {encode_entities($_)} @$value);
-}
-else {
- $value = encode_entities($value)
+$value = $opt{'prefix'} . $value if defined($opt{'prefix'});
+
+unless ( $opt{'noescape'} ) {
+ #compatibility with select-table and friends
+ if ( $opt{'multiple'} ) {
+ $value = [ split(/\s*,\s*/, $value) ] if !ref $value;
+ $value = join('
', map {encode_entities($_)} @$value);
+ } else {
+ $value = encode_entities($value)
+ }
}
%init>