Commit aef6787f by Damien Moulard

add help msg for prestataires to explain reconversion frequency

parent 7b23e444
......@@ -20,6 +20,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use App\Enum\ReconversionFrequencyEnum;
use App\Entity\GlobalParameter;
class PrestataireInfosFormType extends AbstractType
{
......@@ -87,6 +88,12 @@ class PrestataireInfosFormType extends AbstractType
]);
if ($this->container->getParameter('tav_env') && $this->container->getParameter('automatisation_reconversion')) {
$mlcName = $this->em->getRepository(GlobalParameter::class)->val(GlobalParameter::MLC_NAME_SMALL);
$helpMsqg = "Fréquence à laquelle je souhaite que la caisse commune de l'alimentation (via l'association Acclimat'action)"
. " me verse en euros la somme des {$mlcName} encaissées dans mon point de vente "
. "(1 {$mlcName} = 1 euro). Le versement se fait via un virement bancaire.";
$builder
->add('reconversionFrequency', ChoiceType::class, [
'choices' => ReconversionFrequencyEnum::getAvailableTypes(),
......@@ -98,6 +105,7 @@ class PrestataireInfosFormType extends AbstractType
'label' => 'Fréquence de reconversion :',
'placeholder' => 'Choisir une option',
'required' => false,
'help' => $helpMsqg
]);
}
......
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