Skip to content

Commit

Permalink
Show theming options in the application configuration
Browse files Browse the repository at this point in the history
refs #10705
  • Loading branch information
lippserd committed Nov 26, 2015
1 parent f9c10ab commit de10171
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions application/forms/Config/GeneralConfigForm.php
Expand Up @@ -5,15 +5,16 @@

use Icinga\Forms\Config\General\ApplicationConfigForm;
use Icinga\Forms\Config\General\LoggingConfigForm;
use Icinga\Forms\Config\General\ThemingConfigForm;
use Icinga\Forms\ConfigForm;

/**
* Form class for application-wide and logging specific settings
* Configuration form for application-wide options
*/
class GeneralConfigForm extends ConfigForm
{
/**
* Initialize this configuration form
* {@inheritdoc}
*/
public function init()
{
Expand All @@ -22,13 +23,15 @@ public function init()
}

/**
* @see Form::createElements()
* {@inheritdoc}
*/
public function createElements(array $formData)
{
$appConfigForm = new ApplicationConfigForm();
$loggingConfigForm = new LoggingConfigForm();
$this->addElements($appConfigForm->createElements($formData)->getElements());
$this->addElements($loggingConfigForm->createElements($formData)->getElements());
$themingConfigForm = new ThemingConfigForm();
$this->addSubForm($appConfigForm->create($formData));
$this->addSubForm($loggingConfigForm->create($formData));
$this->addSubForm($themingConfigForm->create($formData));
}
}

0 comments on commit de10171

Please sign in to comment.