Commit 043ff4d0 by Damien Moulard

update display in adherent admin edit page

parent 1ac124f2
...@@ -171,10 +171,10 @@ class AdherentAdmin extends AbstractAdmin ...@@ -171,10 +171,10 @@ class AdherentAdmin extends AbstractAdmin
if ($this->getConfigurationPool()->getContainer()->getParameter('tav_env')) { if ($this->getConfigurationPool()->getContainer()->getParameter('tav_env')) {
$formMapper $formMapper
->tab('General') ->tab('General')
->with('Profil de cotisation', ['class' => 'col-md-5']) ->with('Informations de cotisation', ['class' => 'col-md-5'])
->add('profilDeCotisation', ChoiceType::class, [ ->add('profilDeCotisation', ChoiceType::class, [
'required' => false, 'required' => false,
'label' => 'Choix du profil : ', 'label' => 'Choix du profil de cotisation : ',
'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(ProfilDeCotisation::class)->findAll(), 'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(ProfilDeCotisation::class)->findAll(),
'empty_data' => null, 'empty_data' => null,
'choice_label' => function ($choice, $key, $value) { 'choice_label' => function ($choice, $key, $value) {
...@@ -194,11 +194,13 @@ class AdherentAdmin extends AbstractAdmin ...@@ -194,11 +194,13 @@ class AdherentAdmin extends AbstractAdmin
$mlc = $em->getRepository(GlobalParameter::class)->val(GlobalParameter::MLC_SYMBOL); $mlc = $em->getRepository(GlobalParameter::class)->val(GlobalParameter::MLC_SYMBOL);
$formMapper $formMapper
->tab('General') ->tab('General')
->with('Solde', ['class' => 'col-md-12']) ->with('Informations de cotisation')
->add('idmlc', TextType::class, [ ->add('idmlc', TextType::class, [
'disabled' => true, 'disabled' => true,
'required' => false,
'label' => 'Solde e-' . $mlc . ' :', 'label' => 'Solde e-' . $mlc . ' :',
'data' => $balance . ' ' . $mlc]) 'data' => $balance . ' ' . $mlc
])
->end() ->end()
->end(); ->end();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment