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 %}
|
||||
<ul class="list-unstyled msg-list">
|
||||
{% 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>
|
||||
{% else %}
|
||||
{% elif message.tags %}
|
||||
<div class="alert alert-{{message.tags}}">{{ message|safe }}</div>
|
||||
{{message.tags}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue