vue formulaire, utilisation de formRow pour tous
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Sat, 17 Nov 2012 09:07:04 +0000 (10:07 +0100)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Sat, 17 Nov 2012 09:07:04 +0000 (10:07 +0100)
module/Galerie/src/Galerie/Form/galerie.form.config.php
module/Galerie/view/galerie/index/edit.phtml

index bb2c8c7..6c22bc7 100644 (file)
@@ -18,7 +18,7 @@ return array(
     array(
         'name' => 'description',
         'attributes' => array(
-            'type' => 'text',
+            'type' => 'textarea',
         ),
         'options' => array(
             'label' => $this->translate('Galerie_form_label_description'),
index b4c16db..bbb1675 100644 (file)
@@ -6,11 +6,9 @@
 
 <?php
 echo $this->form()->openTag($form);
-echo $this->formHidden($form->get('id'));
-echo $this->formLabel($form->get('name'));
-echo $this->formText($form->get('name'));
-echo $this->formLabel($form->get('description'));
-echo $this->formTextarea($form->get('description'));
-echo $this->formSubmit($form->get('submit'));
+echo $this->formRow($form->get('id'));
+echo $this->formRow($form->get('name'));
+echo $this->formRow($form->get('description'));
+echo $this->formRow($form->get('submit'));
 echo $this->form()->closeTag($form);
 ?>