Added alert template

This commit is contained in:
Sander Ferdinand 2018-07-01 01:26:43 +02:00
parent 4851805fd0
commit e02796f287

View file

@ -0,0 +1,19 @@
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="row">
<div class="col-lg-12">
{% for message in messages %}
{% if message.category != 'error' %}
<div class="alert alert-success">
{{ message }}
</div>
{% else %}
<div class="alert alert-danger">
{{ message }}
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% endwith %}