FormExtensibleSet: render description if any
This commit is contained in:
parent
42212661f2
commit
1a3467d6d1
|
@ -144,10 +144,17 @@ class Zend_View_Helper_FormExtensibleSet extends Zend_View_Helper_FormElement
|
|||
. '</li>';
|
||||
}
|
||||
|
||||
if (array_key_exists('description', $attribs)) {
|
||||
$description = '<p class="description">' . $v->escape($attribs['description']) . '</p>';
|
||||
} else {
|
||||
$description = '';
|
||||
}
|
||||
|
||||
return '<ul class="extensible-set'
|
||||
. ($sorted ? ' sortable' : '')
|
||||
. '">' . "\n "
|
||||
. implode("\n ", $elements)
|
||||
. $description
|
||||
. "</ul>\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue