Show error messages in red

This commit is contained in:
PCoder 2019-12-26 20:32:01 +05:30
parent 2a760639f6
commit 3202c83c68

View file

@ -1,7 +1,11 @@
{% if messages %}
<ul class="list-unstyled msg-list">
{% for message in messages %}
<div class="alert {% if message.tags and message.tags == 'error' %} alert-danger {% else %} alert-{{message.tags}} {% endif %}">{{ message|safe }}</div>
{% if message.tags and message.tags == 'error' %}
<p class="card-warning-content card-warning-error">{{ message|safe }}</p>
{% else %}
<div class="alert alert-{{message.tags}}">{{ message|safe }}</div>
{% endif %}
{% endfor %}
</ul>
{% endif %}