Activer reset du mot de passe

This commit is contained in:
Claude Paroz 2025-08-27 19:52:26 +02:00
parent cf17495076
commit 086b12ef79
6 changed files with 119 additions and 3 deletions

View file

@ -0,0 +1,32 @@
{% extends "base.html" %}
{% load i18n static %}
{% block title %}{% if form.email.errors %}{% translate "Error:" %} {% endif %}{{ block.super }}{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" href="{% static "admin/css/forms.css" %}">{% endblock %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
&rsaquo; {% translate 'Password reset' %}
</div>
{% endblock %}
{% block content %}
<p>{% translate 'Forgotten your password? Enter your email address below, and well email instructions for setting a new one.' %}</p>
<form method="post">{% csrf_token %}
<fieldset class="module aligned mt-3">
<div class="form-row field-email">
{{ form.email.errors }}
<div class="flex-container">
<label for="id_email">{% translate 'Email address:' %}</label>
{{ form.email }}
</div>
</div>
</fieldset>
<div class="submit-row mt-3">
<input type="submit" value="{% translate 'Reset my password' %}">
</div>
</form>
{% endblock %}