open-law/app/forms/book.py

9 lines
273 B
Python
Raw Normal View History

2023-04-24 06:57:38 +00:00
from flask_wtf import FlaskForm
2023-04-26 13:14:57 +00:00
from wtforms import StringField, SubmitField
2023-04-24 06:57:38 +00:00
from wtforms.validators import DataRequired, Length
class CreateBookForm(FlaskForm):
label = StringField("Label", [DataRequired(), Length(6, 1024)])
submit = SubmitField("Add new book")