Skip to content
Snippets Groups Projects
Commit 800bbf06 authored by Axel Po's avatar Axel Po
Browse files

feat: bete delete product

parent aef0f9a0
Branches
2 merge requests!6Dev,!3Feat/categories
......@@ -73,6 +73,6 @@ class ProductController extends AbstractController
$productRepository->remove($product, true);
}
return $this->redirectToRoute('app_product_index', [], Response::HTTP_SEE_OTHER);
return $this->redirectToRoute('app_product_index_admin', [], Response::HTTP_SEE_OTHER);
}
}
{% extends 'base.html.twig' %} {% block title %}Delete product {% endblock %} {% block body %}
<div class="mt-12 bg-red-500 text-white p-12 rounded-md">
<h1 class="text-3xl font-bold mb-12">
Etes vous sur de vouloir supprimer ce produit ?
</h1>
<div class="flex gap-6 items-center">
<a
class="inline-block bg-gray-500 rounded-md px-3 py-2"
href="{{ path('app_product_index_admin') }} "
>Annuler</a
>
{{ include("product/_delete_form.html.twig") }}
</div>
</div>
{% endblock %}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment