Skip to content

Commit 0baf363

Browse files
committed
Add templates for the django builtin auth views, so they don't
fall back to the admin templates. - Legacy-Id: 922
1 parent ee17e22 commit 0baf363

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}{{ title }}{% endblock %}
4+
5+
{% block content %}
6+
<h1>{{ title }}</h1>
7+
8+
<p>You have been logged out.</p>
9+
{% endblock %}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Password change successful{% endblock %}
4+
5+
{% block content %}
6+
7+
<h1>Password change successful</h1>
8+
9+
<p>Your password was changed.</p>
10+
11+
{% endblock %}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Password change{% endblock %}
4+
5+
{% block content %}
6+
7+
<h1>Password change</h1>
8+
9+
<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>
10+
11+
<form action="" method="post">
12+
13+
{% if form.old_password.errors %}{{ form.old_password.html_error_list }}{% endif %}
14+
<p class="aligned wide"><label for="id_old_password">Old password:</label>{{ form.old_password }}</p>
15+
{% if form.new_password1.errors %}{{ form.new_password1.html_error_list }}{% endif %}
16+
<p class="aligned wide"><label for="id_new_password1">New password:</label>{{ form.new_password1 }}</p>
17+
{% if form.new_password2.errors %}{{ form.new_password2.html_error_list }}{% endif %}
18+
<p class="aligned wide"><label for="id_new_password2">Confirm password:</label>{{ form.new_password2 }}</p>
19+
20+
<p><input type="submit" value="Change my password" /></p>
21+
</form>
22+
23+
{% endblock %}

0 commit comments

Comments
 (0)