✨ feat(edl): Ajoute la gestion de l'état des lieux de retour et met à jour les URLs de l'environnement.
This commit is contained in:
@@ -67,6 +67,15 @@
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if providerSigned and customerSigned and etatLieux.status == 'edl_validated' %}
|
||||
<form action="{{ path('etl_mission_edl_return_start', {id: mission.id}) }}" method="post">
|
||||
<button type="submit" class="w-full py-4 bg-orange-600 hover:bg-orange-700 text-white rounded-2xl font-black uppercase text-sm tracking-widest shadow-lg shadow-orange-600/30 transition-all active:scale-95 flex items-center justify-center gap-3 mt-4">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" /></svg>
|
||||
Faire état des lieux retour
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
{% set is_chorus = (mission.devis and 'Chorus' in mission.devis.paymentMethod) %}
|
||||
|
||||
{% if not is_chorus %}
|
||||
|
||||
|
||||
{# CAUTION #}
|
||||
<div class="bg-white rounded-[2rem] p-6 border border-slate-100 shadow-sm mb-4">
|
||||
<h3 class="text-xs font-black text-slate-400 uppercase tracking-widest mb-4">Caution</h3>
|
||||
@@ -94,7 +94,7 @@
|
||||
<p class="text-xs font-black uppercase tracking-widest">Solde Réglé</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% elseif mission.etatLieux.status == 'edl_progress' %}
|
||||
<a href="{{ path('etl_mission_edl', {id: mission.id}) }}" class="w-full py-4 bg-indigo-600 hover:bg-indigo-500 text-white rounded-2xl font-black uppercase text-sm tracking-widest shadow-lg shadow-indigo-600/30 transition-all active:scale-95 flex items-center justify-center gap-3 mb-6">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" /></svg>
|
||||
@@ -116,6 +116,11 @@
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" /></svg>
|
||||
Reprendre l'état des lieux
|
||||
</a>
|
||||
{% elseif mission.etatLieux.status == 'edl_validated' %}
|
||||
<a href="{{ path('etl_mission_edl_return', {id: mission.id}) }}" class="w-full py-4 bg-indigo-600 hover:bg-indigo-500 text-white rounded-2xl font-black uppercase text-sm tracking-widest shadow-lg shadow-indigo-600/30 transition-all active:scale-95 flex items-center justify-center gap-3 mb-6">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" /></svg>
|
||||
Commenter l'état des lieux de retour
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{# DATES #}
|
||||
|
||||
Reference in New Issue
Block a user