Permalink
Browse files

Added templates for password reset and changing.

Translations of these strings should already be
part of Django (they were taken straight from the
templates in the admin interface).
  • Loading branch information...
1 parent 23b2ed6 commit 4a2fe23e0ac7438a3943f15d2884d157f86e931e @dokterbob dokterbob committed Nov 27, 2010
@@ -0,0 +1,9 @@
+{% extends "registration/base.html" %}
+{% load i18n %}
+
+{% block registration %}
+<h1>{% trans 'Password change successful' %}</h1>
+
+<p>{% trans 'Your password was changed.' %}</p>
+{% endblock %}
+d
@@ -0,0 +1,14 @@
+{% extends "registration/base.html" %}
+{% load i18n %}
+
+{% block registration %}
+<h1>{% trans 'Password change' %}</h1>
+
+<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+<form action="" method="post">
+{{ form }}
+{% csrf_token %}
+<input type="submit" name="some_name" value="{% trans 'Change my password' %}">
+</form>
+{% endblock %}
@@ -0,0 +1,10 @@
+{% extends "registration/base.html" %}
+{% load i18n %}
+
+{% block registration %}
+<h1>{% trans 'Password reset complete' %}</h1>
+
+<p>{% trans "Your password has been set. You may go ahead and log in now." %}</p>
+
+<p><a href="{{ login_url }}">{% trans 'Log in' %}</a></p>
+{% endblock %}
@@ -0,0 +1,24 @@
+{% extends "registration/base.html" %}
+{% load i18n %}
+
+{% block registration %}
+{% if validlink %}
+
+<h1>{% trans 'Enter new password' %}</h1>
+
+<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+<form action="" method="post">
+{% csrf_token %}
+{{ form }}
+<input type="submit" value="{% trans 'Change my password' %}" />
+</form>
+
+{% else %}
+
+<h1>{% trans 'Password reset unsuccessful' %}</h1>
+
+<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
+
+{% endif %}
+{% endblock %}
@@ -0,0 +1,8 @@
+{% extends "registration/base.html" %}
+{% load i18n %}
+
+{% block registration %}
+<h1>{% trans 'Password reset successful' %}</h1>
+
+<p>{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}</p>
+{% endblock %}
@@ -0,0 +1,12 @@
+{% extends "registration/base.html" %}
+{% load i18n %}
+
+{% block registration %}
+<h1>{% trans "Password reset" %}</h1>
+<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p>
+<form action="" method="post">
+{{ form }}
+{% csrf_token %}
+<input type="submit" value="{% trans 'Reset my password' %}">
+</form>
+{% endblock %}

0 comments on commit 4a2fe23

Please sign in to comment.