diff --git a/templates/book.html b/templates/book.html index b826bc3..78fa81f 100644 --- a/templates/book.html +++ b/templates/book.html @@ -4,7 +4,7 @@

View/Edit Book

{% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %} -
+
{% for key in keys %}
@@ -85,7 +85,7 @@ {% endif %}
{% endfor %} -
+ {% if books.sub_book|length %}

sub_book is defined: {{books.sub_book}}

{% endif %} @@ -93,7 +93,20 @@

subs is defined {{ books.subs }}

{% endif %} {% if books.loan|length %} -

loan is defined: {{books.loan}}

+
+
+
Loaned to
+
+
{{books.loan[0].firstnames}} {{books.loan[0].surname}}
+

+ Date Lent: {{books.loan[0].date_lent}}
+ Contact: {{books.loan[0].contact_details}} +

+
+
+
{% endif %} +
+ {% endblock main_content %}