From 99555f092dede31ce8a9b2827efba99bc72071ca Mon Sep 17 00:00:00 2001 From: DSB Date: Tue, 9 Aug 2011 19:43:48 +0000 Subject: [PATCH] MSD-12 W3C fix --- application/forms/Config/Ftp.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/forms/Config/Ftp.php b/application/forms/Config/Ftp.php index d4d632e..cc31f3d 100644 --- a/application/forms/Config/Ftp.php +++ b/application/forms/Config/Ftp.php @@ -302,6 +302,12 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm */ private function _addButtonsTestAndDelete($index) { + if ($index == 0) { + // don't show delete button for first ftp profile + $buttonDecorator = 'default'; + } else { + $buttonDecorator = 'LineStart'; + } $this->addElement( 'button', 'ftpCheck' . $index, @@ -310,7 +316,7 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm 'content' => $this->getView()->getIcon('Connect', '', 16) . ' ' . $this->_lang->getTranslator()->_('L_TESTCONNECTION'), - 'decorators' => array('LineStart'), + 'decorators' => array($buttonDecorator), 'escape' => false, 'label' => '', 'class' => 'Formbutton ftpToggle' . $index,