mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-03 15:04:09 +03:00
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{% raw %}{% extends "account/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load account %}
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% block head_title %}{% trans "Password Reset" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
|
|
<h2>{% trans "Password Reset" %}</h2>
|
|
{% if user.is_authenticated %}
|
|
{% include "account/snippets/already_logged_in.html" %}
|
|
{% endif %}
|
|
|
|
<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>
|
|
|
|
<form method="POST" action="" class="password_reset">
|
|
{% csrf_token %}
|
|
{{ form|crispy }}
|
|
<button class="btn" type="submit">{% trans "Reset My Password" %}</button>
|
|
</form>
|
|
|
|
<p>{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block extra_body %}
|
|
<script>
|
|
$("#id_email").focus();
|
|
</script>
|
|
{% endblock %}
|
|
{% endraw %} |