2017-08-16 16:46:26 +00:00
|
|
|
{% extends "registration/base.html" %}
|
2019-04-14 04:50:35 +00:00
|
|
|
{% load i18n static widget_tweaks %}
|
2024-02-06 13:35:36 +00:00
|
|
|
{% block title %}
|
|
|
|
{% trans "Password Reset" %}
|
|
|
|
{% endblock %}
|
2017-08-16 16:46:26 +00:00
|
|
|
{% block content %}
|
|
|
|
<form method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% if form.errors %}
|
|
|
|
<div class="alert alert-danger">
|
2020-01-24 04:00:32 +00:00
|
|
|
<p class="mb-0">
|
2024-02-06 13:35:36 +00:00
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<strong>Oh snap!</strong> The two passwords did not
|
|
|
|
match. Please try again.
|
|
|
|
{% endblocktrans %}
|
2020-01-24 04:00:32 +00:00
|
|
|
</p>
|
2017-08-16 16:46:26 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="text-center mb-4">
|
2019-04-14 04:50:35 +00:00
|
|
|
<p class="mb-0">{% trans "Enter your new password in each field below." %}</p>
|
2017-08-16 16:46:26 +00:00
|
|
|
</div>
|
2024-02-06 13:35:36 +00:00
|
|
|
<label class="visually-hidden" for="password1-input-group">{{ form.new_password1.label }}</label>
|
2017-08-16 16:46:26 +00:00
|
|
|
<div class="input-group mb-3 fade-in">
|
2023-07-09 16:26:13 +00:00
|
|
|
<span class="input-group-text text-body-secondary"><i class="icon-lock" aria-hidden="true"></i></span>
|
2017-08-16 16:46:26 +00:00
|
|
|
{% render_field form.new_password1 name='new_password1' class+='form-control' id='password1-input-group' %}
|
|
|
|
</div>
|
2024-02-06 13:35:36 +00:00
|
|
|
<label class="visually-hidden" for="password2-input-group">{{ form.new_password2.label }}</label>
|
2017-08-16 16:46:26 +00:00
|
|
|
<div class="input-group mb-3 fade-in">
|
2023-07-09 16:26:13 +00:00
|
|
|
<span class="input-group-text text-body-secondary"><i class="icon-lock" aria-hidden="true"></i></span>
|
2017-08-16 16:46:26 +00:00
|
|
|
{% render_field form.new_password2 name='new_password2' class+='form-control' id='password2-input-group' %}
|
|
|
|
</div>
|
2024-02-06 13:35:36 +00:00
|
|
|
<button class="btn btn-primary w-100 fade-in" type="submit" name="reset">{% trans "Reset Password" %}</button>
|
2017-08-16 16:46:26 +00:00
|
|
|
</form>
|
2024-02-06 13:35:36 +00:00
|
|
|
{% endblock %}
|