Michel Roux
83185d8545
All checks were successful
continuous-integration/drone/push Build is passing
27 lines
843 B
Python
27 lines
843 B
Python
from flask_wtf import FlaskForm
|
|
from wtforms import BooleanField, HiddenField, StringField
|
|
from wtforms.fields.html5 import SearchField, URLField
|
|
from wtforms.validators import DataRequired
|
|
|
|
|
|
class SearchForm(FlaskForm):
|
|
q = SearchField('search', validators=[DataRequired()])
|
|
|
|
|
|
class DeleteForm(FlaskForm):
|
|
class Meta:
|
|
csrf = False
|
|
|
|
id = HiddenField('id', validators=[DataRequired()])
|
|
|
|
|
|
class EditForm(FlaskForm):
|
|
id = HiddenField('id')
|
|
folder = StringField('folder', validators=[DataRequired()])
|
|
name = StringField('name', validators=[DataRequired()])
|
|
link = URLField('link', validators=[DataRequired()])
|
|
season = StringField('season', validators=[DataRequired()])
|
|
comment = StringField('comment')
|
|
keyword = StringField('keyword', validators=[DataRequired()])
|
|
is_vf = BooleanField('is_vf')
|