[% PROCESS form_start -%]
[% FOREACH f IN form.sorted_fields -%] [% WRAPPER "wrapper_${f.uwrapper}" -%][% PROCESS "${f.uwidget}" -%][% END -%] [% END -%] [% PROCESS form_end -%] [% BLOCK form_start -%] [% END -%] [% BLOCK button -%] [% END -%] [% BLOCK checkbox -%] [%~ ~%] [% END -%] [% BLOCK checkbox_group -%] [% FOR option IN f.options -%] [% END -%] [% END -%] [% BLOCK compound -%] [% FOREACH sf IN f.sorted_fields -%] [% outerf = f; f = sf; -%] [% WRAPPER "wrapper_${f.uwrapper}" %][% PROCESS "${f.uwidget}" -%][% END -%] [% f = outerf -%] [% END -%] [% END -%] [% BLOCK hidden -%] [% END -%] [% BLOCK password -%] [% END -%] [% BLOCK radio_group -%] [% FOR option IN f.options -%] [% END -%] [% END -%] [% BLOCK repeatable -%] [% FOREACH rf IN f.sorted_fields -%] [% outerrf = f; f = rf; -%] [% WRAPPER "wrapper_${f.uwrapper}" %][% PROCESS "${f.uwidget}" -%][% END -%] [% f = outerrf -%] [% END -%] [% END -%] [% BLOCK reset -%] [% END -%] [% BLOCK select -%] [% END -%] [% BLOCK submit -%] [% END -%] [% BLOCK text -%] [% END -%] [% BLOCK textarea -%] [% END -%] [% BLOCK upload -%] [% END -%] [% BLOCK wrapper_simple -%]