DisplayGroups. I want this displaygroup not rendered as a fieldset, but just
a plain definition list.
However, I am not able to get so far.
The desired output
---------------------------------------------
dt normal field label
dd normal field element
dt my 'legend' text for a display group
- dd
- dfn
dt display-group element label 1
dd display-group element element
dt ...
dt ...
---------------------------------------------
I am inclined to think I could get this by
$form->addElements(..);
$form->addDisplayGroup(..., array(
'label' => "my 'legend' text for a display group"
'decorators' => array('FormElements', 'DtDdWrapper')
));
this doen't work. Over at
http://www.nabble.com/-Zend_Form--Nested-DisplayGroups-td16834788.html#a16834788
this thread it is mentioned that for nesting one should use SubForms.
Is this valid in this context?
--
View this message in context: http://www.nabble.com/-Zend_Form--nest-a-DisplayGroup-as-defintion-list-inside-an-other-definition-list-tp26064100p26064100.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论