mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
parent
27e38b566d
commit
5b97e477b4
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Director\Controllers;
|
namespace Icinga\Module\Director\Controllers;
|
||||||
|
|
||||||
|
use Icinga\Module\Director\Forms\KickstartForm;
|
||||||
use Icinga\Module\Director\Forms\SelfServiceSettingsForm;
|
use Icinga\Module\Director\Forms\SelfServiceSettingsForm;
|
||||||
use Icinga\Module\Director\Settings;
|
use Icinga\Module\Director\Settings;
|
||||||
use Icinga\Module\Director\Web\Controller\ActionController;
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
||||||
@ -9,6 +10,18 @@ use ipl\Html\Html;
|
|||||||
|
|
||||||
class SettingsController extends ActionController
|
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()
|
public function selfServiceAction()
|
||||||
{
|
{
|
||||||
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
|
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user