Skip to content

Commit

Permalink
Add GeneralConfig page
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Sep 29, 2014
1 parent 5afda8a commit b6b7814
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions application/forms/Setup/GeneralConfigPage.php
@@ -0,0 +1,35 @@
<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;

use Icinga\Web\Form;
use Icinga\Form\Config\General\LoggingConfigForm;
use Icinga\Form\Config\General\ApplicationConfigForm;

/**
* Wizard page to define the application and logging configuration
*/
class GeneralConfigPage extends Form
{
/**
* Initialize this page
*/
public function init()
{
$this->setName('setup_application_config');
}

/**
* @see Form::createElements()
*/
public function createElements(array $formData)
{
$appForm = new ApplicationConfigForm();
$this->addElement($appForm->createElements($formData)->getElement('global_modulePath'));

$loggingForm = new LoggingConfigForm();
$this->addElements($loggingForm->createElements($formData)->getElements());
}
}

0 comments on commit b6b7814

Please sign in to comment.