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/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 @@