Skip to content
Snippets Groups Projects
Commit d316c43b authored by Chris Lawton's avatar Chris Lawton
Browse files

adding error message classes for styling

parent 5e7296ba
No related branches found
No related tags found
No related merge requests found
...@@ -6,23 +6,21 @@ ...@@ -6,23 +6,21 @@
{% block content %} {% block content %}
{% if form.non_field_errors %} {% if form.non_field_errors %}
<div class="messages"> <ul class="errorlist">
<ul> {% for error in form.non_field_errors %}
{% for error in form.non_field_errors %} <li>{{ error }}</li>
<li class="error">{{ error }}</li> {% endfor %}
{% endfor %} </ul>
</ul>
</div>
{% endif %} {% endif %}
{% if form.errors %} {% if form.errors %}
<div class="messages"> <ul class="errorlist">
{% blocktrans count counter=form.errors.items|length %} {% blocktrans count counter=form.errors.items|length %}
Please correct the error below. <li>Please correct the error below.</li>
{% plural %} {% plural %}
Please correct the errors below. <li>Please correct the errors below.</li>
{% endblocktrans %} {% endblocktrans %}
</div> </ul>
{% endif %} {% endif %}
<form action="{% url 'users:password_change' %}" method="POST" novalidate> <form action="{% url 'users:password_change' %}" method="POST" novalidate>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment