mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
14 lines
441 B
Python
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"))
|