mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Temporary ugly active-tab fix for config controller
This commit is contained in:
parent
615144a6de
commit
bef3f70992
@ -112,6 +112,7 @@ class ConfigController extends BaseConfigController
|
|||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
$this->view->messageBox = new AlertMessageBox(true);
|
$this->view->messageBox = new AlertMessageBox(true);
|
||||||
|
$this->view->tabs->activate('index');
|
||||||
$form = new GeneralForm();
|
$form = new GeneralForm();
|
||||||
$form->setConfiguration(IcingaConfig::app());
|
$form->setConfiguration(IcingaConfig::app());
|
||||||
$form->setRequest($this->_request);
|
$form->setRequest($this->_request);
|
||||||
@ -132,6 +133,7 @@ class ConfigController extends BaseConfigController
|
|||||||
public function loggingAction()
|
public function loggingAction()
|
||||||
{
|
{
|
||||||
$this->view->messageBox = new AlertMessageBox(true);
|
$this->view->messageBox = new AlertMessageBox(true);
|
||||||
|
$this->view->tabs->activate('logging');
|
||||||
|
|
||||||
$form = new LoggingForm();
|
$form = new LoggingForm();
|
||||||
$form->setConfiguration(IcingaConfig::app());
|
$form->setConfiguration(IcingaConfig::app());
|
||||||
@ -153,6 +155,7 @@ class ConfigController extends BaseConfigController
|
|||||||
public function moduleoverviewAction()
|
public function moduleoverviewAction()
|
||||||
{
|
{
|
||||||
$this->view->messageBox = new AlertMessageBox(true);
|
$this->view->messageBox = new AlertMessageBox(true);
|
||||||
|
$this->view->tabs->activate('modules');
|
||||||
|
|
||||||
$this->view->modules = Icinga::app()->getModuleManager()->select()
|
$this->view->modules = Icinga::app()->getModuleManager()->select()
|
||||||
->from('modules')
|
->from('modules')
|
||||||
@ -207,6 +210,8 @@ class ConfigController extends BaseConfigController
|
|||||||
public function authenticationAction($showOnly = false)
|
public function authenticationAction($showOnly = false)
|
||||||
{
|
{
|
||||||
$config = IcingaConfig::app('authentication', true);
|
$config = IcingaConfig::app('authentication', true);
|
||||||
|
$this->view->tabs->activate('authentication');
|
||||||
|
|
||||||
$order = array_keys($config->toArray());
|
$order = array_keys($config->toArray());
|
||||||
$this->view->backends = array();
|
$this->view->backends = array();
|
||||||
$this->view->messageBox = new AlertMessageBox(true);
|
$this->view->messageBox = new AlertMessageBox(true);
|
||||||
@ -382,6 +387,8 @@ class ConfigController extends BaseConfigController
|
|||||||
|
|
||||||
public function resourceAction($showOnly = false)
|
public function resourceAction($showOnly = false)
|
||||||
{
|
{
|
||||||
|
$this->view->tabs->activate('resources');
|
||||||
|
|
||||||
$this->view->messageBox = new AlertMessageBox(true);
|
$this->view->messageBox = new AlertMessageBox(true);
|
||||||
$this->view->resources = IcingaConfig::app('resources', true)->toArray();
|
$this->view->resources = IcingaConfig::app('resources', true)->toArray();
|
||||||
$this->render('resource');
|
$this->render('resource');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user