From ff45513c7d23a555ea46d78329d62858ecd8ccd5 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 3 Jan 2021 11:59:36 +1100 Subject: [PATCH] fix up new regression on add subbook button after fixing loans div bug --- templates/book.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/book.html b/templates/book.html index a822154..0957ccc 100644 --- a/templates/book.html +++ b/templates/book.html @@ -126,7 +126,7 @@ function AddAuthorToBook(num) { {% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}

{{page_title}}

-
+
{{ book_form.id }} {{ book_form.csrf_token }} @@ -296,19 +296,20 @@ function AddAuthorToBook(num) { {{ hiddens.txt|safe }}
{% if books.loan|length %} -
-
-
Loaned to
+
+
+
Loaned to
{{books.loan[0].firstnames}} {{books.loan[0].surname}}

When: {{books.loan[0].date_lent}}
Contact: {{books.loan[0].contact_details}} -

-
-
-
+
+
+
+
{% endif %} + {% if 'Edit' in page_title %}
@@ -324,9 +325,8 @@ function AddAuthorToBook(num) { {{ book_form.rem_sub( class="btn btn-outline-danger offset-lg-2 col-lg-3" )}} {% endif %} -
+ {% endif %} - {% endblock main_content %}