|
From: <gem...@li...> - 2011-09-15 16:15:36
|
Revision: 27
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=27&view=rev
Author: matijsdejong
Date: 2011-09-15 16:15:28 +0000 (Thu, 15 Sep 2011)
Log Message:
-----------
- continued implementation of #5 Reorganize menu
Modified Paths:
--------------
trunk/library/classes/Gems/Menu/MenuAbstract.php
trunk/library/classes/Gems/Menu.php
Modified: trunk/library/classes/Gems/Menu/MenuAbstract.php
===================================================================
--- trunk/library/classes/Gems/Menu/MenuAbstract.php 2011-09-15 16:00:09 UTC (rev 26)
+++ trunk/library/classes/Gems/Menu/MenuAbstract.php 2011-09-15 16:15:28 UTC (rev 27)
@@ -198,6 +198,20 @@
return $this->addPage($label, $privilege, $controller, $action, $other);
}
+ public function addMailSetupPage($label)
+ {
+ $setup = $this->addContainer($label);
+
+ // MAIL Server CONTROLLER
+ $page = $setup->addBrowsePage($this->_('Servers'), 'pr.mail.server', 'mail-server');
+ // $page->addAction($this->_('Test'), 'pr.mail.server.test', 'test')->addParameters(MUtil_Model::REQUEST_ID);
+
+ // MAIL CONTROLLER
+ $setup->addBrowsePage($this->_('Templates'), 'pr.mail', 'mail');
+
+ return $setup;
+ }
+
/**
* Add a page to the menu
*
Modified: trunk/library/classes/Gems/Menu.php
===================================================================
--- trunk/library/classes/Gems/Menu.php 2011-09-15 16:00:09 UTC (rev 26)
+++ trunk/library/classes/Gems/Menu.php 2011-09-15 16:15:28 UTC (rev 27)
@@ -214,13 +214,6 @@
// RECEPTION CODE CONTROLLER
$setup->addBrowsePage($this->_('Reception codes'), 'pr.reception', 'reception');
- // MAIL Server CONTROLLER
- $page = $setup->addBrowsePage($this->_('Email servers'), 'pr.mail.server', 'mail-server');
- // $page->addAction($this->_('Test'), 'pr.mail.server.test', 'test')->addParameters(MUtil_Model::REQUEST_ID);
-
- // MAIL CONTROLLER
- $setup->addBrowsePage($this->_('Email'), 'pr.mail', 'mail');
-
// SURVEY SOURCES CONTROLLER
$page = $setup->addBrowsePage($this->_('Survey Sources'), 'pr.source', 'source');
$page->addDeleteAction();
@@ -593,6 +586,9 @@
// SETUP CONTAINER
$this->addGemsSetupContainer($this->escort->_('Setup'));
+ // MAIL CONTAINER
+ $this->addMailSetupPage($this->escort->_('Mail'));
+
// OTHER ITEMS
$this->addLogonOffToken();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|