From 972279db0edd2e87bbb4dde71ed5a091c76e5a3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20CHAZALLET?= Date: Thu, 15 Nov 2012 12:49:15 +0100 Subject: [PATCH] =?utf8?q?Formulaire=20:=20=C3=A9tape=201,=20rajout=20de=20l?= =?utf8?q?'objet=20formulaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- module/Galerie/src/Galerie/Form/GalerieForm.php | 51 +++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 module/Galerie/src/Galerie/Form/GalerieForm.php 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', + ) + )); + } + +} -- 1.7.10.4