SettingsController: cleanup

This commit is contained in:
Thomas Gelf 2017-07-06 15:10:37 +02:00
parent 6b10cdc3f7
commit 4870c4fcfa
1 changed files with 0 additions and 16 deletions

View File

@ -9,26 +9,10 @@ use ipl\Html\Html;
class SettingsController extends ActionController 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() public function selfServiceAction()
{ {
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db())); $form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
$form->handleRequest();
if ($this->getRequest()->isApiRequest()) {
return;
}
$hint = $this->translate( $hint = $this->translate(
'The Icinga Director Self Service API allows your Hosts to register' 'The Icinga Director Self Service API allows your Hosts to register'
. ' themselves. This allows them to get their Icinga Agent configured,' . ' themselves. This allows them to get their Icinga Agent configured,'