summaryrefslogtreecommitdiff
path: root/httemplate/elements/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/radio.html
parent88fdb01339ae2b598b29c8033f31a50d46e44cad (diff)
residential prospects, RT#7111
Diffstat (limited to 'httemplate/elements/radio.html')
-rw-r--r--httemplate/elements/radio.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/elements/radio.html b/httemplate/elements/radio.html
new file mode 100644
index 0000000..9af5332
--- /dev/null
+++ b/httemplate/elements/radio.html
@@ -0,0 +1,19 @@
+<% $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>