diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/registration/password_reset_complete.html | 9 | ||||
-rw-r--r-- | templates/registration/password_reset_confirm.html | 51 | ||||
-rw-r--r-- | templates/registration/password_reset_done.html | 13 | ||||
-rw-r--r-- | templates/registration/password_reset_email.html | 12 | ||||
-rw-r--r-- | templates/registration/password_reset_form.html | 45 |
5 files changed, 130 insertions, 0 deletions
diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..1d88fdf --- /dev/null +++ b/templates/registration/password_reset_complete.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block title %}Password reset completed{% endblock %} +{% block heading %}Password reset completed{% endblock %} + +{% block body %} + +<p>Your password has been set. You may go ahead and log in now.</p> +{% endblock %} diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..7e1e2f1 --- /dev/null +++ b/templates/registration/password_reset_confirm.html @@ -0,0 +1,51 @@ +{% extends "base.html" %} + +{% block title %}Password reset confirmation{% endblock %} +{% block heading %}Password reset confirmation{% endblock %} + +{% block body %} + +{% if validlink %} +<p>Your username, in case you've forgotten: {{ form.user.get_username }}</p> +<p>Please enter your new password twice so we can verify you typed it in +correctly</p> + +<form method="post"> +{% csrf_token %} + +<table class="form passwordform"> + +{% if form.errors %} + <tr> + <td colspan="2" class="error">Please correct the errors below.</p> + </tr> +{% endif %} + + +{% for field in form %} + <tr> + <td>{{ field.label_tag }}</td> + <td> + {{ field.errors }} + {{ field }} +{% if field.help_text %} + <div class="help_text"/>{{ field.help_text }}</div> +{% endif %} + </td> + </tr> +{% endfor %} + + <tr> + <td colspan="2"> + <input type="submit" value="Set my password" class="default" /> + </td> + </tr> + +</table> + +</form> +{% else %} +<p>The password reset link was invalid, possibly because it has already +been used. Please request a new password reset.</p> +{% endif %} +{% endblock %} diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html new file mode 100644 index 0000000..fe9e551 --- /dev/null +++ b/templates/registration/password_reset_done.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}Password reset{% endblock %} +{% block heading %}Password reset{% endblock %} + +{% block body %} + +<p>We have emailed you instructions for setting your password. +You should be receiving them shortly.</p> +<p>If you don't receive an email, please make sure you've entered the +address you registered with, and check your spam folder</p> + +{% endblock %} diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html new file mode 100644 index 0000000..fa399a4 --- /dev/null +++ b/templates/registration/password_reset_email.html @@ -0,0 +1,12 @@ +{% autoescape off %}Hi, + +You are receiving this email because you requested a password reset for +your user account on the patchwork patch-tracking system. +Please visit the following url and choose a new password: + +{% block reset_link %} +{{ protocol }}://{{domain}}{% url 'password_reset_confirm' uidb64=uid token=token %} +{% endblock %} + +Happy patchworking. +{% endautoescape %} diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html new file mode 100644 index 0000000..4718f43 --- /dev/null +++ b/templates/registration/password_reset_form.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} + +{% block title %}Password reset{% endblock %} +{% block heading %}Password reset{% endblock %} + +{% block body %} + +<p>Forgotten your password? Enter your email address below, and we will +email instructions for setting a new one.</p> + +<form method="post"> +{% csrf_token %} + +<table class="form passwordform"> + +{% if form.errors %} + <tr> + <td colspan="2" class="error">Please correct the errors below.</p> + </tr> +{% endif %} + + +{% for field in form %} + <tr> + <td>{{ field.label_tag }}</td> + <td> + {{ field.errors }} + {{ field }} +{% if field.help_text %} + <div class="help_text"/>{{ field.help_text }}</div> +{% endif %} + </td> + </tr> +{% endfor %} + + <tr> + <td colspan="2"> + <input type="submit" value="Reset my password" class="default" /> + </td> + </tr> + +</table> + +</form> +{% endblock %} |