From bef3f7099237d6213d1f18da79f8973e59605d26 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 25 Feb 2014 10:23:36 +0000 Subject: [PATCH] Temporary ugly active-tab fix for config controller --- application/controllers/ConfigController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index edee923fa..54e88d0de 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -112,6 +112,7 @@ class ConfigController extends BaseConfigController public function indexAction() { $this->view->messageBox = new AlertMessageBox(true); + $this->view->tabs->activate('index'); $form = new GeneralForm(); $form->setConfiguration(IcingaConfig::app()); $form->setRequest($this->_request); @@ -132,6 +133,7 @@ class ConfigController extends BaseConfigController public function loggingAction() { $this->view->messageBox = new AlertMessageBox(true); + $this->view->tabs->activate('logging'); $form = new LoggingForm(); $form->setConfiguration(IcingaConfig::app()); @@ -153,6 +155,7 @@ class ConfigController extends BaseConfigController public function moduleoverviewAction() { $this->view->messageBox = new AlertMessageBox(true); + $this->view->tabs->activate('modules'); $this->view->modules = Icinga::app()->getModuleManager()->select() ->from('modules') @@ -207,6 +210,8 @@ class ConfigController extends BaseConfigController public function authenticationAction($showOnly = false) { $config = IcingaConfig::app('authentication', true); + $this->view->tabs->activate('authentication'); + $order = array_keys($config->toArray()); $this->view->backends = array(); $this->view->messageBox = new AlertMessageBox(true); @@ -382,6 +387,8 @@ class ConfigController extends BaseConfigController public function resourceAction($showOnly = false) { + $this->view->tabs->activate('resources'); + $this->view->messageBox = new AlertMessageBox(true); $this->view->resources = IcingaConfig::app('resources', true)->toArray(); $this->render('resource');