From 478dc90aa56aa528ec346a2e7fcc71554b46e7c4 Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Mon, 16 Feb 2026 09:12:49 +0100 Subject: [PATCH] add webhooks for refused signature contrat --- templates/dashboard/contrats/list.twig | 55 ++++++++++++++++++-------- 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/templates/dashboard/contrats/list.twig b/templates/dashboard/contrats/list.twig index c8e8db8..345fdcd 100644 --- a/templates/dashboard/contrats/list.twig +++ b/templates/dashboard/contrats/list.twig @@ -43,14 +43,31 @@
- {# --- BANNIÈRE DE LITIGE (Si signature refusée) --- #} - {% if contrat.etatLieux and contrat.etatLieux.status == 'edl_return_refused' %} + {# --- BANNIÈRE DE REFUS (Prioritaire) --- #} + {% if contrat.refused %} +
+
+
+ +
+
+

CONTRAT REFUSÉ

+

+ Motif : "{{ contrat.refusedRaison|default('Aucune raison spécifiée') }}" +

+
+
+
+ {% endif %} + + {# --- BANNIÈRE DE LITIGE (Si signature EDL refusée) --- #} + {% if contrat.etatLieux and contrat.etatLieux.status == 'edl_return_refused' and not contrat.refused %}
- - - - + + + +

⚠️ Litige : Signature refusée par le client

@@ -66,17 +83,21 @@

-
+
{# 1. RÉFÉRENCE & STATUTS #}
Réservation -

{{ contrat.numReservation }}

+

{{ contrat.numReservation }}

{# Status Contrat #} - {% if contrat.isSigned %} + {% if contrat.refused %} +
+ Refusé +
+ {% elseif contrat.isSigned %}
Contrat Signé
@@ -207,11 +228,15 @@ class="w-full lg:w-12 h-12 rounded-2xl bg-white/5 border border-white/10 flex items-center justify-center text-white hover:bg-blue-600 hover:border-blue-400 transition-all group/btn" title="Consulter"> - - - + + {# Bouton Renvoyer Mail : Caché si signé OU refusé #} + {% if not contrat.isSigned and not contrat.refused %} + + + + {% endif %}
@@ -223,6 +248,4 @@ {{ knp_pagination_render(contrats) }}
- - {% endblock %}