Change condition so as to show error messages in red

This commit is contained in:
PCoder 2019-12-26 20:36:54 +05:30
parent 3202c83c68
commit 398a255965

View file

@ -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>