Simple file-based wiki with fulltext-search.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
323 B

  1. from flask_wtf import FlaskForm
  2. from flask_wtf import CSRFProtect
  3. from wtforms import TextField, SubmitField, ValidationError, validators
  4. csrf = CSRFProtect()
  5. class SearchForm(FlaskForm):
  6. query_str = TextField(
  7. "Query", [validators.Required("Please enter the search term")])
  8. submit = SubmitField("Send")