0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Added password reset templates to admin_templates

git-svn-id: http://code.djangoproject.com/svn/django/trunk@294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Wilson Miner 2005-07-22 15:02:40 +00:00
parent 837a64565b
commit 8ef422d070
5 changed files with 75 additions and 0 deletions

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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

View File

@ -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 %}