SettingsController: cleanup
This commit is contained in:
parent
6b10cdc3f7
commit
4870c4fcfa
|
@ -9,26 +9,10 @@ use ipl\Html\Html;
|
|||
|
||||
class SettingsController extends ActionController
|
||||
{
|
||||
public function indexAction()
|
||||
{
|
||||
$this->view->tabs = $this->Module()
|
||||
->getConfigTabs()
|
||||
->activate('config');
|
||||
|
||||
$this->view->form = $this->loadForm('kickstart')
|
||||
->setModuleConfig($this->Config())
|
||||
->handleRequest();
|
||||
}
|
||||
|
||||
public function selfServiceAction()
|
||||
{
|
||||
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
|
||||
|
||||
$form->handleRequest();
|
||||
if ($this->getRequest()->isApiRequest()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$hint = $this->translate(
|
||||
'The Icinga Director Self Service API allows your Hosts to register'
|
||||
. ' themselves. This allows them to get their Icinga Agent configured,'
|
||||
|
|
Loading…
Reference in New Issue