diff --git a/application/views/default/helpers/Field.php b/application/views/default/helpers/Field.php index 0cc95933..c94e1a32 100644 --- a/application/views/default/helpers/Field.php +++ b/application/views/default/helpers/Field.php @@ -12,44 +12,37 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract case 'select': $html.= $this->structureHTML( $field['label'], - $this->selectHTML($name, $field), - $this->createValidate($type, $name)); + $this->selectHTML($name, $field)); break; case 'selectMultiple': $html.= $this->structureHTML( $field['label'], - $this->selectMultipleHTML($name, $field), - $this->createValidate($type, $name)); + $this->selectMultipleHTML($name, $field)); break; case 'interval': $html.= $this->structureHTML( $field['label'], - $this->intervalHTML($name, $field), - $this->createValidate($type, $name)); + $this->intervalHTML($name, $field)); break; case 'date': $html.= $this->structureHTML( $field['label'], - $this->dateHTML($name, $field), - $this->createValidate($type, $name)); + $this->dateHTML($name, $field)); break; case 'text': $html.= $this->structureHTML( $field['label'], - $this->textHTML($name, $field), - $this->createValidate($type, $name)); + $this->textHTML($name, $field)); break; case 'textarea': $html.= $this->structureHTML( $field['label'], - $this->textareaHTML($name, $field), - $this->createValidate($type, $name)); + $this->textareaHTML($name, $field)); break; case 'radio': $html.= $this->structureHTML( $field['label'], - $this->radioHTML($name, $field), - $this->createValidate($type, $name)); + $this->radioHTML($name, $field)); break; } $html.= ''; @@ -57,18 +50,6 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract return $html; } - private function createValidate($type, $name) - { - $return = array(); - switch($type) { - case 'textarea': - case 'date': - //$return[] = array('lib'=>'Valider', 'url'=>'#'); - break; - } - return $return; - } - private function structureHTML($label, $html, $liens = array()) { $out = '';