PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/share/templates/widget/radio.tt

http://github.com/gshank/html-formhandler
text | 7 lines | 6 code | 1 blank | 0 comment | 0 complexity | 2af61342f033427acce9bfa894127983 MD5 | raw file
1<label class="label [% IF f.has_errors %]fld_error[% END %]" for="[% f.html_name %]">[% f.label %]</label>
2[% FOR option IN f.options %]
3 <input type="radio" value="[% option.label %]" 
4 [% IF option.value == f.fif %] selected="selected"[% END %]>
5 [% option.label | html %]>
6[% END %] 
7