diff options
| author | mark <mark> | 2011-11-10 21:40:25 +0000 |
|---|---|---|
| committer | mark <mark> | 2011-11-10 21:40:25 +0000 |
| commit | 7aef2e455fe8a4722036f231ee8609ac63b2a9c9 (patch) | |
| tree | e54f586e587f6b58ae2be2e342d779974212a062 /httemplate/elements/tr-fixed.html | |
| parent | bf8ba5bcc6d128c3ab8e498723257ee54e1db0a7 (diff) | |
RADIUS groups for svc_broadband, #14695
Diffstat (limited to 'httemplate/elements/tr-fixed.html')
| -rw-r--r-- | httemplate/elements/tr-fixed.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/elements/tr-fixed.html b/httemplate/elements/tr-fixed.html index 095e1bce9..f358343dd 100644 --- a/httemplate/elements/tr-fixed.html +++ b/httemplate/elements/tr-fixed.html @@ -1,6 +1,6 @@ <% include('tr-td-label.html', @_ ) %> - <TD BGCOLOR="#dddddd" <% $style %>><% $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'} |h %></TD> + <TD BGCOLOR="#dddddd" <% $style %>><% $value %></TD> </TR> @@ -12,4 +12,14 @@ my %opt = @_; my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; +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('<BR>', map {encode_entities($_)} @$value); +} +else { + $value = encode_entities($value) +} + </%init> |
