bug 37 (allow deleting from on wish list) fixed

This commit is contained in:
2023-07-05 20:12:00 +10:00
parent e10191808a
commit 50412e23a3

View File

@@ -377,11 +377,11 @@ function AddAuthorToBook(num) {
<div class="form-row col mx-0">
{{ 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 %}
<span class="col-2" tabindex="0" data-toggle="tooltip"
title="Cannot Delete unless the book is saved as Sold">
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;" )}}
</span>
{% endif %}