use flask flash for notifications

This commit is contained in:
dandds
2018-11-30 15:53:35 -05:00
parent 6509c5a249
commit a2d6d59ca4
31 changed files with 203 additions and 209 deletions

View File

@@ -1,26 +1,9 @@
{% extends "base.html" %}
{% from "components/alert.html" import Alert %}
{% 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>",
level='error'
) }}
{% endif %}
{% if updated %}
{{ Alert('User information updated.', level='success') }}
{% endif %}
{% include "fragments/flash.html" %}
<div class='panel'>
<div class='panel__heading'>