Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c112e76

Browse files
authoredApr 4, 2017
Merge pull request parti-renaissance#760 from EnMarche/feat-admin-adherents
[Admin] added adherent email address list filter.
2 parents a9bdd7f + bf64338 commit c112e76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/AppBundle/Admin/AdherentAdmin.php

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Sonata\DoctrineORMAdminBundle\Filter\DateRangeFilter;
1919
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
2020
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
21+
use Symfony\Component\Form\Extension\Core\Type\EmailType;
2122
use Symfony\Component\Form\Extension\Core\Type\TextType;
2223

2324
class AdherentAdmin extends AbstractAdmin
@@ -183,6 +184,8 @@ protected function configureDatagridFilters(DatagridMapper $datagridMapper)
183184
])
184185
->add('emailAddress', null, [
185186
'label' => 'Adresse e-mail',
187+
'show_filter' => true,
188+
'field_type' => EmailType::class,
186189
])
187190
->add('registeredAt', DateRangeFilter::class, [
188191
'label' => 'Date d\'adhésion',

0 commit comments

Comments
 (0)
Please sign in to comment.