2023-03-28 22:50:07 +02:00

14 lines
441 B
Python

from flask_babelex import lazy_gettext
from flask_wtf import FlaskForm
from wtforms import BooleanField, SubmitField
from wtforms.validators import Optional
class NotificationForm(FlaskForm):
newsletter_enabled = BooleanField(
lazy_gettext("Newsletter"),
description=lazy_gettext("Information about new features and improvements."),
validators=[Optional()],
)
submit = SubmitField(lazy_gettext("Save"))