summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilson Miner <wminer@gmail.com>2005-07-22 15:02:40 +0000
committerWilson Miner <wminer@gmail.com>2005-07-22 15:02:40 +0000
commit8ef422d070ecd19ab285282430b174513736aa9d (patch)
treeee2e01978c939b23d03eef6e9ccc8d0e9a60e7ad
parent837a64565b2494d3cac6909b070cb29c567b786c (diff)
Added password reset templates to admin_templates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/conf/admin_templates/registration/password_change_done.html11
-rw-r--r--django/conf/admin_templates/registration/password_change_form.html23
-rw-r--r--django/conf/admin_templates/registration/password_reset_done.html11
-rw-r--r--django/conf/admin_templates/registration/password_reset_email.html14
-rw-r--r--django/conf/admin_templates/registration/password_reset_form.html16
5 files changed, 75 insertions, 0 deletions
diff --git a/django/conf/admin_templates/registration/password_change_done.html b/django/conf/admin_templates/registration/password_change_done.html
new file mode 100644
index 0000000000..f10f0276f9
--- /dev/null
+++ b/django/conf/admin_templates/registration/password_change_done.html
@@ -0,0 +1,11 @@
+{% extends "base_site" %}
+
+{% block title %}Password change successful{% endblock %}
+
+{% block content %}
+
+<h1>Password change successful</h1>
+
+<p>Your password was changed.</p>
+
+{% endblock %}
diff --git a/django/conf/admin_templates/registration/password_change_form.html b/django/conf/admin_templates/registration/password_change_form.html
new file mode 100644
index 0000000000..2b5f708a91
--- /dev/null
+++ b/django/conf/admin_templates/registration/password_change_form.html
@@ -0,0 +1,23 @@
+{% extends "base_site" %}
+
+{% block title %}Password change{% endblock %}
+
+{% block content %}
+
+<h1>Password change</h1>
+
+<p>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">
+
+{% if form.old_password.errors %}{{ form.old_password.html_error_list }}{% endif %}
+<p class="aligned wide"><label for="id_old_password">Old password:</label>{{ form.old_password }}</p>
+{% if form.new_password1.errors %}{{ form.new_password1.html_error_list }}{% endif %}
+<p class="aligned wide"><label for="id_new_password1">New password:</label>{{ form.new_password1 }}</p>
+{% if form.new_password2.errors %}{{ form.new_password2.html_error_list }}{% endif %}
+<p class="aligned wide"><label for="id_new_password2">Confirm password:</label>{{ form.new_password2 }}</p>
+
+<p><input type="submit" value="Change my password" /></p>
+</form>
+
+{% endblock %}
diff --git a/django/conf/admin_templates/registration/password_reset_done.html b/django/conf/admin_templates/registration/password_reset_done.html
new file mode 100644
index 0000000000..013e15d2d8
--- /dev/null
+++ b/django/conf/admin_templates/registration/password_reset_done.html
@@ -0,0 +1,11 @@
+{% extends "base_site" %}
+
+{% block title %}Password reset successful{% endblock %}
+
+{% block content %}
+
+<h1>Password reset successful</h1>
+
+<p>We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly.</p>
+
+{% endblock %}
diff --git a/django/conf/admin_templates/registration/password_reset_email.html b/django/conf/admin_templates/registration/password_reset_email.html
new file mode 100644
index 0000000000..4a5bb920d6
--- /dev/null
+++ b/django/conf/admin_templates/registration/password_reset_email.html
@@ -0,0 +1,14 @@
+You're receiving this e-mail because you requested a password reset
+for your user account at {{ site_name }}.
+
+Your new password is: {{ new_password }}
+
+Feel free to change this password by going to this page:
+
+http://{{ domain }}/password_change/
+
+Your username, in case you've forgotten, is {{ user.username }}
+
+Thanks for using our site!
+
+The {{ site_name }} team
diff --git a/django/conf/admin_templates/registration/password_reset_form.html b/django/conf/admin_templates/registration/password_reset_form.html
new file mode 100644
index 0000000000..98daf49684
--- /dev/null
+++ b/django/conf/admin_templates/registration/password_reset_form.html
@@ -0,0 +1,16 @@
+{% extends "base_site" %}
+
+{% block title %}Password reset{% endblock %}
+
+{% block content %}
+
+<h1>Password reset</h1>
+
+<p>Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you.</p>
+
+<form action="" method="post">
+{% if form.email.errors %}{{ form.email.html_error_list }}{% endif %}
+<p><label for="id_email">E-mail address:</label> {{ form.email }} <input type="submit" value="Reset my password" /></p>
+</form>
+
+{% endblock %}