forked from uncloud/uncloud
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
{% extends "account/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load account %}
|
|
|
|
{% block head_title %}{% trans "Password Reset" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% 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 id="resetForm" method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
|
|
{% csrf_token %}
|
|
{% if form.non_field_errors %}
|
|
<div class="p-2 my-4">
|
|
{{ form.non_field_errors }}
|
|
</div>
|
|
{% endif %}
|
|
{% csrf_token %}
|
|
<div class="form-group">
|
|
<label for="email">{% trans "Email" %}</label>
|
|
<input type="text" class="form-control" name="email" id="email" {% if form.email.value != None %}value="{{ form.email.value }}"{% endif %} required placeholder="{% trans 'Enter Your Email' %}">
|
|
{{ form.email.errors }}
|
|
</div>
|
|
<button class="btn btn-primary btn-block my-4" type="submit">{% trans 'Reset My Password' %}</button>
|
|
<p class="text-4 text-center text-muted">{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}</p>
|
|
</form>
|
|
{% endblock %}
|