From 9d76a3c52b8310726ec09e0262813f0438c21df6 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 19 Jan 2020 15:57:06 +0000 Subject: init commit - from cookiecutter --- .../templates/account/password_reset_from_key.html | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ctrack/templates/account/password_reset_from_key.html (limited to 'ctrack/templates/account/password_reset_from_key.html') diff --git a/ctrack/templates/account/password_reset_from_key.html b/ctrack/templates/account/password_reset_from_key.html new file mode 100644 index 0000000..4abdb56 --- /dev/null +++ b/ctrack/templates/account/password_reset_from_key.html @@ -0,0 +1,25 @@ +{% extends "account/base.html" %} + +{% load i18n %} +{% load crispy_forms_tags %} +{% block head_title %}{% trans "Change Password" %}{% endblock %} + +{% block inner %} +

{% 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 %} + {% if form %} +
+ {% csrf_token %} + {{ form|crispy }} + +
+ {% else %} +

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

+ {% endif %} + {% endif %} +{% endblock %} + -- cgit v1.2.3