| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
| 17 | { |
||
| 18 | // see: https://symfonycasts.com/screencast/symfony-forms/form-type-class |
||
| 19 | $builder |
||
| 20 | ->add( |
||
| 21 | 'content_support_searchfield', null, [ |
||
| 22 | 'attr' => [ |
||
| 23 | 'placeholder' => 'OC / GC / Name / Owner / %%%', |
||
| 24 | 'autofocus' => 'autofocus', |
||
| 25 | 'size' => '10%', |
||
| 26 | 'minlength' => '3', |
||
| 27 | 'maxlength' => '100', |
||
| 28 | 'style' => 'width: 250px;' |
||
| 29 | ], |
||
| 30 | 'required' => true, |
||
| 31 | 'disabled' => false, |
||
| 32 | 'label' => false, |
||
| 33 | 'trim' => true |
||
| 34 | ] |
||
| 35 | ) |
||
| 36 | ->add( |
||
| 37 | 'search_All', SubmitType::class, [ |
||
| 38 | 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 60px;'], |
||
| 39 | 'label' => '🔍' |
||
| 40 | ] |
||
| 41 | ) |
||
| 42 | ->add( |
||
| 43 | 'search_One', SubmitType::class, [ |
||
| 44 | 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 60px;'], |
||
| 45 | 'label' => '🔍=1' |
||
| 46 | ] |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |