<div class="formfield">
<div class="fieldname"><label for="EVENT" class="full
optional">Event</label></div>
<div class="fieldinput"><input type="text" name="EVENT" id="EVENT"
value="xxx" class="full">/div>
</div>
What I get is this:
<div class="formfield">
<div><label for="EVENT" class="full fieldname optional">Event</label></div>
<div class="fieldinput"><input type="text" name="EVENT" id="EVENT"
value="xxx" class="full">/div>
</div>
I.E. the class "fieldname" is in the <label>, not in the <div> around it.
The decorator I used:
public static $aDefaultDecorators = array(
'ViewHelper',
'Errors',
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' =>
'fieldinput')),
array('label', array('tag' => 'div', 'class' => 'fieldname')),
array(array('formfield' => 'HtmlTag'), array('tag' => 'div', 'class'
=> 'formfield')),
);
Thanks for your help,
Axel
--
View this message in context: http://www.nabble.com/Zend_Form%3A-How-to-decorate-a-div-around-a-label-tp19034836p19034836.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论