[freeside-commits] freeside/httemplate/elements tr-radio.html, NONE, 1.1 radio.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sun Mar 20 17:55:14 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv9432/httemplate/elements
Added Files:
tr-radio.html radio.html
Log Message:
residential prospects, RT#7111
--- NEW FILE: tr-radio.html ---
% foreach my $option ( @{ $opt{options} } ) { #just arrayref for now
<% include('tr-td-label.html', @_, label=> $labels->{$option} || $option ) %>
<TD <% $style %>>
<% include('radio.html', @_, value=> $option ) %>
</TD>
</TR>
% }
<%init>
my %opt = @_;
my $labels = $opt{'option_labels'} || $opt{'labels'};
my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
</%init>
--- NEW FILE: radio.html ---
<% $opt{'prefix'} %><INPUT TYPE = "radio"
NAME = "<% $opt{field} %>"
ID = "<% $opt{id}.'_'.$opt{value} %>"
VALUE = "<% $opt{value} %>"
<% $opt{curr_value} eq $opt{value}
? ' CHECKED'
: ''
%>
<% $onchange %>
><% $opt{'postfix'} %>
<%init>
my %opt = @_;
my $onchange = $opt{'onchange'}
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
</%init>
More information about the freeside-commits
mailing list