[% attributes = form.attributes() %] [% IF attributes.0 %] [% FOREACH attr = attributes %] [% IF loop.first %]