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>';
|
. '</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('description', $attribs)) {
|
||||||
|
$description = '<p class="description">' . $v->escape($attribs['description']) . '</p>';
|
||||||
|
} else {
|
||||||
|
$description = '';
|
||||||
|
}
|
||||||
|
|
||||||
return '<ul class="extensible-set'
|
return '<ul class="extensible-set'
|
||||||
. ($sorted ? ' sortable' : '')
|
. ($sorted ? ' sortable' : '')
|
||||||
. '">' . "\n "
|
. '">' . "\n "
|
||||||
. implode("\n ", $elements)
|
. implode("\n ", $elements)
|
||||||
|
. $description
|
||||||
. "</ul>\n";
|
. "</ul>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue