2025.10.06-03:08:05
This commit is contained in:
38
templates/account/password_reset.html
Normal file
38
templates/account/password_reset.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n allauth account widget_tweaks %}
|
||||
{% block head_title %}
|
||||
{% trans "Password Reset" %}
|
||||
{% endblock head_title %}
|
||||
{% block content %}
|
||||
{% element h1 %}
|
||||
{% trans "Password Reset" %}
|
||||
{% endelement %}
|
||||
{% if user.is_authenticated %}
|
||||
{% include "account/snippets/already_logged_in.html" %}
|
||||
{% endif %}
|
||||
{% element p %}
|
||||
{% trans "Forgotten your password? Enter your email address below, and we'll send you an email allowing you to reset it." %}
|
||||
{% endelement %}
|
||||
{% url 'account_reset_password' as reset_url %}
|
||||
{% element form form=form method="post" action=reset_url %}
|
||||
{% slot body %}
|
||||
{% csrf_token %}
|
||||
{{ redirect_field }}
|
||||
|
||||
<div class="form-floating form-floating-sm">
|
||||
{% render_field form.email name="email" autocomplete="email" placeholder="E-Mail-Adresse" max-length="320" required="" class="form-control mb-3" %}
|
||||
<label for="id_email">E-Mail-Adresse</label>
|
||||
</div>
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
<div class="text-end mb-3">
|
||||
{% element button type="submit" class="btn btn-primary" %}
|
||||
{% trans 'Reset My Password' %}
|
||||
{% endelement %}
|
||||
</div>
|
||||
{% endslot %}
|
||||
{% endelement %}
|
||||
{% element p %}
|
||||
{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}
|
||||
{% endelement %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user