From: <gem...@li...> - 2012-07-24 10:38:03
|
Revision: 873 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=873&view=rev Author: mennodekker Date: 2012-07-24 10:37:54 +0000 (Tue, 24 Jul 2012) Log Message: ----------- Fixed missing submit button Modified Paths: -------------- trunk/library/classes/Gems/Form/TableForm.php Modified: trunk/library/classes/Gems/Form/TableForm.php =================================================================== --- trunk/library/classes/Gems/Form/TableForm.php 2012-07-24 09:49:55 UTC (rev 872) +++ trunk/library/classes/Gems/Form/TableForm.php 2012-07-24 10:37:54 UTC (rev 873) @@ -114,7 +114,17 @@ protected function _fixDecoratorHiddenSubmit(&$element) { - //No label and tooltip + // No label and tooltip + $rowOptions = array( + 'tag' => 'tr', + 'class' => $element->getName() + ); + + // Don't display if hidden + if ($element instanceof Zend_Form_Element_Hidden) { + $rowOptions['style'] = 'display:none;'; + } + $decorators = array( 'ViewHelper', array('Description', array('class' => 'description')), @@ -123,7 +133,7 @@ array(array('labelCellClose' => 'HtmlTag'), array('tag' => 'td', 'placement' => Zend_Form_Decorator_Abstract::PREPEND, 'closeOnly' => true)), 'Tooltip', array(array('labelCellOpen' => 'HtmlTag'), array('tag' => 'td', 'class' => 'label', 'placement' => Zend_Form_Decorator_Abstract::PREPEND, 'openOnly' => true)), - array(array('row' => 'HtmlTag'), array('tag' => 'tr', 'class' => $element->getName(), 'style' => 'display:none;')) + array(array('row' => 'HtmlTag'), $rowOptions) ); $element->setDecorators($decorators); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |