2018-03-27 21:29:58 -05:00
|
|
|
"""Forms module."""
|
|
|
|
# pylint: disable=too-few-public-methods
|
2018-03-27 21:16:54 -05:00
|
|
|
from flask_wtf import FlaskForm
|
2018-03-27 21:29:58 -05:00
|
|
|
from wtforms import StringField, FieldList, BooleanField
|
2018-03-27 21:16:54 -05:00
|
|
|
|
|
|
|
|
|
|
|
class SearchBookmarksForm(FlaskForm):
|
|
|
|
keywords = FieldList(StringField('Keywords'), min_entries=1)
|
|
|
|
all_keywords = BooleanField('Match all keywords')
|
|
|
|
deep = BooleanField('Deep search')
|
|
|
|
regex = BooleanField('Regex')
|