Commit 78b7b956 by Yvon Kerdoncuff

Merge branch '5867-presta-not-activated-by-default' into 'ssa-gironde'

in case of presta_self_init_and_eval, disable prestataire by default at creation

See merge request cooperatic/kohinos-tav!71
parents 96a0da26 27dc9b63
......@@ -354,10 +354,20 @@ class PrestataireAdmin extends AbstractAdmin
->end()
;
/**
* In case of prestataire self init and evaluation use case activated,
* set prestataire disabled by default & add 'conventionnement' field.
*/
if ($this->getConfigurationPool()->getContainer()->getParameter('presta_self_init_and_eval')) {
$formMapper
->tab('Prestataire')
->with('Prestataire', ['class' => 'col-md-6'])
->remove('enabled')
->add('enabled', null, [
'label' => 'Activé ?',
'required' => false,
'data' => false
])
->add('conventionnement', ChoiceType::class, [
'choices' => [
'50 %' => 0.5,
......
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