mirror of
https://github.com/tiyn/amphora-wiki.git
synced 2026-02-22 04:44:48 +01:00
adding fulltextsearch with searchpage
This commit is contained in:
11
src/forms.py
Normal file
11
src/forms.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from flask_wtf import CSRFProtect
|
||||
from wtforms import TextField, SubmitField, ValidationError, validators
|
||||
|
||||
csrf = CSRFProtect()
|
||||
|
||||
|
||||
class SearchForm(FlaskForm):
|
||||
query_str = TextField(
|
||||
"Query", [validators.Required("Please enter the search term")])
|
||||
submit = SubmitField("Send")
|
||||
Reference in New Issue
Block a user