From 3f521ccedc075af72f548dfbe300077f58bdb250 Mon Sep 17 00:00:00 2001
From: Antony Le Courtes <antony.lecourtes@unicaen.fr>
Date: Tue, 29 Aug 2023 11:13:45 +0200
Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20visuelle=20correctif=20empl?=
 =?UTF-8?q?oyeur=20facultatif?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

(cherry picked from commit b04316673ac5a9c2eb4f446d632a55d35fa4f9c4)
---
 module/Dossier/src/Form/IntervenantDossierForm.php | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/module/Dossier/src/Form/IntervenantDossierForm.php b/module/Dossier/src/Form/IntervenantDossierForm.php
index 3b1c73a66d..b3e70a93f5 100755
--- a/module/Dossier/src/Form/IntervenantDossierForm.php
+++ b/module/Dossier/src/Form/IntervenantDossierForm.php
@@ -47,7 +47,7 @@ class IntervenantDossierForm extends AbstractForm
 
 
 
-    public function initForm()
+    public function initForm ()
     {
 
         $dossierIntervenant = $this->getServiceDossier()->getByIntervenant($this->intervenant);
@@ -94,6 +94,10 @@ class IntervenantDossierForm extends AbstractForm
         $this->dossierEmployeurFieldset = new EmployeurFieldset('DossierEmployeur');
         $this->dossierEmployeurFieldset->init();
 
+        if ($statut->getDossierEmployeurFacultatif()) {
+            $this->dossierEmployeurFieldset->get('employeur')->setLabel('Employeurs :');
+        }
+
         $this->dossierAutresFiedlset = new DossierAutresFieldset('DossierAutres', ['listChampsAutres' => $dossierIntervenant->getStatut()->getChampsAutres()]);
         $this->dossierAutresFiedlset->init();
 
@@ -133,7 +137,7 @@ class IntervenantDossierForm extends AbstractForm
 
 
 
-    public function setIntervenant(Intervenant $intervenant): self
+    public function setIntervenant (Intervenant $intervenant): self
     {
         $this->intervenant = $intervenant;
 
@@ -148,7 +152,7 @@ class IntervenantDossierForm extends AbstractForm
      *
      * @return array
      */
-    public function getInputFilterSpecification(): array
+    public function getInputFilterSpecification (): array
     {
         return [];
     }
-- 
GitLab