FormExtensibleSet: render description if any

This commit is contained in:
Thomas Gelf 2016-09-16 21:54:55 +00:00
parent 42212661f2
commit 1a3467d6d1
1 changed files with 7 additions and 0 deletions

View File

@ -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";
}