summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-radio.html
diff options
context:
space:
mode:
authorivan <ivan>2011-03-21 00:55:12 +0000
committerivan <ivan>2011-03-21 00:55:12 +0000
commit8d534e61d74e561a15f0863a835cda4af639a9ea (patch)
treeca0f3939c9e663a41d7ca64d1e3d95411aa68057 /httemplate/elements/tr-radio.html
parent88fdb01339ae2b598b29c8033f31a50d46e44cad (diff)
residential prospects, RT#7111
Diffstat (limited to 'httemplate/elements/tr-radio.html')
-rw-r--r--httemplate/elements/tr-radio.html21
1 files changed, 21 insertions, 0 deletions
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 ) %>
+
+ <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>
+