Perforce Chronicle 2012.2/486814
API Documentation
|
Extends Zend_Form_Decorator_DtDdWrapper to eliminate the tag (it is really just a wrapper now). More...
Public Member Functions | |
render ($content) | |
Extend render to eliminate spurious dt tag. |
Extends Zend_Form_Decorator_DtDdWrapper to eliminate the
tag (it is really just a wrapper now).
Also, identifies sub-forms and display groups with a 'fieldset' css class so that they can be styled separately.
P4Cms_Form_Decorator_DtDdWrapper::render | ( | $ | content | ) |
Extend render to eliminate spurious dt tag.
string | $content | the content to render. |
{
$elementName = $this->getElement()->getName();
$isFieldset = ($this->getElement() instanceof Zend_Form_DisplayGroup ||
$this->getElement() instanceof Zend_Form_SubForm);
$html = '<dd id="' . $elementName . '-element" ';
$html .= ($isFieldset) ? ' class="display-group" ' : '';
$html .= '>' . $content . '</dd>';
return $html;
}