From aa7ad8b4507c4f53b1b7e70dbec6c00c96ffa4b2 Mon Sep 17 00:00:00 2001 From: nberting Date: Fri, 8 Jun 2018 17:56:20 +0200 Subject: [PATCH] updated red_link page --- app/models.py | 1 - app/static/css/style.css | 4 ++-- app/templates/add_book.html | 14 +++++++++----- app/templates/red_link.html | 27 +++++++++++++++------------ app/templates/show_books.html | 3 --- 5 files changed, 26 insertions(+), 23 deletions(-) diff --git a/app/models.py b/app/models.py index 2a2939a..75aa24b 100755 --- a/app/models.py +++ b/app/models.py @@ -124,7 +124,6 @@ class BookSchema(Schema): stacks = fields.Nested(StackSchema, many=True) - def must_not_be_blank(data): if not data: raise ValidationError('You forgot to write stuff.') diff --git a/app/static/css/style.css b/app/static/css/style.css index 02397ac..8f8d93e 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -24,7 +24,7 @@ float: left; display: block; color: black; text-align: center; - padding: 14px 16px; + padding: 14px 18px; font-size: 18px; text-decoration: none; } @@ -41,7 +41,7 @@ font-style: italic; } .container{ -padding: 0px 8px; +padding: 0px 10px; } diff --git a/app/templates/add_book.html b/app/templates/add_book.html index c01dc37..d3f2ab5 100755 --- a/app/templates/add_book.html +++ b/app/templates/add_book.html @@ -16,10 +16,10 @@ {% endwith %}
{{ form.csrf_token }} -
{{ form.title.label }} {{ form.title(size=20, class="form-control") }}
+
Title: {{ form.title (size=34, class="form-control") }}

- {{ form.author.label }} @@ -28,20 +28,24 @@ {% for author in form.author %} - + {% endfor %}
{{ author.author_name }}{{ author.author_name (size=40)}}
+
+
-
{{ form.category.label }} {{ form.category(size=20, class="form-control") }}
+
Category: {{ form.category(size=27, class="form-control") }}
-
{{ form.year_published.label }} {{ form.year_published(size=4, class="form-control") }}

+ {{ form.file }} {{ form.upload }} {{ form.wish }} +
+ diff --git a/app/templates/red_link.html b/app/templates/red_link.html index b86a30b..a3416a4 100755 --- a/app/templates/red_link.html +++ b/app/templates/red_link.html @@ -1,12 +1,8 @@ {% extends "base.html" %} -{% block title %}Red link page{% endblock %} {% block css %} {% endblock %} -{% block header %}{% endblock %} - {% block main %}

Nothing in the library yet with: {{ title }}

-

Add this potential book:

+
{% with messages = get_flashed_messages() %} {% if messages %} @@ -38,13 +32,19 @@
{% endif %} {% endwith %} -
+ +
+
+
+

Add this potential book:

+
{{ form.csrf_token }} -
{{ form.title.label }} {{ form.title(size=20, class="form-control") }}
+
Title: {{ form.title (size=34, class="form-control") }}

- {{ form.author.label }} @@ -53,14 +53,17 @@ {% for author in form.author %} - + {% endfor %}
{{ author.author_name }}{{ author.author_name (size=40)}}
+
+
+
+
Category: {{ form.category(size=27, class="form-control") }}

-
{{ form.category.label }} {{ form.category(size=20, class="form-control") }}
{{ form.file }} {{ form.upload }} {{ form.wish }} diff --git a/app/templates/show_books.html b/app/templates/show_books.html index 04dbcc5..3f767fc 100755 --- a/app/templates/show_books.html +++ b/app/templates/show_books.html @@ -1,10 +1,7 @@ {% extends 'base.html' %} {% block main %} -
- - {% from "_formhelpers.html" import render_field %}
{{ form.select(style="width: 100px; margin: 10px; float: left; font-size: 20px") }}