summaryrefslogtreecommitdiff
path: root/website/templates/register
diff options
context:
space:
mode:
authorkomalsheth2862016-10-03 18:05:29 +0530
committerkomalsheth2862016-10-03 18:05:29 +0530
commitbe87ddf10812c5814fe93a7d6529b15bd4d2608c (patch)
treeae58c1845f7f5bd0f225d927e13e63540024191a /website/templates/register
parente8bd883f65efb6928d0d20c09a5bed274805b2da (diff)
downloadSciPy2016-be87ddf10812c5814fe93a7d6529b15bd4d2608c.tar.gz
SciPy2016-be87ddf10812c5814fe93a7d6529b15bd4d2608c.tar.bz2
SciPy2016-be87ddf10812c5814fe93a7d6529b15bd4d2608c.zip
Forgot passward templates added
Diffstat (limited to 'website/templates/register')
-rwxr-xr-xwebsite/templates/register/password_change_done.html55
-rwxr-xr-xwebsite/templates/register/password_change_form.html59
-rwxr-xr-xwebsite/templates/register/password_reset_complete.html51
-rwxr-xr-xwebsite/templates/register/password_reset_confirm.html99
-rwxr-xr-xwebsite/templates/register/password_reset_done.html49
-rwxr-xr-xwebsite/templates/register/password_reset_form.html64
6 files changed, 377 insertions, 0 deletions
diff --git a/website/templates/register/password_change_done.html b/website/templates/register/password_change_done.html
new file mode 100755
index 0000000..a5b771c
--- /dev/null
+++ b/website/templates/register/password_change_done.html
@@ -0,0 +1,55 @@
+{% extends 'base.html' %}
+{% load static %}
+
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>Forgot Password</title>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" href="assets/css/main.css" />
+ </head>
+ <body>
+
+
+ {% block header %}
+ <header id="header1">
+ <h1>SciPy India 2016</h1>
+ <h2>Reset Password</h2>
+</header>
+{% endblock %}
+
+<div id="wrapper">
+
+{% block nav %}
+
+<div id="navbar-main">
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="{% url 'website:home' %}" class="active">Home</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% 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/register/password_change_form.html b/website/templates/register/password_change_form.html
new file mode 100755
index 0000000..c3254ba
--- /dev/null
+++ b/website/templates/register/password_change_form.html
@@ -0,0 +1,59 @@
+{% 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="header1">
+ <h1>SciPy India 2016</h1>
+ <h2>Reset Password</h2>
+</header>
+{% endblock %}
+
+<div id="wrapper">
+
+{% block nav %}
+
+<div id="navbar-main">
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="{% url 'website:home' %}" class="active">Home</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% 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/register/password_reset_complete.html b/website/templates/register/password_reset_complete.html
new file mode 100755
index 0000000..ef6496f
--- /dev/null
+++ b/website/templates/register/password_reset_complete.html
@@ -0,0 +1,51 @@
+{% 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="header1">
+ <h1>SciPy India 2016</h1>
+ <h2>Reset Password</h2>
+</header>
+{% endblock %}
+
+<div id="wrapper">
+
+{% block nav %}
+
+<div id="navbar-main">
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="{% url 'website:home' %}" class="active">Home</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% endblock %}
+
+
+
+{% block content %}
+<div id="wrapper">
+<div id="main">
+<section id="content" class="main">
+<p>Your password has been reset. </p>
+<p>Please <a href="{% url 'website:cfp' %}">Log in</a> with your new password.</p>
+</section>
+</div>
+</div>
+{% endblock %}
diff --git a/website/templates/register/password_reset_confirm.html b/website/templates/register/password_reset_confirm.html
new file mode 100755
index 0000000..db880b7
--- /dev/null
+++ b/website/templates/register/password_reset_confirm.html
@@ -0,0 +1,99 @@
+{% 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="header1">
+ <h1>SciPy India 2016</h1>
+ <h2>Reset Password</h2>
+</header>
+{% endblock %}
+
+<div id="wrapper">
+
+{% block nav %}
+
+<div id="navbar-main">
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="{% url 'website:home' %}" class="active">Home</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% endblock %}
+
+
+
+{% block content %}
+<div id="wrapper">
+<div id="main">
+<section id="content" class="main">
+ {% if validlink %}
+ <br>
+ <p>Please enter your new password twice.</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 %}
+ <p>The password reset link is invalid,
+ possibly because it has already been used. <br />
+ Please request a new password reset.</p><br/>
+ {% 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/register/password_reset_done.html b/website/templates/register/password_reset_done.html
new file mode 100755
index 0000000..723f43b
--- /dev/null
+++ b/website/templates/register/password_reset_done.html
@@ -0,0 +1,49 @@
+{% 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="header1">
+ <h1>SciPy India 2016</h1>
+ <h2>Reset Password</h2>
+</header>
+{% endblock %}
+
+<div id="wrapper">
+
+{% block nav %}
+
+<div id="navbar-main">
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="{% url 'website:home' %}" class="active">Home</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% 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.<br/>
+</section>
+</div>
+</div>
+ {% endblock %}
diff --git a/website/templates/register/password_reset_form.html b/website/templates/register/password_reset_form.html
new file mode 100755
index 0000000..d2ac4f8
--- /dev/null
+++ b/website/templates/register/password_reset_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="header1">
+ <h1>SciPy India 2016</h1>
+ <h2>Reset Password</h2>
+</header>
+{% endblock %}
+
+<div id="wrapper">
+
+{% block nav %}
+
+<div id="navbar-main">
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ <li><a href="{% url 'website:home' %}" class="active">Home</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% 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 will 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 %}