From 50412e23a39672232d3a1bccfb6d09a383ab18fa Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 5 Jul 2023 20:12:00 +1000 Subject: [PATCH] bug 37 (allow deleting from on wish list) fixed --- templates/book.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %}