Skip to content

Commit

Permalink
feat: déplacement du champ « Date de naissance » sous « Email »
Browse files Browse the repository at this point in the history
pour correspondre à l'ordre des informations sur la fiche de
souscription

closes #25
  • Loading branch information
real34 committed Jan 11, 2020
1 parent 5b68ab7 commit bc400d0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions symfony/src/Glukose/UserBundle/Admin/UserAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@ protected function configureFormFields(FormMapper $formMapper)
'label' => 'Prénom',
'attr' => array('placeholder' => 'Jean')
))
->add('dateNaissance', 'sonata_type_date_picker', array(
'required' => false,
'format' => 'dd/MM/yyyy',
'attr' => array(
'data-date-format' => 'DD/MM/YYYY',
'placeholder' => '31/01/1970'
)
))
->add('telephone', null, array(
'label' => 'Téléphone',
'attr' => array('placeholder' => '06 02 03 04 05')
Expand All @@ -180,6 +172,15 @@ protected function configureFormFields(FormMapper $formMapper)
'attr' => array('placeholder' => 'j.tibou@example.com'),
'help' => "Utilisée notamment pour se connecter à l'espace membres et pour retrouver la personne à travers les différents outils."
))
->add('dateNaissance', 'sonata_type_date_picker', array(
'label' => 'Date de naissance',
'required' => false,
'format' => 'dd/MM/yyyy',
'attr' => array(
'data-date-format' => 'DD/MM/YYYY',
'placeholder' => '31/01/1970'
)
))
->add('codeBarre', null, array(
'read_only' => true,
'help' => 'Le code barre est généré automatiquement à la création du Chouettos. Il n\'est pas possible de le modifier ici afin d\'éviter les mauvaises manipulations.'
Expand Down

0 comments on commit bc400d0

Please sign in to comment.