Updated flash commands to allow for differently styled boxes

This commit is contained in:
2024-01-27 22:08:15 +00:00
parent ce316eb9fd
commit 595069772c
3 changed files with 18 additions and 15 deletions

View File

@ -35,12 +35,12 @@
</centre>
</div>
{% with messages = get_flashed_messages()%}
{% with messages = get_flashed_messages(with_categories=true)%}
{% if messages %}
{% for message in messages %}
{% for category, message in messages %}
<label>
<input type="checkbox" class="alertCheckbox" autocomplete="off" />
<div class="alert error">
<div class="alert {{category}}">
<span class="alertClose">X</span>
<span class="alertText">{{message}}
<br class="clear"/></span>