diff options
author | ivan <ivan> | 2011-03-21 00:55:12 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-03-21 00:55:12 +0000 |
commit | 8d534e61d74e561a15f0863a835cda4af639a9ea (patch) | |
tree | ca0f3939c9e663a41d7ca64d1e3d95411aa68057 /httemplate/elements/radio.html | |
parent | 88fdb01339ae2b598b29c8033f31a50d46e44cad (diff) |
residential prospects, RT#7111
Diffstat (limited to 'httemplate/elements/radio.html')
-rw-r--r-- | httemplate/elements/radio.html | 19 |
1 files changed, 19 insertions, 0 deletions
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'} %><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> |