CGI-FormBuilder-Template-HTC

 view release on metacpan or  search on metacpan

lib/CGI/FormBuilder/Template/HTC.pm  view on Meta::CPAN

Each field contains various elements. For example:

    [%with form.field.email %]

    [%= label    %]  # text label
    [%= field    %]  # field input tag
    [%= value    %]  # first value
    [%= values   %]  # list of all values
    [%= option   %]  # first value
    [%= options  %]  # list of all values
    [%= required %]  # required flag
    [%= invalid  %]  # invalid flag

    [%/with %]

The fields variable contains a list of all the fields in the form.
To iterate through all the fields in order, you could do something like this:

    [%loop form.fields %]
    <tr>
     <td>[%= label %]</td> <td>[%= field %]</td>



( run in 0.232 second using v1.01-cache-2.11-cpan-0d8aa00de5b )