icingaweb2-module-director/application/controllers/SettingsController.php

28 lines
902 B
PHP
Raw Normal View History

<?php
2015-10-20 22:34:04 +02:00
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Forms\SelfServiceSettingsForm;
use Icinga\Module\Director\Settings;
use Icinga\Module\Director\Web\Controller\ActionController;
use ipl\Html\Html;
2015-10-20 22:34:04 +02:00
class SettingsController extends ActionController
{
public function selfServiceAction()
{
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
$hint = $this->translate(
'The Icinga Director Self Service API allows your Hosts to register'
. ' themselves. This allows them to get their Icinga Agent configured,'
. ' installed and upgraded in an automated way.'
);
$this->addSingleTab($this->translate('Self Service'))
->addTitle($this->translate('Self Service API - Settings'))
->content()->add(Html::p($hint))
->add($form);
}
}