```
✨ feat(contrats/add.twig): Ajoute le détail des options au formulaire ✨ feat(SearchProduct.js): Implémente la recherche et la sélection d'options 🐛 fix(DevisController.php): Corrige la création/édition de devis et supprime un devis ✨ feat(admin.js): Enregistre les custom elements SearchOptions ✨ feat(templates/dashboard/devis): Permet l'édition et la suppression d'un devis ```
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
|
||||
{# Modifier : Interdit si signé #}
|
||||
{% if quote.state != "signed" and quote.state != "signée" %}
|
||||
<a href="{{ path('app_crm_devis_add', {id: quote.id}) }}" class="p-2 bg-blue-600/10 hover:bg-blue-600 text-blue-500 hover:text-white rounded-xl transition-all border border-blue-500/20 shadow-lg shadow-blue-600/5">
|
||||
<a href="{{ path('app_crm_devis_edit', {id: quote.id}) }}" class="p-2 bg-blue-600/10 hover:bg-blue-600 text-blue-500 hover:text-white rounded-xl transition-all border border-blue-500/20 shadow-lg shadow-blue-600/5">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
{# Delete : Interdit si signé #}
|
||||
{% if quote.state != "signed" and quote.state != "signée" %}
|
||||
<a href="{{ path('app_crm_devis_add', {id: quote.id}) }}?_token={{ csrf_token('delete' ~ quote.id) }}"
|
||||
<a data-turbo="false" href="{{ path('app_crm_devis_delete', {id: quote.id}) }}?_token={{ csrf_token('delete' ~ quote.id) }}"
|
||||
data-turbo-method="post"
|
||||
data-turbo-confirm="Confirmer la suppression du devis {{ quote.num }} ?"
|
||||
class="p-2 bg-rose-500/10 hover:bg-rose-600 text-rose-500 hover:text-white rounded-xl transition-all border border-rose-500/20">
|
||||
|
||||
Reference in New Issue
Block a user