<%args> $form <% $form->{title} %> <% $form->{jshead} %>
<% $form->{start} %> % my $fields = $form->{fields} || []; % for my $field (@$fields) {
<% $field->{required} ? "$field->{label}" : $field->{label} %>
<% $field->{field} %> % if ( $field->{invalid} ) { Missing or invalid entry, please try again. % }
% }
<% $form->{submit} %>
<% $form->{reset} %>
<% # The following two tags include state information %> <% $form->{statetags} %> <% $form->{keepextras} %>
<% $form->{end} %>