just a heads up when you iterate through the fields in that fashion
you lose all of formbuilder's JS validation code.
-Victor
On Jan 14, 2007, at 10:56 AM, Neil de Carteret wrote:
Sunday night brain-strain. I'm trying out C::C::FormBuilder with TT.
The form object works, and
[% FormBuilder.render %]
in the TT produces a dinky little form. I need to handle a particular
field a particular way, so I'm iterating over the fields with [%
FOREACH field IN formbuilder.fields %].
[% field.label %] works fine, and I'm seeing a list of my fields. [%
formbuilder.start %] and [% formbuilder.end %] produce expected
output. However,
[% field.tag %]
produces no output, for any field. The final output is:
<form action="" method="get"><input id="_submitted" name="_submitted"
type="hidden" value="2" />
<div id="form">
<div id="location">
<div class="label">
Location
</div>
<div class="field">
</div>
</div>
<div id="timezone">
<div class="label">
Timezone
</div>
<div class="field">
</div>
</div>
<div id="submit"><input id="_submit" name="_submit" type="submit"
value="Submit" /></div>
<div id="reset"></div>
</div>
</div>
</form>
Where, obviously, I'm expecting some honking great <select>s inside
those <div class="field">s.
I'd be very grateful if someone could lend me a spare Clue.
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/
[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/