Skip to content

Commit 2649067

Browse files
committed
Add skip options to optional setup screens. Mark setup complete after mandatory screens are completed. Fixes #211
1 parent f251a0a commit 2649067

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

get_together/templates/get_together/new_user/setup_3_find_teams.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<div class="col-12">
1515
<center>
1616
<h3>{% trans "Here are some nearby teams you might want to join" %}</h3>
17+
<a href="{% url 'setup-4-attend-events' %}">{% trans "Skip and choose later" %}</a>
1718
</center>
1819
</div>
1920
</div>

get_together/templates/get_together/new_user/setup_4_attend_events.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<div class="col-12">
1515
<center>
1616
<h3>{% trans "Now pick some events that you'd like to attend" %}</h3>
17+
<a href="{% url 'setup-complete' %}">{% trans "Skip and choose later" %}</a>
1718
</center>
1819
</div>
1920
</div>

get_together/views/new_user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def setup_1_confirm_profile(request):
5151
):
5252
# Call the view to trigger sending a confirmation email, but ignore it's response
5353
user_send_confirmation_email(request)
54+
# Mark the account as completed setup, the rest of the steps are optional
55+
request.user.account.setup_complete()
5456
return redirect("setup-2-pick-categories")
5557
else:
5658
context = {

0 commit comments

Comments
 (0)