diff --git a/templates/book.html b/templates/book.html index 06b9b56..096eefe 100644 --- a/templates/book.html +++ b/templates/book.html @@ -1,9 +1,18 @@ {% extends "base.html" %} {% block main_content %} -

View/Edit Book

- {% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %} -
+

View/Edit Book

+{% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %} +
+ {% if message|length %} +
+ {{message}} +
+ {% endif %} +
+ + {{ book_form.id }} + {{ book_form.csrf_token }} {% for key in keys %}
@@ -111,7 +120,7 @@
{% endif %} - {% if books.parent_ref|length %} + {% if b.parent|length %}
@@ -119,6 +128,10 @@
{% endif %} +
+ {{ book_form.delete( class="btn btn-outline-danger offset-lg-2 col-lg-2" )}} + {{ book_form.submit( class="btn btn-primary col-lg-2" )}} +
{% if books.loan|length %}
@@ -134,8 +147,9 @@
{% endif %} -
-
+ + + {% endblock main_content %} {% if books.child_ref|length %}