From 72e3df07485cc4ea7990c7fa408592fd4fedf45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Thu, 1 Jul 2010 19:58:45 +0200 Subject: [PATCH] Add left navigation for the ManageAccountController MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- .../controllers/ManageAccountController.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/manager/application/controllers/ManageAccountController.php b/manager/application/controllers/ManageAccountController.php index c893a4b..e785fd1 100644 --- a/manager/application/controllers/ManageAccountController.php +++ b/manager/application/controllers/ManageAccountController.php @@ -21,7 +21,21 @@ class ManageAccountController extends Zend_Controller_Action APPLICATION_ENV); $this->db = Zend_Db::factory($config->ca_mgr->db->auth->pdo, - $config->ca_mgr->db->auth); + $config->ca_mgr->db->auth); + + // Build the left navigation + $actions = array(); + $actions['assurance'] = I18n::_('Automated Assurance'); + $actions['admin-increase'] = I18n::_('Administrative Increase'); + $actions['assurer-challenge'] = I18n::_('Assurer Challenge'); + $url = array('controller' => 'manage-account'); + foreach ($actions as $action => $label) { + $url['action'] = $action; + $link = ''. + $label . ''; + $this->view->leftNav($link); + } + } public function indexAction()