blob: 723cfad0758ec65392865f4c2de15d5a71197235 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
{% 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 2017</h1>
<h2>Reset Password</h2>
</header>
{% endblock %}
{% 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 %}
|