Add a view for the first steps after the initial login

This commit is contained in:
2018-07-10 16:38:53 +02:00
parent 41f6c88df1
commit 81d949d708
3 changed files with 86 additions and 0 deletions

View File

@@ -321,3 +321,17 @@ class InviteForm(FlaskForm):
raise ValidationError(_('User is already invited'))
except NoResultFound:
pass
class FirstStepsForm(FlaskForm):
"""Form for the initial profile setup
"""
display_name = StringField(
label=_('Display name'),
validators=[DataRequired()],
description=_('This will be shown to other users as your name. You can use your real name, or any nickname you like.'))
time_zone = TimezoneField(
label=_('Your time zone'),
validators=[DataRequired()],
description=_('The start and end times of events will be displayed in this time zone.'))