From: Sébastien CHAZALLET Date: Thu, 15 Nov 2012 11:49:15 +0000 (+0100) Subject: Formulaire : étape 1, rajout de l'objet formulaire X-Git-Url: http://git.inspyration.org/?p=zf2.biz%2Fgalerie.git;a=commitdiff_plain;h=972279db0edd2e87bbb4dde71ed5a091c76e5a3e Formulaire : étape 1, rajout de l'objet formulaire --- diff --git a/module/Galerie/src/Galerie/Form/GalerieForm.php b/module/Galerie/src/Galerie/Form/GalerieForm.php new file mode 100644 index 0000000..02107cd --- /dev/null +++ b/module/Galerie/src/Galerie/Form/GalerieForm.php @@ -0,0 +1,51 @@ +setAttribute('method', 'post'); + $this->add(array( + 'name' => 'id', + 'attributes' => array( + 'type' => 'hidden', + ), + )); + $this->add(array( + 'name' => 'name', + 'attributes' => array( + 'type' => 'text', + ), + 'options' => array( + 'label' => 'Name', + ) + )); + $this->add(array( + 'name' => 'description', + 'attributes' => array( + 'type' => 'text', + ), + 'options' => array( + 'label' => 'Description', + ) + )); + $this->add(array( + 'name' => 'submit', + 'attributes' => array( + 'type' => 'submit', + 'value' => 'Valider', + 'id' => 'submit_galerie_form', + ), + 'options' => array( + 'label' => 'Description', + ) + )); + } + +}