Styled book form and added an ux dropzone component.

This commit is contained in:
krzysiej
2022-05-31 14:39:32 +02:00
parent 9817aa4c3f
commit 623aa91872
6 changed files with 107 additions and 16 deletions

View File

@@ -1,4 +1,13 @@
<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 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>