2023-04-19 15:32:30 +02:00

14 lines
439 B
Python

from flask_babel 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"))