From 60bdbd8b4b856154e07fd4274d23cd56b001f9f2 Mon Sep 17 00:00:00 2001 From: Eric WAGNER <eric.wagner@etu.unistra.fr> Date: Thu, 30 Mar 2023 16:45:15 +0200 Subject: [PATCH] Ajout de la fonction delete du panier --- templates/cart/index.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/cart/index.html.twig b/templates/cart/index.html.twig index 4d87650..7bb4f85 100644 --- a/templates/cart/index.html.twig +++ b/templates/cart/index.html.twig @@ -32,8 +32,8 @@ <td>{{element.quantite * element.clothes.price}} €</td> <td> <a href="{{ path('app_cart_add', {id: element.clothes.id}) }}"><i class="bi bi-cart-plus"></i></a> - <a href=""><i class="bi bi-cart-dash"></i></a> - <a href=""><i class="bi bi-cart-x"></i></a> + <a href="{{ path('app_cart_remove', {id: element.clothes.id}) }}"><i class="bi bi-cart-dash"></i></a> + <a href="{{ path('app_cart_delete', {id: element.clothes.id}) }}"><i class="bi bi-cart-x"></i></a> </td> </tr> {% else %} -- GitLab