diff --git a/templates/book.html b/templates/book.html index c92d088..b826bc3 100644 --- a/templates/book.html +++ b/templates/book.html @@ -25,67 +25,63 @@ {% endfor %} {% elif key == "publisher" %} -
-
+
+
+ +
+ +
+ {% elif key == "author" %} +
+ {% set cnt = namespace(idx=0) %} + {% for objects in books[key] %} +
+ {% if cnt.idx > 0 %} +
+ +
+ {% endif %}
- -
-
- {% elif key == "author" %} -
-
- {% set cnt = namespace(idx=0) %} - {% for objects in books[key] %} -
- {% if cnt.idx > 0 %} -
- -
- {% endif %} -
- -
- -
- {% set cnt.idx = cnt.idx+1 %} - {% endfor %} -
- -
-
-
+
+ {% set cnt.idx = cnt.idx+1 %} + {% endfor %} +
+ +
+
{% else %} -
- {{book_form[key](class="form-control", value=books[key], rows="5" )}} -
+
+ {{book_form[key](class="form-control", value=books[key], rows="5" )}} +
{% endif %} {% endfor %}