Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 36 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
ModeleQuestionConformiteType | |
0.00% |
0 / 36 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
buildForm | |
0.00% |
0 / 33 |
|
0.00% |
0 / 1 |
2 | |||
configureOptions | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace App\Domain\AIPD\Form\Type; |
6 | |
7 | use App\Domain\AIPD\Model\ModeleQuestionConformite; |
8 | use Symfony\Component\Form\AbstractType; |
9 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
10 | use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
11 | use Symfony\Component\Form\FormBuilderInterface; |
12 | use Symfony\Component\OptionsResolver\OptionsResolver; |
13 | |
14 | class ModeleQuestionConformiteType extends AbstractType |
15 | { |
16 | public function buildForm(FormBuilderInterface $builder, array $options) |
17 | { |
18 | $builder |
19 | ->add('isJustificationObligatoire', CheckboxType::class, [ |
20 | 'required' => false, |
21 | 'label' => false, |
22 | ]) |
23 | ->add('texteConformite', TextareaType::class, [ |
24 | 'required' => false, |
25 | 'attr' => [ |
26 | 'maxlength' => 1000, |
27 | 'rows' => 1, |
28 | 'class' => 'textareaheight', |
29 | ], |
30 | 'purify_html' => true, |
31 | ]) |
32 | ->add('texteNonConformiteMineure', TextareaType::class, [ |
33 | 'required' => false, |
34 | 'attr' => [ |
35 | 'maxlength' => 1000, |
36 | 'rows' => 1, |
37 | 'class' => 'textareaheight', |
38 | ], |
39 | 'purify_html' => true, |
40 | ]) |
41 | ->add('texteNonConformiteMajeure', TextareaType::class, [ |
42 | 'required' => false, |
43 | 'attr' => [ |
44 | 'maxlength' => 1000, |
45 | 'rows' => 1, |
46 | 'class' => 'textareaheight', |
47 | ], |
48 | 'purify_html' => true, |
49 | ]) |
50 | ; |
51 | } |
52 | |
53 | public function configureOptions(OptionsResolver $resolver) |
54 | { |
55 | $resolver->setDefaults([ |
56 | 'data_class' => ModeleQuestionConformite::class, |
57 | ]); |
58 | } |
59 | } |