Change condition so as to show error messages in red
This commit is contained in:
parent
3202c83c68
commit
398a255965
1 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
<ul class="list-unstyled msg-list">
|
<ul class="list-unstyled msg-list">
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
{% if message.tags and message.tags == 'error' %}
|
{% if message.tags and 'error' in message.tags %}
|
||||||
<p class="card-warning-content card-warning-error">{{ message|safe }}</p>
|
<p class="card-warning-content card-warning-error">{{ message|safe }}</p>
|
||||||
{% else %}
|
{% elif message.tags %}
|
||||||
<div class="alert alert-{{message.tags}}">{{ message|safe }}</div>
|
<div class="alert alert-{{message.tags}}">{{ message|safe }}</div>
|
||||||
|
{{message.tags}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue