use bootstrap alerts for flashes
This commit is contained in:
parent
780ae4ebcc
commit
2759f6812c
|
@ -9,13 +9,9 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% with messages = get_flashed_messages() %}
|
{% with messages = get_flashed_messages() %}
|
||||||
{% if messages %}
|
{% for message in messages %}
|
||||||
<ul class=flashes>
|
<div class="alert alert-danger" role="alert">{{ message }}</div>
|
||||||
{% for message in messages %}
|
{% endfor %}
|
||||||
<li>{{ message }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
<footer class="page-footer" style="position: fixed; left: 0; bottom: 0; width: 100%; text-align: center">
|
<footer class="page-footer" style="position: fixed; left: 0; bottom: 0; width: 100%; text-align: center">
|
||||||
|
|
Loading…
Reference in New Issue