mirror of https://github.com/tiyn/amphora-wiki
parent
0bc1a955a6
commit
cdf6660cae
@ -1,11 +1,9 @@
|
|||||||
from flask_wtf import FlaskForm
|
from flask_wtf import CSRFProtect, FlaskForm
|
||||||
from flask_wtf import CSRFProtect
|
from wtforms import StringField, SubmitField, ValidationError, validators
|
||||||
from wtforms import TextField, SubmitField, ValidationError, validators
|
|
||||||
|
|
||||||
csrf = CSRFProtect()
|
csrf = CSRFProtect()
|
||||||
|
|
||||||
|
|
||||||
class SearchForm(FlaskForm):
|
class SearchForm(FlaskForm):
|
||||||
query_str = TextField(
|
query_str = StringField("Query", [validators.DataRequired("Please enter the search term")])
|
||||||
"Query", [validators.Required("Please enter the search term")])
|
|
||||||
submit = SubmitField("Search")
|
submit = SubmitField("Search")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Markdown==3.1.1
|
Markdown
|
||||||
WTForms==2.2.1
|
WTForms
|
||||||
Flask==1.1.2
|
Flask
|
||||||
Flask_WTF==0.14.3
|
Flask_WTF
|
||||||
Whoosh==2.7.4
|
Whoosh
|
||||||
|
Loading…
Reference in new issue