mirror of https://github.com/logos-co/open-law.git
BaseCollectionForm
This commit is contained in:
parent
5af7933674
commit
c9bf181638
|
@ -3,15 +3,14 @@ from wtforms import StringField, SubmitField
|
|||
from wtforms.validators import DataRequired, Length
|
||||
|
||||
|
||||
class CreateCollectionForm(FlaskForm):
|
||||
class BaseCollectionForm(FlaskForm):
|
||||
label = StringField("Label", [DataRequired(), Length(3, 256)])
|
||||
about = StringField("About")
|
||||
|
||||
|
||||
class CreateCollectionForm(BaseCollectionForm):
|
||||
submit = SubmitField("Create")
|
||||
|
||||
|
||||
class EditCollectionForm(FlaskForm):
|
||||
label = StringField("Label", [Length(3, 256)])
|
||||
about = StringField("About")
|
||||
|
||||
class EditCollectionForm(BaseCollectionForm):
|
||||
submit = SubmitField("Edit")
|
||||
|
|
Loading…
Reference in New Issue