Files
biblio/templates/book/_delete_form.html.twig
2022-05-20 14:53:13 +02:00

5 lines
294 B
Twig

<form method="post" action="{{ path('app_book_delete', {'id': book.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ book.id) }}">
<button class="btn btn-danger">Delete</button>
</form>