Force user to fill out their user profile

This commit is contained in:
Patrick Smith
2018-10-30 15:31:56 -04:00
parent f8c4386d84
commit dd5f99faab
5 changed files with 95 additions and 4 deletions

View File

@@ -4,6 +4,13 @@
{% block content %}
<div class='col'>
{% if next is not none %}
{{ Alert('You must complete your profile',
message='<p>Before continuing, you must complete your profile</p>',
level='info'
) }}
{% endif %}
{% if form.errors %}
{{ Alert('There were some errors',
message="<p>Please see below.</p>",
@@ -25,7 +32,7 @@
</div>
</div>
{% set form_action = url_for('users.update_user') %}
{% set form_action = url_for('users.update_user', next=next) %}
{% include "fragments/edit_user_form.html" %}
</div>