forked from gergely/calendar-social
Add a view for the first steps after the initial login
This commit is contained in:
@@ -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.'))
|
||||
|
Reference in New Issue
Block a user