Password reset form

This commit is contained in:
Joachim 2021-11-29 23:30:23 +01:00
parent 80535a3b0c
commit 43072a357f

View file

@ -8,21 +8,33 @@
<div class="column"> <div class="column">
<div class="block"> <div class="block">
<h1 class="title">{% trans "Reset Password" %}</h1> <h1 class="title">{% trans "Reset Password" %}</h1>
{% for error in errors %}
<p class="is-danger">{{ error }}</p> {% if errors %}
{% endfor %} <div id="form_errors">
{% for error in errors %}
<p class="is-danger">
{{ error }}
</p>
{% endfor %}
</div>
{% endif %}
<form name="password-reset" method="post" action="/password-reset/{{ code }}"> <form name="password-reset" method="post" action="/password-reset/{{ code }}">
{% csrf_token %} {% csrf_token %}
<div class="field"> <div class="field">
<label class="label" for="id_new_password">{% trans "Password:" %}</label> <label class="label" for="id_new_password">
{% trans "Password:" %}
</label>
<div class="control"> <div class="control">
<input type="password" name="password" maxlength="128" class="input" required="" id="id_new_password"> <input type="password" name="password" maxlength="128" class="input" required="" id="id_new_password" aria-describedby="form_errors">
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label class="label" for="id_confirm_password">{% trans "Confirm password:" %}</label> <label class="label" for="id_confirm_password">
{% trans "Confirm password:" %}
</label>
<div class="control"> <div class="control">
<input type="password" name="confirm-password" maxlength="128" class="input" required="" id="id_confirm_password"> <input type="password" name="confirm-password" maxlength="128" class="input" required="" id="id_confirm_password" aria-describedby="form_errors">
</div> </div>
</div> </div>
<div class="field is-grouped"> <div class="field is-grouped">