From 1779c76c46c123efb62a96f72d90ae3df0119d76 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 16 Nov 2020 16:42:42 +0100 Subject: [PATCH] oops --- app/forms.py | 22 ++++++++++++++++++++ app/templates/search.html | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 app/forms.py create mode 100644 app/templates/search.html diff --git a/app/forms.py b/app/forms.py new file mode 100644 index 0000000..be2c6a6 --- /dev/null +++ b/app/forms.py @@ -0,0 +1,22 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from flask_wtf import FlaskForm +from wtforms import StringField, TextField, SubmitField +from wtforms.validators import DataRequired, Length + +class SearchForm(FlaskForm): + """Search form.""" + query = StringField('Query', [DataRequired()]) + submit = SubmitField('Search') diff --git a/app/templates/search.html b/app/templates/search.html new file mode 100644 index 0000000..9bc4565 --- /dev/null +++ b/app/templates/search.html @@ -0,0 +1,43 @@ + + +{% extends 'base.html' %} + +{% block content %} + + + +