diff --git a/app/forms.py b/app/forms.py index 607a15b..5c84f77 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 +from wtforms.fields import StringField, FormField, SubmitField, SelectField from app.models import Book, BookSchema, Author # - - - Forms - - - @@ -26,4 +26,7 @@ class EditForm(FlaskForm): category = StringField('category', validators=[InputRequired()]) class SearchForm(FlaskForm): + choices = [('Title', 'Title'), + ('Category', 'Category')] + select = SelectField('', choices=choices) search = StringField('', validators=[InputRequired()]) diff --git a/app/static/css/style.css b/app/static/css/style.css index f442e51..103fc59 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -74,13 +74,14 @@ font-size: 16px; .search input{ margin: 0; float: left; -width: 400px; +width: 320px; height: 36px; font-size: 20px; font-weight: regular; padding: 2px; background:rgba(50, 50, 50, 0.2); border:0px; +box-shadow: inset 0 0 5px rgba(000,000,000, 0.2); } .button { diff --git a/app/templates/edit_book_detail.html b/app/templates/edit_book_detail.html index f7f9a27..3447d7a 100755 --- a/app/templates/edit_book_detail.html +++ b/app/templates/edit_book_detail.html @@ -11,9 +11,9 @@ {{ form.csrf_token }}