_delete_form.html.twig 314 B

1234
  1. <form method="post" action="{{ path('app_article_delete', {'id': article.id}) }}" onsubmit="return confirm('Êtes-vous certain de vouloir supprimer cet article ?');">
  2. <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ article.id) }}">
  3. <button class="btn btn-red">Supprimer</button>
  4. </form>