Files
biblio/templates/book/_delete_form.html.twig

14 lines
708 B
Twig

<div class="card border-danger mb-3 mt-5" style="">
<div class="card-header text-danger">Danger zone</div>
<div class="card-body text-danger">
<h5 class="card-title">Delete book with all the information and files</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<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>
</div>
</div>