diff --git a/app/forms.py b/app/forms.py
index 81508e1..f1704ab 100755
--- a/app/forms.py
+++ b/app/forms.py
@@ -3,7 +3,7 @@ from wtforms import StringField, FileField, validators
from wtforms.validators import InputRequired, DataRequired
from wtforms import FieldList
from wtforms import Form as NoCsrfForm
-from wtforms.fields import StringField, FormField, SubmitField, SelectField
+from wtforms.fields import StringField, FormField, SubmitField, SelectField, RadioField
from app.models import Book, BookSchema, Author, Stack, StackSchema
# - - - Forms - - -
@@ -49,9 +49,12 @@ class SearchForm(FlaskForm):
('Author', 'Author'),
('Category', 'Category'),
('Stack', 'Stack')]
- select = SelectField('', choices=choices)
+ select = SelectField('', choices=choices, default='All')
search = StringField('', validators=[InputRequired()])
grid = SubmitField('Grid')
listview = SubmitField('List')
+ randomize = SubmitField('Order differently')
+
+
diff --git a/app/models.py b/app/models.py
index 80868ec..75aa24b 100755
--- a/app/models.py
+++ b/app/models.py
@@ -84,7 +84,6 @@ class Chat(db.Model):
self.message = message
self.time = datetime.datetime.utcnow()
-
class Stack(db.Model):
__tablename__ = 'stacks'
id = db.Column(db.Integer, primary_key = True)
@@ -125,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 105407c..28ddd7b 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;
}
@@ -139,7 +139,7 @@ font-size: 18px;
padding:6px 15px;
left:0px;
border:0px solid #dbdbdb;
-background-color: grey;
+background-color: #686d72;
color:#fafafa;
}
@@ -225,7 +225,7 @@ div.marquee > div.marquee-text {
padding: 10px;
margin: 0px;
height: 100%;
- background-color: #551A8B;
+ background-color: #b4b9be;
overflow-y: scroll;
overflow-x: hidden;
color: white;
@@ -262,7 +262,7 @@ z-index: 100000;
margin:0px!important;
padding:0px!important;
height: 40px;
- font-size: 20px;
+ font-size: 16px;
word-wrap: break-word;
word-break: break-all;
float: left;
@@ -287,7 +287,7 @@ box-sizing: border-box;
margin-top: 20px;
}
.messages .msg{
- font-size: 30px;
+ font-size: 24px;
margin: 0px;
margin-top: -15px;
margin-bottom: 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.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 43a331a..a3416a4 100755
--- a/app/templates/red_link.html
+++ b/app/templates/red_link.html
@@ -1,18 +1,14 @@
{% extends "base.html" %}
-{% block title %}Red link page{% endblock %}
{% block css %}
{% endblock %}
-{% block header %}{% endblock %}
-
{% block main %}
-We don't have any results for: {{ title }}
-upload?
-go back home?
-
-
+Nothing in the library yet with: {{ title }}
+
-
{% with messages = get_flashed_messages() %}
{% if messages %}
@@ -42,12 +32,19 @@
{% endif %}
{% endwith %}
+
+
+
+
+
+
Add this potential book:
+
+
+
+
Category: {{ form.category(size=27, class="form-control") }}
-
{{ form.category.label }} {{ form.category(size=20, class="form-control") }}
{{ form.file }}
{{ form.upload }}
{{ form.wish }}
+
go back home?
{% endblock %}
diff --git a/app/templates/results.html b/app/templates/results.html
index 54f4546..6ccb272 100644
--- a/app/templates/results.html
+++ b/app/templates/results.html
@@ -9,7 +9,7 @@
{{ render_field(form.search) }}
- {{ form.grid(style="font-size:20px")}}{{ form.listview(style="font-size:20px")}}
+ {{ form.grid(style="font-size:20px")}}{{ form.listview(style="font-size:20px")}}
@@ -33,7 +33,7 @@