diff options
author | komalsheth286 | 2016-09-08 10:44:04 +0530 |
---|---|---|
committer | komalsheth286 | 2016-09-08 10:44:04 +0530 |
commit | 95bb4b3c871732f354132fc1571a00b0acbf68ac (patch) | |
tree | 3c21f0883cbecaffc1eee011bfdb352423b7af6d /website/templates/registration | |
download | SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.tar.gz SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.tar.bz2 SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.zip |
First Commit
Diffstat (limited to 'website/templates/registration')
6 files changed, 413 insertions, 0 deletions
diff --git a/website/templates/registration/password_change_done.html b/website/templates/registration/password_change_done.html new file mode 100644 index 0000000..7edddfa --- /dev/null +++ b/website/templates/registration/password_change_done.html @@ -0,0 +1,63 @@ +{% extends 'base.html' %} +{% load static %} + +<!DOCTYPE HTML> +<html> + <head> + <title>Call for Proposal</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> + <link rel="stylesheet" href="assets/css/main.css" /> + <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> + <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> + </head> + <body> + + + {% block header %} + <header id="header"> + <h1>Scipy India 2016</h1> + <h2>Reset Password</h2> +</header> +{% endblock %} + +<div id="wrapper"> + +{% block nav %} + + <nav id="nav" class="alt"> + <ul> + <li><a href="{% url 'website:home' %}" class="active">Scip India 2016</a></li> + + {% if user and not user.is_anonymous %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}<b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li> + + </ul> + {% endif %} + </ul> + </nav> +{% endblock %} + + + +{% block content %} +<div id="wrapper"> +<div id="main"> +<section id="content" class="main"> + +<script type="text/javascript"> + window.setTimeout(function() + { + location.href="{{ URL_ROOT }}/accounts/" + }, 2000); +</script> +<h3>Your password has been changed successfully.</h3> +<h4>Redirecting ...</h4> +</section> +</div> +</div> +{% endblock %}
\ No newline at end of file diff --git a/website/templates/registration/password_change_form.html b/website/templates/registration/password_change_form.html new file mode 100644 index 0000000..4884aca --- /dev/null +++ b/website/templates/registration/password_change_form.html @@ -0,0 +1,64 @@ +{% extends 'base.html' %} +{% load static %} + +<!DOCTYPE HTML> +<html> + <head> + <title>Call for Proposal</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> + <link rel="stylesheet" href="assets/css/main.css" /> + <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> + <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> + </head> + <body> + + + {% block header %} + <header id="header"> + <h1>Scipy India 2016</h1> + <h2>Reset Password</h2> +</header> +{% endblock %} + +<div id="wrapper"> + +{% block nav %} + + <nav id="nav" class="alt"> + <ul> + <li><a href="{% url 'website:home' %}" class="active">Scip India 2016</a></li> + + {% if user and not user.is_anonymous %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}<b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li> + + </ul> + {% endif %} + </ul> + </nav> +{% endblock %} + + + +{% block content %} +<div id="wrapper"> +<div id="main"> +<section id="content" class="main"> +<form action="" method="post" > + {% csrf_token %} + <center> + <table class=span1> + {{ form }} + </table> + </center> + <center><button class="btn" type="submit">Change Password</button> + <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/accounts/");'>Cancel</button></center> +</form> +</section> +</div> +</div> +{% endblock %} diff --git a/website/templates/registration/password_reset_complete.html b/website/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..c36c1f2 --- /dev/null +++ b/website/templates/registration/password_reset_complete.html @@ -0,0 +1,56 @@ +{% extends 'base.html' %} +{% load static %} + +<!DOCTYPE HTML> +<html> + <head> + <title>Call for Proposal</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> + <link rel="stylesheet" href="assets/css/main.css" /> + <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> + <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> + </head> + <body> + + + {% block header %} + <header id="header"> + <h1>Scipy India 2016</h1> + <h2>Reset Password</h2> +</header> +{% endblock %} + +<div id="wrapper"> + +{% block nav %} + + <nav id="nav" class="alt"> + <ul> + <li><a href="{% url 'website:home' %}" class="active">Scip India 2016</a></li> + + {% if user and not user.is_anonymous %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}<b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li> + + </ul> + {% endif %} + </ul> + </nav> +{% endblock %} + + + +{% block content %} +<div id="wrapper"> +<div id="main"> +<section id="content" class="main"> +<p>Your password has been reset. </p> +<p><a href="{% url 'website:cfp' %}">Log in</a></p> +</section> +</div> +</div> +{% endblock %} diff --git a/website/templates/registration/password_reset_confirm.html b/website/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..32c6bbd --- /dev/null +++ b/website/templates/registration/password_reset_confirm.html @@ -0,0 +1,106 @@ +{% extends 'base.html' %} +{% load static %} + +<!DOCTYPE HTML> +<html> + <head> + <title>Call for Proposal</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> + <link rel="stylesheet" href="assets/css/main.css" /> + <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> + <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> + </head> + <body> + + + {% block header %} + <header id="header"> + <h1>Scipy India 2016</h1> + <h2>Reset Password</h2> +</header> +{% endblock %} + +<div id="wrapper"> + +{% block nav %} + + <nav id="nav" class="alt"> + <ul> + <li><a href="{% url 'website:home' %}" class="active">Scip India 2016</a></li> + + {% if user and not user.is_anonymous %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}<b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li> + + </ul> + {% endif %} + </ul> + </nav> +{% endblock %} + + + +{% block content %} +<div id="wrapper"> +<div id="main"> +<section id="content" class="main"> + {% if validlink %} + <br> + <p>Please enter your new password twice. + So we can verify you typed it in correctly.</p> + <br> + <form action="" method="post"> + <div style="display:none"> + <input type="hidden" value="{{ csrf_token }}" name="csrfmiddlewaretoken"> + </div> + <table> + <tr> + <td>{{ form.new_password1.errors }} + <label for="id_new_password1" >New password:</label></td> + <td>{{ form.new_password1 }}</td> + </tr> + <tr> + <td>{{ form.new_password2.errors }} + <label for="id_new_password2" >Confirm password:</label></td> + <td>{{ form.new_password2 }}</td> + </tr> + <tr> + <td></td> + <td><br> <button class= "btn btn-sm btn-primary" type="submit" onclick="return checkform(this);">Submit</button> + </tr> + <br> + </table> + </form> + {% else %} + <h1>Password reset unsuccessful</h1> + <p>The password reset link was invalid, <br /> + possibly because it has already been used. <br /> + Please request a new password reset.</p> + {% endif %} +</section> +</div> +</div> + +<script> +function checkform(form) { + // alert("in"); + var pwd1 = document.getElementById("id_new_password1"); + // alert(pwd1.value); + var pwd2 = document.getElementById("id_new_password2"); + //return false; + if(pwd1.value.length && pwd2.value.length < 8) { + + alert("Error: Password must contain at least eight characters!"); + pwd1.focus(); + pwd1.value = ""; + pwd2.value = ""; + return false; + } +} + +</script> +{% endblock %} diff --git a/website/templates/registration/password_reset_done.html b/website/templates/registration/password_reset_done.html new file mode 100644 index 0000000..1a3dfae --- /dev/null +++ b/website/templates/registration/password_reset_done.html @@ -0,0 +1,55 @@ +{% extends 'base.html' %} +{% load static %} + +<!DOCTYPE HTML> +<html> + <head> + <title>Call for Proposal</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> + <link rel="stylesheet" href="assets/css/main.css" /> + <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> + <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> + </head> + <body> + + + {% block header %} + <header id="header"> + <h1>Scipy India 2016</h1> + <h2>Reset Password</h2> +</header> +{% endblock %} + +<div id="wrapper"> + +{% block nav %} + + <nav id="nav" class="alt"> + <ul> + <li><a href="{% url 'website:home' %}" class="active">Scip India 2016</a></li> + + {% if user and not user.is_anonymous %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}<b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li> + + </ul> + {% endif %} + </ul> + </nav> +{% endblock %} + + + +{% block content %} +<div id="wrapper"> +<div id="main"> +<section id="content" class="main"> + If an account exists with this email, you would receive the password reset instructions shortly. Please check your spam folder too. +</section> +</div> +</div> + {% endblock %} diff --git a/website/templates/registration/password_reset_form.html b/website/templates/registration/password_reset_form.html new file mode 100644 index 0000000..5b40bbf --- /dev/null +++ b/website/templates/registration/password_reset_form.html @@ -0,0 +1,69 @@ +{% extends 'base.html' %} +{% load static %} + +<!DOCTYPE HTML> +<html> + <head> + <title>Call for Proposal</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> + <link rel="stylesheet" href="assets/css/main.css" /> + <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> + <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> + </head> + <body> + + + {% block header %} + <header id="header"> + <h1>Scipy India 2016</h1> + <h2>Reset Password</h2> +</header> +{% endblock %} + +<div id="wrapper"> + +{% block nav %} + + <nav id="nav" class="alt"> + <ul> + <li><a href="{% url 'website:home' %}" class="active">Scip India 2016</a></li> + + {% if user and not user.is_anonymous %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.get_full_name|default:user.username }}<b class="caret"></b></a> + <ul class="dropdown-menu"> + <li><a href="{% url 'auth:logout' %}?next=/2016/cfp">Logout</a></li> + + </ul> + {% endif %} + </ul> + </nav> +{% endblock %} + + + +{% block content %} +<div id="wrapper"> +<div id="main"> +<section id="content" class="main"> +<div><h2> Recovery Email </h2></div> +<br> +Kindly Enter Your Email ID used for Registration. The password Reset link wll be mailed to the same. +<br> <br> +<form action="" method="post"> + {% csrf_token %} + {{ form.email.errors }} + <p><label for="id_email">E-mail address:</label> {{ form.email }} <input type="submit" value="Reset password" /></p> + + <!-- <button class="btn btn-sm btn-primary" type="submit">Request</button> + <a class="btn btn-sm " href="{{URL_ROOT}}/accounts/login/">Cancel</a> --> +</form> + +<br> + +</section> +</div> +</div> +{% endblock %} |