1: <?php
2: namespace TIC\DemoBundle\Form;
3:
4: use TIC\CoreBundle\Base\TICFormType as BaseType;
5: use Symfony\Component\Form\FormBuilderInterface;
6:
7: use TIC\FormBundle\Form\Type\BirthdayType;
8: use TIC\FormBundle\Form\Type\ChoiceType;
9: use TIC\FormBundle\Form\Type\StringType;
10: use TIC\FormBundle\Form\Type\EditorType;
11: use TIC\FormBundle\Form\Type\NumberType;
12: use TIC\FormBundle\Form\Type\NumberMoneyType;
13: use TIC\FormBundle\Form\Type\DateType;
14:
15: /**
16: * Formulaire de l'entité Formulaire.
17: */
18: class FormulaireType extends BaseType
19: {
20:
21: public function buildForm(FormBuilderInterface $builder, array $options)
22: {
23: $builder
24: ->add('name', StringType::class, [
25: ])
26: ->add('titles', ChoiceType::class, [
27: 'multiple' => true,
28: 'required' => false,
29: ])
30: ->add('description', EditorType::class, [
31: 'required' => false,
32: ])
33: ->add('quantity', NumberType::class, [
34: ])
35: ->add('tarif', NumberMoneyType::class, [
36: 'required' => false,
37: ])
38: ->add('score', NumberType::class, [
39: 'required' => false,
40: ])
41: ->add('etoile', NumberType::class, [
42: ])
43: ->add('dateNaissance', BirthdayType::class, [
44: ])
45: ;
46: }
47:
48: }
49: