residential prospects, RT#7111
[freeside.git] / httemplate / elements / tr-radio.html
diff --git a/httemplate/elements/tr-radio.html b/httemplate/elements/tr-radio.html
new file mode 100644 (file)
index 0000000..b5a2afa
--- /dev/null
@@ -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>
+