Skip to content
Snippets Groups Projects
Unverified Commit fe0d78d6 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #896 from OpenTechFund/fix/password_activate_reset_errors

Display errors and password rules on password reset form
parents 35ef102d 38e8ae6a
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,31 @@ ...@@ -4,10 +4,31 @@
{% block page_title %}Set your new password{% endblock %} {% block page_title %}Set your new password{% endblock %}
{% block content %} {% block content %}
<div class="wrapper wrapper--small wrapper--bottom-space"> <div class="wrapper wrapper--small wrapper--bottom-space">
<form class="form form--with-p-tags" method="post" novalidate> <form class="form" 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.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 %}
{% csrf_token %} {% csrf_token %}
<p>{{ form.new_password1.label_tag }} {{ form.new_password1 }}</p>
<p>{{ form.new_password2.label_tag }} {{ form.new_password2 }}</p> {% for field in form %}
{% include "forms/includes/field.html" %}
{% endfor %}
<button class="link link--button-secondary" type="submit">{% trans 'Reset password' %}</button> <button class="link link--button-secondary" type="submit">{% trans 'Reset password' %}</button>
</form> </form>
</div> </div>
......
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