diff --git a/templates/book.html b/templates/book.html index 24a5f5c..7b55c89 100644 --- a/templates/book.html +++ b/templates/book.html @@ -377,11 +377,11 @@ function AddAuthorToBook(num) {
{{ book_form.submit( class="btn btn-primary offset-2 col-2" )}} {% if 'Edit' in page_title %} - {% if GetOwnedById(b.owned) == 'Sold' %} + {% if GetOwnedById(b.owned) != 'Currently Owned' %} {{ book_form.delete( class="btn btn-outline-danger col-2" )}} {% else %} + title="Cannot Delete while the book is still 'Currently Owned'"> {{ book_form.delete( class="btn btn-outline-danger col-2 disabled", disabled="true", style="pointer-events: none;" )}} {% endif %}