[freeside-commits] freeside/httemplate/elements checkboxes.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Sun Jul 5 14:35:54 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv10276/httemplate/elements
Modified Files:
checkboxes.html
Log Message:
CDR search by dcontext, charged_party, toggle of display fields, RT#4081
Index: checkboxes.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/checkboxes.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- checkboxes.html 5 Jan 2009 00:26:53 -0000 1.1
+++ checkboxes.html 5 Jul 2009 21:35:52 -0000 1.2
@@ -10,8 +10,9 @@
'names_list' => [ 'value',
'other value',
- [ 'complex value' => { 'desc' => "Add'l description",
- 'note' => ' *',
+ [ 'complex value' => { 'label' => 'Display value',
+ 'desc' => "Add'l description",
+ 'note' => ' *',
}
],
],
@@ -40,7 +41,10 @@
% foreach my $item ( @{ $opt{'names_list'} } ) {
%
% my $name = ref($item) ? $item->[0] : $item;
-% ( my $display = $name ) =~ s/ / /g;
+% my $display = ( ref($item) && $item->[1]{label} )
+% ? $item->[1]{label}
+% : $name;
+% $display =~ s/ / /g;
% $display .= $item->[1]{note} if ref($item) && $item->[1]{note};
% my $desc = ref($item) && $item->[1]{desc} ? $item->[1]{desc} : '';
%
More information about the freeside-commits
mailing list