flash messaging prepare
This commit is contained in:
parent
1f545e281d
commit
6f4360adb2
1 changed files with 13 additions and 0 deletions
|
@ -34,3 +34,16 @@
|
|||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<li class="{{ category }}">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
|
Loading…
Add table
Reference in a new issue