mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
27e38b566d
commit
5b97e477b4
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Icinga\Module\Director\Controllers;
|
||||
|
||||
use Icinga\Module\Director\Forms\KickstartForm;
|
||||
use Icinga\Module\Director\Forms\SelfServiceSettingsForm;
|
||||
use Icinga\Module\Director\Settings;
|
||||
use Icinga\Module\Director\Web\Controller\ActionController;
|
||||
@ -9,6 +10,18 @@ use ipl\Html\Html;
|
||||
|
||||
class SettingsController extends ActionController
|
||||
{
|
||||
public function indexAction()
|
||||
{
|
||||
// Hint: this is for the module configuration tab, legacy code
|
||||
$this->view->tabs = $this->Module()
|
||||
->getConfigTabs()
|
||||
->activate('config');
|
||||
|
||||
$this->view->form = KickstartForm::load()
|
||||
->setModuleConfig($this->Config())
|
||||
->handleRequest();
|
||||
}
|
||||
|
||||
public function selfServiceAction()
|
||||
{
|
||||
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user