1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
[% PROCESS field_base; control_block = 'fieldset_control'; BLOCK fieldset_control; %]<fieldset id="[% self.field_name | html %]"[% process_attrs(attrs) %] />[% IF self.text; '<legend>'; self.text; '</legend>'; END; # INCLUDE( 'control_block' ); %]</fieldset>[% END; %]