summaryrefslogtreecommitdiff
path: root/yaksh/templates/registration
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates/registration')
-rw-r--r--yaksh/templates/registration/password_reset_complete.html7
-rw-r--r--yaksh/templates/registration/password_reset_confirm.html17
-rw-r--r--yaksh/templates/registration/password_reset_done.html4
-rw-r--r--yaksh/templates/registration/password_reset_form.html12
4 files changed, 40 insertions, 0 deletions
diff --git a/yaksh/templates/registration/password_reset_complete.html b/yaksh/templates/registration/password_reset_complete.html
new file mode 100644
index 0000000..0801d3b
--- /dev/null
+++ b/yaksh/templates/registration/password_reset_complete.html
@@ -0,0 +1,7 @@
+{% extends "base.html" %}
+{% block title %}Password reset complete{% endblock %}
+{% block pagetitle %} Online Test {% endblock %}
+{% block content %}
+<p>Your password has been reset. </p>
+<p><a href="{{ login_url }}">Log in</a></p>
+{% endblock %}
diff --git a/yaksh/templates/registration/password_reset_confirm.html b/yaksh/templates/registration/password_reset_confirm.html
new file mode 100644
index 0000000..5566499
--- /dev/null
+++ b/yaksh/templates/registration/password_reset_confirm.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% block title %}Reset Password{% endblock %}
+{% block pagetitle %} Online Test {% endblock %}
+{% block formtitle %} Reset password {% endblock %}
+
+{% block content %}
+ {% if validlink %}
+ <p>Please enter your new password twice so we can verify you typed it in correctly</p>.
+ <form method="post">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <button class= "btn" type="submit">Submit</button>
+ </form>
+ {% else %}
+ <p>This reset link is no longer valid!</p>
+ {% endif %}
+{% endblock %}
diff --git a/yaksh/templates/registration/password_reset_done.html b/yaksh/templates/registration/password_reset_done.html
new file mode 100644
index 0000000..ace3cc9
--- /dev/null
+++ b/yaksh/templates/registration/password_reset_done.html
@@ -0,0 +1,4 @@
+{% extends "base.html" %}
+{% block title %}Password reset successful{% endblock %}
+{% block pagetitle %} Online Test {% endblock %}
+{% block formtitle %} Instruction for setting new password has been mailed to your registered email address {% endblock %}
diff --git a/yaksh/templates/registration/password_reset_form.html b/yaksh/templates/registration/password_reset_form.html
new file mode 100644
index 0000000..0dbaf09
--- /dev/null
+++ b/yaksh/templates/registration/password_reset_form.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% block title %} Forgot Password {% endblock %}
+{% block pagetitle %} Online Test {% endblock %}
+{% block formtitle %} Email will be send to the registered email address {% endblock %}
+{% block content %}
+<form action="" method="post">
+ {% csrf_token %}
+ {{ form }}
+ <button class="btn" type="submit">Request</button>
+ <a class="btn" href="{{URL_ROOT}}/exam/login/">Cancel</a>
+</form>
+{% endblock content %}