From 5812c740e2a07eaf4b516c510bf1748920c7379c Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Thu, 9 Apr 2026 07:58:17 +0200 Subject: [PATCH] feat: mention credit obligatoire E-Flex (process, PDF, email signature) Ajout "Un credit vous engage et doit etre rembourse. Verifiez votre capacite de remboursement avant de vous engager." dans : - Page process E-Flex (bandeau orange avant le bouton signer) - PDF contrat E-Flex (section dediee avant les signatures) - Email de signature E-Flex (encadre orange) Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Service/Pdf/EFlexPdf.php | 14 ++++++++++++++ templates/eflex/process.html.twig | 6 ++++++ templates/emails/eflex_signature.html.twig | 4 ++++ 3 files changed, 24 insertions(+) diff --git a/src/Service/Pdf/EFlexPdf.php b/src/Service/Pdf/EFlexPdf.php index b91303d..95d1ae4 100644 --- a/src/Service/Pdf/EFlexPdf.php +++ b/src/Service/Pdf/EFlexPdf.php @@ -31,6 +31,7 @@ class EFlexPdf extends Fpdi $this->writeContextBlock(); $this->writeEcheancesTable(); $this->writeConditions(); + $this->writeCreditWarning(); $this->writeSignatures(); } @@ -215,6 +216,19 @@ class EFlexPdf extends Fpdi $this->Ln(3); } + /** @codeCoverageIgnore */ + private function writeCreditWarning(): void + { + $this->SetFont('Arial', 'B', 8); + $this->SetTextColor(234, 88, 12); + $this->Cell(0, 5, $this->enc('INFORMATION IMPORTANTE'), 0, 1, 'L'); + $this->SetFont('Arial', '', 8); + $this->SetTextColor(100, 100, 100); + $this->Cell(0, 4, $this->enc('Un credit vous engage et doit etre rembourse. Verifiez votre capacite de remboursement avant de vous engager.'), 0, 1, 'L'); + $this->SetTextColor(0, 0, 0); + $this->Ln(5); + } + /** @codeCoverageIgnore */ private function writeSignatures(): void { diff --git a/templates/eflex/process.html.twig b/templates/eflex/process.html.twig index ca4b136..54b84ac 100644 --- a/templates/eflex/process.html.twig +++ b/templates/eflex/process.html.twig @@ -82,6 +82,12 @@

Les prelevements seront effectues automatiquement a chaque date prevue.

+ {# Mention credit #} +
+

Information importante

+

Un credit vous engage et doit etre rembourse. Verifiez votre capacite de remboursement avant de vous engager.

+
+ {# Boutons signer / refuser (si pas encore signe) #} {% if eflex.submissionId and eflex.state == 'draft' %}
diff --git a/templates/emails/eflex_signature.html.twig b/templates/emails/eflex_signature.html.twig index 547ee7e..b731bf5 100644 --- a/templates/emails/eflex_signature.html.twig +++ b/templates/emails/eflex_signature.html.twig @@ -18,6 +18,10 @@ {% if processUrl is defined and processUrl %}
Voir le contrat E-Flex
{% endif %} +
+

Information importante

+

Un credit vous engage et doit etre rembourse. Verifiez votre capacite de remboursement avant de vous engager.

+

E-Flex est une solution de financement sans frais supplementaires proposee par l'Association E-Cosplay.

Pour toute question : contact@e-cosplay.fr