From 8d534e61d74e561a15f0863a835cda4af639a9ea Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 21 Mar 2011 00:55:12 +0000 Subject: residential prospects, RT#7111 --- httemplate/elements/radio.html | 19 +++++++++++++++++++ httemplate/elements/tr-radio.html | 21 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 httemplate/elements/radio.html create mode 100644 httemplate/elements/tr-radio.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/radio.html b/httemplate/elements/radio.html new file mode 100644 index 000000000..9af533246 --- /dev/null +++ b/httemplate/elements/radio.html @@ -0,0 +1,19 @@ +<% $opt{'prefix'} %> + <% $onchange %> + ><% $opt{'postfix'} %> +<%init> + +my %opt = @_; + +my $onchange = $opt{'onchange'} + ? 'onChange="'. $opt{'onchange'}. '(this)"' + : ''; + + diff --git a/httemplate/elements/tr-radio.html b/httemplate/elements/tr-radio.html new file mode 100644 index 000000000..b5a2afaf1 --- /dev/null +++ b/httemplate/elements/tr-radio.html @@ -0,0 +1,21 @@ +% foreach my $option ( @{ $opt{options} } ) { #just arrayref for now + + <% include('tr-td-label.html', @_, label=> $labels->{$option} || $option ) %> + + > + <% include('radio.html', @_, value=> $option ) %> + + + + +% } +<%init> + +my %opt = @_; + +my $labels = $opt{'option_labels'} || $opt{'labels'}; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + + + -- cgit v1.2.1