select2 field added to task form

This commit is contained in:
Julie Lenaerts 2021-11-18 09:34:52 +01:00
parent d1e1f7faa4
commit 78615519f4
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ and this project adheres to
* [person suggest] In widget "add person", improve the pertinence of persons when one of the names starts with the pattern;
* [person] do not ask for center any more on person creation
* [3party] do not ask for center any more on 3party creation
* [task] Select2 field in task form to allow search for a user (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/167)
## Test releases

View File

@ -52,7 +52,8 @@ class SingleTaskType extends AbstractType
'required' => false,
'center' => $center,
'role' => TaskVoter::SHOW,
'placeholder' => 'Not assigned'
'placeholder' => 'Not assigned',
'attr' => [ 'class' => ' select2 ']
])
->add('startDate', ChillDateType::class, [
'required' => false