mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +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();
|
$config = $this->config();
|
||||||
$resources = $this->enumResources();
|
$resources = $this->enumResources();
|
||||||
|
|
||||||
$this->addHtml(sprintf('<h3>%s</h3>', $this->translate('Database backend')));
|
|
||||||
$this->addElement('select', 'resource', array(
|
$this->addElement('select', 'resource', array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => $this->translate('DB Resource'),
|
'label' => $this->translate('DB Resource'),
|
||||||
@ -25,6 +24,16 @@ class ConfigForm extends QuickForm
|
|||||||
'value' => $config->get('db', 'resource')
|
'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)) {
|
if (empty($resources)) {
|
||||||
$this->getElement('resource')->addError(
|
$this->getElement('resource')->addError(
|
||||||
$this->translate('This has to be a MySQL or PostgreSQL database')
|
$this->translate('This has to be a MySQL or PostgreSQL database')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user