Skip to content
Snippets Groups Projects
Commit d8afca69 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Update the change password template styling

parent 377f86e5
No related branches found
No related tags found
No related merge requests found
...@@ -5,36 +5,33 @@ ...@@ -5,36 +5,33 @@
{% block title %}{% trans "Set a password" %}{% endblock %} {% block title %}{% trans "Set a password" %}{% endblock %}
{% block content %} {% block content %}
<div class="wrapper wrapper--small wrapper--bottom-space"> <div class="wrapper wrapper--small wrapper--inner-space-medium">
<form class="form" action="" method="POST" novalidate>
{% if form.non_field_errors %}
<ul class="errorlist">
{% for error in form.non_field_errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% if form.non_field_errors %} {% if form.errors %}
<ul class="errorlist"> <ul class="errorlist">
{% for error in form.non_field_errors %} {% blocktrans count counter=form.errors.items|length %}
<li>{{ error }}</li> <li>Please correct the error below.</li>
{% endfor %} {% plural %}
</ul> <li>Please correct the errors below.</li>
{% endif %} {% endblocktrans %}
</ul>
{% endif %}
{% if form.errors %}
<ul class="errorlist">
{% blocktrans count counter=form.errors.items|length %}
<li>Please correct the error below.</li>
{% plural %}
<li>Please correct the errors below.</li>
{% endblocktrans %}
</ul>
{% endif %}
<form class="form form--with-p-tags" action="" method="POST" novalidate>
{% csrf_token %} {% csrf_token %}
{% for field in form %} {% for field in form %}
{{ field.errors }} {% include "funds/includes/field.html" %}
<p>{{ field.label_tag }}</p>
<p>{{ field }}</p>
{% endfor %} {% endfor %}
<button class="link link--button-secondary" type="submit">{% trans 'Reset password' %}</button> <button class="button button--primary" type="submit">{% trans 'Reset password' %}</button>
</form> </form>
</div> </div>
{% endblock %} {% endblock %}
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