mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +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()
|
||||
{
|
||||
$this->detectName();
|
||||
|
Loading…
x
Reference in New Issue
Block a user