Hi All,
I've been searching and playing around with Zend_Form for a while and I've
gotten a much better grasp, but I'm stilling hitting a brick wall on
something. I'm trying to get this code structure...
- - - - - - - - - - - - - - - - - - - -
<form>
<fieldset>
<legend>My Form</legend>
<dl>
<dt><label>Element 1</label></dt>
<dd><input /></dd>
[...]
</dl>
* Required
</fieldset>
<input type="hidden" />
<input type="submit" />
</form>
- - - - - - - - - - - - - - - - - - - -
I've managed to get this...
- - - - - - - - - - - - - - - - - - - -
<form>
<fieldset>
<legend>My Form</legend>
<dl>
<dt><label>Element 1</label></dt>
<dd><input /></dd>
[...]
</dl>
</fieldset>
</form>
- - - - - - - - - - - - - - - - - - - -
What I'm missing is how to add the "hidden" and "submit" button outside of
the "fieldset" (though, now that I think about it, should I be using a
'Display Group' to group the "dl" and "span" elements? Maybe I'm
approaching this thing all wrong and not considering doing things I
could/should be doing?).
I'm also missing how to add simple HTML to a field, such as appending a "*
Required" element after the "dl" list.
Any suggestions? I'm going to play around with "Display Group". For
whatever reason, I wasn't thinking about using that in a SubForm.
Cheers,
Fozzy
--
View this message in context:
http://www.nabble.com/Zend_Form---SubForm-and-decorators-tp19393526p19393526.html
Sent from the Zend Framework mailing list archive at Nabble.com.