| 1 |
<span[% process_attrs(self.attributes) %]> |
| 2 |
[% FOREACH option = self.options %][% IF option.group %]<span[% process_attrs(option.attributes) %]> |
| 3 |
[% IF option.label %]<p>[% option.label %]</p> |
| 4 |
[% END %][% FOREACH item = option.group %]<span[% process_attrs(item.container_attributes) %]> |
| 5 |
[% IF self.reverse_group %]<input name="[% self.nested_name %]" type="[% self.input_type %]" value="[% item.value %]"[% process_attrs(item.attributes) %] /> |
| 6 |
<label[% process_attrs(item.label_attributes) %]>[% item.label%]</label>[% ELSE %]<label[% process_attrs(item.label_attributes) %]>[% item.label%]</label> |
| 7 |
<input name="[% self.nested_name %]" type="[% self.input_type %]" value="[% item.value %]"[% process_attrs(item.attributes) %] />[% END %] |
| 8 |
</span> |
| 9 |
[% END %]</span> |
| 10 |
[% ELSE %]<span[% process_attrs(option.container_attributes) %]> |
| 11 |
[% IF self.reverse_group %]<input name="[% self.nested_name %]" type="[% self.input_type %]" value="[% option.value %]"[% process_attrs(option.attributes) %] /> |
| 12 |
<label[% process_attrs(option.label_attributes) %]>[% option.label %]</label>[% ELSE %]<label[% process_attrs(option.label_attributes) %]>[% option.label %]</label> |
| 13 |
<input name="[% self.nested_name %]" type="[% self.input_type %]" value="[% option.value %]"[% process_attrs(option.attributes) %] />[% END %] |
| 14 |
</span> |
| 15 |
[% END %][% END %]</span> |