Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions templates/account/password_reset.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% extends "account/base.html" %}
{% load i18n account %}

{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %}

{% block content %}
<h1>{% trans "Password Reset" %}</h1>

<p>{% trans "Forgotten your password? Enter your email address below and we'll send you an email allowing you to reset it." %}</p>

<form method="post" action="{% url 'account_reset_password' %}" class="password_reset">
{% csrf_token %}
{{ form.as_p }}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}
<button class="primaryAction" type="submit">{% trans "Reset My Password" %}</button>
</form>

{% endblock content %}
11 changes: 11 additions & 0 deletions templates/account/password_reset_done.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "account/base.html" %}
{% load i18n %}

{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %}

{% block content %}
<h1>{% trans "Password Reset" %}</h1>

<p>{% trans "We have sent you an email. Please contact us if you do not receive it within a few minutes." %}</p>

{% endblock content %}
31 changes: 31 additions & 0 deletions templates/account/password_reset_from_key.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% extends "account/base.html" %}
{% load i18n %}

{% block page_title %}{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}{% endblock page_title %}

{% block content %}
<h1>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h1>

{% if token_fail %}
{% url 'account_reset_password' as passwd_reset_url %}
<p>
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}
</p>
{% else %}
<form method="post" action="{{ action_url }}">
{% csrf_token %}
{{ form.as_p }}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}
<button type="submit" name="action">{% trans "Change Password" %}</button>
</form>
{% endif %}

{% if not cancel_url %}
<form id="logout-from-stage" method="post" action="{% url 'account_logout' %}">
<input type="hidden" name="next" value="{% url 'account_login' %}">
{% csrf_token %}
</form>
{% endif %}
{% endblock content %}
11 changes: 11 additions & 0 deletions templates/account/password_reset_from_key_done.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "account/base.html" %}
{% load i18n %}

{% block page_title %}{% trans "Change Password" %}{% endblock page_title %}

{% block content %}
<h1>{% trans "Change Password" %}</h1>
<p>{% trans "Your password is now changed." %}</p>
<p><a class="button" href="{% url 'account_login' %}">Sign In</a></p>
{% endblock content %}

Loading