mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
QuickForm: add helper for shorter display group...
...definitions
This commit is contained in:
parent
2f723ccde7
commit
324e15e2b5
@ -156,6 +156,19 @@ abstract class QuickForm extends Zend_Form
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function addSimpleDisplayGroup($elements, $name, $options)
|
||||||
|
{
|
||||||
|
if (! array_key_exists('decorators', $options)) {
|
||||||
|
$options['decorators'] = array(
|
||||||
|
'FormElements',
|
||||||
|
array('HtmlTag', array('tag' => 'dl')),
|
||||||
|
'Fieldset',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return $this->addDisplayGroup($elements, $name, $options);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected function createIdElement()
|
protected function createIdElement()
|
||||||
{
|
{
|
||||||
$this->detectName();
|
$this->detectName();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user