mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
ConfigForm: use fieldset instead of HTML header
This commit is contained in:
parent
b94c6bf481
commit
444e22d831
@ -16,7 +16,6 @@ class ConfigForm extends QuickForm
|
||||
$config = $this->config();
|
||||
$resources = $this->enumResources();
|
||||
|
||||
$this->addHtml(sprintf('<h3>%s</h3>', $this->translate('Database backend')));
|
||||
$this->addElement('select', 'resource', array(
|
||||
'required' => true,
|
||||
'label' => $this->translate('DB Resource'),
|
||||
@ -25,6 +24,16 @@ class ConfigForm extends QuickForm
|
||||
'value' => $config->get('db', 'resource')
|
||||
));
|
||||
|
||||
$this->addDisplayGroup(array('resource'), 'config', array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
array('HtmlTag', array('tag' => 'dl')),
|
||||
'Fieldset',
|
||||
),
|
||||
'order' => 40,
|
||||
'legend' => $this->translate('Database backend')
|
||||
));
|
||||
|
||||
if (empty($resources)) {
|
||||
$this->getElement('resource')->addError(
|
||||
$this->translate('This has to be a MySQL or PostgreSQL database')
|
||||
|
Loading…
x
Reference in New Issue
Block a user