From 93bf8a6b938f9a054c4bf39ef717c7d20d7cfdca Mon Sep 17 00:00:00 2001 From: nberting Date: Sun, 10 Jun 2018 17:41:44 +0200 Subject: [PATCH] extended info on add-book page --- app/static/css/style.css | 3 ++ app/templates/add_book.html | 48 +++++++++++++++++++++++++---- app/templates/show_book_detail.html | 39 +++++++++++++++++------ app/views.py | 13 +++++++- 4 files changed, 86 insertions(+), 17 deletions(-) diff --git a/app/static/css/style.css b/app/static/css/style.css index a7f6bbf..6db020c 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -83,6 +83,9 @@ border-spacing:0; /* Removes the cell spacing via CSS */ font-size: 20px; cursor: pointer; } +.library_table td{ +padding: 5px; +} th.headerSortUp{ background-color: #E8E8E8!important; diff --git a/app/templates/add_book.html b/app/templates/add_book.html index 35c5c6b..cf5dac6 100755 --- a/app/templates/add_book.html +++ b/app/templates/add_book.html @@ -1,7 +1,9 @@ {% extends 'base.html' %} {% block main %} -
+
+
+

Add Book

{% with messages = get_flashed_messages() %} {% if messages %} @@ -33,25 +35,59 @@ {% endfor %}
-

-
Category: {{ form.category(size=27, class="form-control") }}

Year published: {{ form.year_published(size=8, class="form-control") }}

-
- Add a message for future readers: {{ form.message(size=150, class="form-control") }} +
+ Add a message for future readers: {{ form.message(size=90, class="form-control") }}

{{ form.file }} {{ form.upload }} {{ form.wish }}
- +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Titles: {{ books_all }}
Authors: {{ authors_all }}
Categories: {{ categories|replace('[', '')|replace(']', '') }}
Stacks: {{ stacks_all|replace('[', '')|replace(']', '') }}
From the years: {{earliest}} –– {{latest}}
Gaps in the collection: At least {{ books_potential }} potential books missing
+
{% endblock %} diff --git a/app/templates/show_book_detail.html b/app/templates/show_book_detail.html index e7a0e77..19e8c64 100755 --- a/app/templates/show_book_detail.html +++ b/app/templates/show_book_detail.html @@ -5,21 +5,40 @@

{{ book.title }}

-

Year published: {{ book.year_published }}

-

Author(s):