This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 18
18
use Sonata \DoctrineORMAdminBundle \Filter \DateRangeFilter ;
19
19
use Symfony \Component \Form \Extension \Core \Type \CheckboxType ;
20
20
use Symfony \Component \Form \Extension \Core \Type \ChoiceType ;
21
+ use Symfony \Component \Form \Extension \Core \Type \EmailType ;
21
22
use Symfony \Component \Form \Extension \Core \Type \TextType ;
22
23
23
24
class AdherentAdmin extends AbstractAdmin
@@ -183,6 +184,8 @@ protected function configureDatagridFilters(DatagridMapper $datagridMapper)
183
184
])
184
185
->add ('emailAddress ' , null , [
185
186
'label ' => 'Adresse e-mail ' ,
187
+ 'show_filter ' => true ,
188
+ 'field_type ' => EmailType::class,
186
189
])
187
190
->add ('registeredAt ' , DateRangeFilter::class, [
188
191
'label ' => 'Date d \'adhésion ' ,
You can’t perform that action at this time.
0 commit comments