예제 #1
0
파일: Choice.php 프로젝트: PayIcam/shotgun
 public function getForm($title, $action, $submit)
 {
     $form = new Form();
     $form->title = $title;
     $form->action = $action;
     $form->submit = $submit;
     $form->addItem(new Field("Nom", "name", $this->name, "Nom du choix"));
     $form->addItem(new Field("Prix cotisant", "priceC", $this->priceC, "Prix du choix pour les cotisants BDE", "euro"));
     // $form->addItem(new Field("Prix non cotisant", "priceNC", $this->priceNC, "Prix du choix pour les non cotisants BDE", "euro"));
     $form->addItem(new Field("Stock", "stock", $this->stock, "Nombre de place", "number"));
     return $form;
 }
예제 #2
0
파일: Desc.php 프로젝트: PayIcam/shotgun
 public function getForm($title, $action, $submit)
 {
     $promos = array('all' => 'Tout le monde qui a un mail icam.fr', 'Intégrés' => array(116 => 116, 117 => 117, 118 => 118, 119 => 119, 120 => 120), 'Apprentissage' => array(2016 => 2016, 2017 => 2017, 2018 => 2018, 2019 => 2019, 2020 => 2020), 'Permanent' => 'Permanent (@icam.fr)', 'Ingenieur' => 'Tous les Ingénieur (@promo.icam.fr)', 'Dernières promo sorties' => array(115 => 115, 114 => 114, 113 => 113));
     $form = new Form();
     $form->title = $title;
     $form->action = $action;
     $form->submit = $submit;
     $form->addItem(new Field("Titre", "titre", $this->titre, "Titre du shotgun"));
     $form->addItem(new TextareaField("Description", "desc", $this->desc, "Description du shotgun"));
     $form->addItem(new BoolField("Evenement public", "is_public", $this->is_public, "Indique si l'événement est publiquement afficher sur le site de shotgunutc."));
     $form->addItem(new Field("Nombre max de places", "quota", $this->quota, "Combien de ventes au maximum ?", "number"));
     $form->addItem(new Field("Debut", "debut", $this->debut, "Debut du shotgun", "datetime"));
     $form->addItem(new Field("Fin", "fin", $this->fin, "Fin du shotgun", "datetime"));
     $form->addItem(new Select("Public visé", "public_cible", $this->public_cible, $promos, "Public cible visé: quelles promos ont le droit de voir l'event"));
     return $form;
 }