mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
f9c10ab500
commit
de10171580
@ -5,15 +5,16 @@ namespace Icinga\Forms\Config;
|
|||||||
|
|
||||||
use Icinga\Forms\Config\General\ApplicationConfigForm;
|
use Icinga\Forms\Config\General\ApplicationConfigForm;
|
||||||
use Icinga\Forms\Config\General\LoggingConfigForm;
|
use Icinga\Forms\Config\General\LoggingConfigForm;
|
||||||
|
use Icinga\Forms\Config\General\ThemingConfigForm;
|
||||||
use Icinga\Forms\ConfigForm;
|
use Icinga\Forms\ConfigForm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Form class for application-wide and logging specific settings
|
* Configuration form for application-wide options
|
||||||
*/
|
*/
|
||||||
class GeneralConfigForm extends ConfigForm
|
class GeneralConfigForm extends ConfigForm
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Initialize this configuration form
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
@ -22,13 +23,15 @@ class GeneralConfigForm extends ConfigForm
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see Form::createElements()
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
$appConfigForm = new ApplicationConfigForm();
|
$appConfigForm = new ApplicationConfigForm();
|
||||||
$loggingConfigForm = new LoggingConfigForm();
|
$loggingConfigForm = new LoggingConfigForm();
|
||||||
$this->addElements($appConfigForm->createElements($formData)->getElements());
|
$themingConfigForm = new ThemingConfigForm();
|
||||||
$this->addElements($loggingConfigForm->createElements($formData)->getElements());
|
$this->addSubForm($appConfigForm->create($formData));
|
||||||
|
$this->addSubForm($loggingConfigForm->create($formData));
|
||||||
|
$this->addSubForm($themingConfigForm->create($formData));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user