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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1228778841-22029-34"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 534
Download (untitled) / with headers
text/plain 534b
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
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1228778840-22029-33"
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: application/octet-stream; name="patch"
Content-Disposition: inline; filename="patch"
Content-Transfer-Encoding: base64
Content-Length: 764
Download patch
application/octet-stream 764b

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20565-1315100705-1446.41555-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 109
Download (untitled) / with headers
text/plain 109b


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.