summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2019-12-20 12:20:25 +0530
committeradityacp2019-12-20 12:20:25 +0530
commitd3637b220740dd552855b81d38a5da4107233786 (patch)
treedd4d6e6add5104a66835bd0fc4738d44c4b10808
parent9ba411562b77e8bb338ef3c2ca22054803b27f8b (diff)
downloadonline_test-d3637b220740dd552855b81d38a5da4107233786.tar.gz
online_test-d3637b220740dd552855b81d38a5da4107233786.tar.bz2
online_test-d3637b220740dd552855b81d38a5da4107233786.zip
Change the password reset page and change password page
-rw-r--r--yaksh/templates/registration/password_change_done.html39
-rw-r--r--yaksh/templates/registration/password_change_form.html16
-rw-r--r--yaksh/templates/registration/password_reset_complete.html14
-rw-r--r--yaksh/templates/registration/password_reset_confirm.html14
-rw-r--r--yaksh/templates/registration/password_reset_done.html20
-rw-r--r--yaksh/templates/registration/password_reset_form.html44
6 files changed, 94 insertions, 53 deletions
diff --git a/yaksh/templates/registration/password_change_done.html b/yaksh/templates/registration/password_change_done.html
index bac19fa..7e075de 100644
--- a/yaksh/templates/registration/password_change_done.html
+++ b/yaksh/templates/registration/password_change_done.html
@@ -1,27 +1,30 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
+{% block title %} Change Password {% endblock %}
+
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
+ <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
<img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
-</div>
+ </a>
+</nav>
{% endblock %}
{% block script %}
<script type="text/javascript">
- window.setTimeout(function()
- {
- location.href="{{ URL_ROOT }}/exam/"
- }, 2000);
+ window.setTimeout(function()
+ {
+ location.href="{{ URL_ROOT }}/exam/"
+ }, 2000);
</script>
{% endblock %}
{% block content %}
-<div class="row align-items-center">
- <div class="col">
- <h3>Your password has been changed successfully.</h3>
- <h4>Redirecting ...</h4>
- </div>
-
- <div class="col"><img src="{{ URL_ROOT }}/static/yaksh/images/profile_change.gif/"></div>
-</div>
+<br><br>
+<center>
+ <div class="container row align-items-center">
+ <div class="col">
+ <h3>Your password has been changed successfully.</h3>
+ <h4>Redirecting ...</h4>
+ </div>
+ </div>
+<div class="col"><img src="{{ URL_ROOT }}/static/yaksh/images/profile_change.gif/"></div>
+</center>
{% endblock %}
diff --git a/yaksh/templates/registration/password_change_form.html b/yaksh/templates/registration/password_change_form.html
index b618410..18dfa2e 100644
--- a/yaksh/templates/registration/password_change_form.html
+++ b/yaksh/templates/registration/password_change_form.html
@@ -1,8 +1,18 @@
{% extends "base.html" %}
<!DOCTYPE html>
{% block pagetitle %} Change Password {% endblock %}
+{% block title %} Change Password {% endblock %}
+
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
+ <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
+ <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
+ </a>
+</nav>
+{% endblock %}
{% block content %}
+<br><br>
<form action="" method="post" >
{% csrf_token %}
<center>
@@ -10,7 +20,9 @@
{{ form }}
</table>
</center>
- <center><button class="btn" type="submit">Change Password</button>
- <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/");'>Cancel</button></center>
+ <br>
+ <center><button class="btn btn-success btn-lg" type="submit">Change</button>
+ <button class="btn btn-primary btn-lg" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/");'>Cancel
+ </button></center>
</form>
{% endblock content %}
diff --git a/yaksh/templates/registration/password_reset_complete.html b/yaksh/templates/registration/password_reset_complete.html
index bc9245f..d606db9 100644
--- a/yaksh/templates/registration/password_reset_complete.html
+++ b/yaksh/templates/registration/password_reset_complete.html
@@ -1,13 +1,15 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
+{% block title %} Forgot Password {% endblock %}
+
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
+ <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
<img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
-</div>
+ </a>
+</nav>
{% endblock %}
{% block content %}
+<br><br>
<div class="container">
<p>Your password has been reset. </p>
<p><a href="{{ login_url }}" class="btn btn-success">Log in</a></p>
diff --git a/yaksh/templates/registration/password_reset_confirm.html b/yaksh/templates/registration/password_reset_confirm.html
index 49563ac..110a82c 100644
--- a/yaksh/templates/registration/password_reset_confirm.html
+++ b/yaksh/templates/registration/password_reset_confirm.html
@@ -1,14 +1,16 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
+{% block title %} Forgot Password {% endblock %}
+
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
+ <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
<img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
-</div>
+ </a>
+</nav>
{% endblock %}
{% block content %}
+<br><br>
<center><h4>Reset Password</h4>
{% if validlink %}
<p>Please enter your new password twice so we can verify you typed it in correctly</p>.
diff --git a/yaksh/templates/registration/password_reset_done.html b/yaksh/templates/registration/password_reset_done.html
index 8f259c7..a6f30a0 100644
--- a/yaksh/templates/registration/password_reset_done.html
+++ b/yaksh/templates/registration/password_reset_done.html
@@ -1,18 +1,22 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
+{% block title %} Forgot Password {% endblock %}
+
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
+ <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
<img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
-</div>
+ </a>
+</nav>
{% endblock %}
{% block content %}
+<br><br>
<center>
-<h4>Password reset successful</h4>
-<div class="alert alert-success animated flash col-md-8">
+<h2>Password reset successful</h2>
+<div class="alert alert-success col-md-8">
Instruction for setting new password has been mailed to your registered email address
</div>
+<br>
+<a class="btn btn-primary btn-lg" href="{{URL_ROOT}}/exam/login/">Go to Login</a>
</center>
{% endblock %}
diff --git a/yaksh/templates/registration/password_reset_form.html b/yaksh/templates/registration/password_reset_form.html
index de05df9..fd2220f 100644
--- a/yaksh/templates/registration/password_reset_form.html
+++ b/yaksh/templates/registration/password_reset_form.html
@@ -1,21 +1,39 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
+{% block title %}
+Forgot Password
+{% endblock %}
+{% block nav %}
+<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
+ <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
<img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
-</div>
+ </a>
+</nav>
{% endblock %}
{% block content %}
+<br><br>
<center>
-<h4>Email will be send to the registered email address</h4>
-<form action="" method="post">
- {% csrf_token %}
- {{ form }}
- <button class="btn btn-success" type="submit">Request</button>
- <a class="btn btn-danger" href="{{URL_ROOT}}/exam/login/">Cancel</a>
-</form>
+<h4>Enter your registered email address to reset your password</h4>
+<div class="container">
+ <div class="row justify-content-center">
+ <div class="col-md-6 col-md-offset-6">
+ <div class="card border-primary">
+ <div class="card-header"><h3>Forgot Password?</h3></div>
+ <div class="card-body">
+ <div class="form-group">
+ <form action="" method="post">
+ {% csrf_token %}
+
+ {{ form }}
+ <br><br>
+ <button class="btn btn-success btn-lg" type="submit">Request</button>
+ <a class="btn btn-primary btn-lg" href="{{URL_ROOT}}/exam/login/">Cancel</a>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
</center>
{% endblock content %}