I need some help with form decorator. I need help decorating a radio group.
Here is the group as defined in the init() method of my form subclass:
$user_active = $this->createElement('radio','user_active',array(
'label' => 'Status',
'multiOptions' => array('active' => 'active', 'inactive' =>
'inactive'),
'separator' => ' ',
'value' => 'inactive',
'required' => true,
'decorators' => $this->_standardElementDecorator,
'validators' => array(
array('InArray',false,array(array('active','inactive'))),
)
));
This gives me the following output:
<div>
<label for="user_active" class="required">Status<em>required</em></label>
<label style="white-space: nowrap;"><input type="radio" name="user_active"
value="active">active</label> <label style="white-space: nowrap;"><input
type="radio" name="user_active" value="inactive"
checked="checked">inactive</label>
</div>
I need this output to look like this:
<fieldset class="checks">
<h5>Status<em>required</em></h5>
<ul>
<li>
<input name="user_active" value="active" id="user_active1"
type="radio">
<label for="user_active1">active</label>
</li>
<li>
<input name="user_active" value="inactive" id="user_active2"
type="radio">
<label for="user_active2">inactive</label>
</li>
</ul>
</fieldset>
Appreciate help on setting the decorators for this element.
Chinaski
--
View this message in context:
http://www.nabble.com/Zend_Form-Decorator-tp18270378p18270378.html
Sent from the Zend Framework mailing list archive at Nabble.com.