Skip Menu |

This queue is for tickets about the CGI-FormBuilder CPAN distribution.

Report information
The Basics
Id: 41555
Status: resolved
Priority: 0/
Queue: CGI-FormBuilder

People
Owner: Nobody in particular
Requestors: ZIMAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.0501
Fixed in: (no value)



Subject: Allow template toolkit to easily access fieldsets.
The only way to access the fieldsets when using Template Toolkit is to walk the raw _form object. Most other form attributes are much easier to access. I have attached a patch that allows the user to access the fieldsets in the same way they would the fields, i.e. via an array, fieldsets, or via a hash, fieldset. [% FOREACH fieldset = formbuilder.fieldsets %] <fieldset> <legend>[% fieldset.label %]</legend> do stuff. </fieldset> [% END %] or for a fieldset named 'general_info' [% formbuilder.fieldset.general_info.label %]
Subject: patch
Download patch
application/octet-stream 764b

Message body not shown because it is not plain text.