How can I display more than 1 display group WITHIN a div?
I simply need to show a visual separation – but within the same div.
Is there a way to show more than 1 display group within a div?
for example: to achieve the following in zend forms:
<div style="width: 100%;">
<div style="width: 50%; float: left; padding-left: 20px; padding-bottom: 25px;">
<fieldset id="fieldset-homeAddressSettings" tag="fieldset" style="">
<legend> Home address </legend>
<!-- multiple elements follow -->
</fieldset>
</div>
<div style="width: 50%; float: left; padding-left: 20px; padding-bottom: 25px;">
<fieldset id="fieldset-officeAddressSettings" tag="fieldset" style="">
<legend> Office address </legend>
<!-- multiple elements follow -->
</fieldset>
</div>
</div>
How can I achieve this in Zend forms?
I have searched and searched and i have not found anything useful so far.
The ‘openOnly’ and ‘closeOnly’ boolean options for the ‘HtmlTag’ decorator do exactly what you need to do. What openOnly means, as you can figure out, is that it only generates an opening tag (i.e. ) without the closing tag, and vice-versa for the closeOnly attribute (i.e.
Zend_Form PHP code:
Generated HTML: