diff --git a/templates/account/password_reset.html b/templates/account/password_reset.html new file mode 100644 index 000000000..b5b33a6b0 --- /dev/null +++ b/templates/account/password_reset.html @@ -0,0 +1,20 @@ +{% extends "account/base.html" %} +{% load i18n account %} + +{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %} + +{% block content %} +

{% trans "Password Reset" %}

+ +

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

+ +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} + +
+ +{% endblock content %} diff --git a/templates/account/password_reset_done.html b/templates/account/password_reset_done.html new file mode 100644 index 000000000..00eac2f07 --- /dev/null +++ b/templates/account/password_reset_done.html @@ -0,0 +1,11 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %} + +{% block content %} +

{% trans "Password Reset" %}

+ +

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

+ +{% endblock content %} diff --git a/templates/account/password_reset_from_key.html b/templates/account/password_reset_from_key.html new file mode 100644 index 000000000..db4111a5b --- /dev/null +++ b/templates/account/password_reset_from_key.html @@ -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 %} +

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

+ + {% if token_fail %} + {% url 'account_reset_password' as passwd_reset_url %} +

+ {% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %} +

+ {% else %} +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} + +
+ {% endif %} + + {% if not cancel_url %} +
+ + {% csrf_token %} +
+ {% endif %} +{% endblock content %} diff --git a/templates/account/password_reset_from_key_done.html b/templates/account/password_reset_from_key_done.html new file mode 100644 index 000000000..cab765135 --- /dev/null +++ b/templates/account/password_reset_from_key_done.html @@ -0,0 +1,11 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block page_title %}{% trans "Change Password" %}{% endblock page_title %} + +{% block content %} +

{% trans "Change Password" %}

+

{% trans "Your password is now changed." %}

+

Sign In

+{% endblock content %} +