2023-04-26 13:14:57 +00:00
|
|
|
from flask_wtf import FlaskForm
|
|
|
|
from wtforms import StringField, SubmitField
|
|
|
|
from wtforms.validators import DataRequired, Length
|
|
|
|
|
|
|
|
|
|
|
|
class CreateCollectionForm(FlaskForm):
|
2023-04-28 07:15:10 +00:00
|
|
|
label = StringField("Label", [DataRequired(), Length(3, 256)])
|
2023-04-26 13:14:57 +00:00
|
|
|
about = StringField("About")
|
|
|
|
|
|
|
|
submit = SubmitField("Create")
|
|
|
|
|
|
|
|
|
|
|
|
class EditCollectionForm(FlaskForm):
|
2023-04-28 07:15:10 +00:00
|
|
|
label = StringField("Label", [Length(3, 256)])
|
2023-04-26 13:14:57 +00:00
|
|
|
about = StringField("About")
|
|
|
|
|
|
|
|
submit = SubmitField("Edit")
|