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:
parent
837a64565b
commit
8ef422d070
@ -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 %}
|
@ -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 %}
|
@ -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 %}
|
@ -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
|
@ -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 %}
|
Loading…
Reference in New Issue
Block a user