From: <gem...@li...> - 2011-11-08 15:10:48
|
Revision: 195 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=195&view=rev Author: mennodekker Date: 2011-11-08 15:10:39 +0000 (Tue, 08 Nov 2011) Log Message: ----------- Updated buttons in DatabaseAction -> patchAction, updated buttons for UpgradeAction Modified Paths: -------------- trunk/library/classes/Gems/Default/DatabaseAction.php trunk/library/classes/Gems/Default/UpgradeAction.php Modified: trunk/library/classes/Gems/Default/DatabaseAction.php =================================================================== --- trunk/library/classes/Gems/Default/DatabaseAction.php 2011-11-08 13:31:35 UTC (rev 194) +++ trunk/library/classes/Gems/Default/DatabaseAction.php 2011-11-08 15:10:39 UTC (rev 195) @@ -382,7 +382,7 @@ $table->setAsFormLayout($form, true, true); $table['tbody'][0][0]->class = 'label'; // Is only one row with formLayout, so all in output fields get class. - if ($links = $this->createMenuLinks(10)) { + if ($links = $this->createMenuLinks(1)) { $table->tf(); // Add empty cell, no label $linksCell = $table->tf($links); } Modified: trunk/library/classes/Gems/Default/UpgradeAction.php =================================================================== --- trunk/library/classes/Gems/Default/UpgradeAction.php 2011-11-08 13:31:35 UTC (rev 194) +++ trunk/library/classes/Gems/Default/UpgradeAction.php 2011-11-08 15:10:39 UTC (rev 195) @@ -92,7 +92,7 @@ if ($menuItem = $this->menu->find(array('controller' => $this->_getParam('controller'), 'action' => 'show', 'allowed' => true))) { $this->html->br(); - $this->html[] = $menuItem->toActionLinkLower($this->getRequest(), array('id'=>$context)); + $this->html[] = $menuItem->toActionLinkLower($this->getRequest(), array('id'=>$context), $this->_('Back')); } } @@ -181,6 +181,10 @@ } else { $this->html[] = sprintf($this->_('Context %s not found!'), $context); } + + if ($parentItem = $this->menu->getCurrent()->getParent()) { + $this->html[] = $parentItem->toActionLink($this->getRequest(), $this->_('Cancel')); + } } public function getTopicTitle() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |