FestinHegre/templates/statut_commandes/_delete_form.html.twig

5 lines
313 B
Twig
Raw Normal View History

<form method="post" action="{{ path('app_statut_commandes_delete', {'id': statut_commande.id}) }}" onsubmit="return confirm('Es-tu sur de vouloir le supprimer ?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ statut_commande.id) }}">
<button class="btn">Supprimer</button>
</form>