author | Madhusudan.C.S <madhusudancs@gmail.com> |
Mon, 10 Aug 2009 00:06:31 +0530 | |
changeset 24 | 7257b66a6766 |
parent 18 | 05b9e60e6a10 |
permissions | -rw-r--r-- |
9 | 1 |
{% extends "projrev/base.html" %} |
2 |
||
3 |
{% block stylesheets %} |
|
4 |
<link rel="stylesheet" href="/site-content/css/login.css" type="text/css"/> |
|
5 |
<link type="text/css" rel="stylesheet" href="/site-content/css/colorbox.css" /> |
|
6 |
{% endblock stylesheets %} |
|
7 |
||
8 |
{% block scripts %} |
|
9 |
{{ block.super }} |
|
10 |
{% if exits or password_err %} |
|
11 |
<script type="text/javascript"> |
|
12 |
$(document).ready(function () { |
|
10 | 13 |
$("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"Error"}); |
9 | 14 |
}); |
15 |
</script> |
|
16 |
{% endif %} |
|
17 |
{% endblock scripts %} |
|
18 |
||
19 |
{% block body %} |
|
20 |
<form id="login-form" action="#" method="POST"> |
|
21 |
<fieldset> |
|
18
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
22 |
{% if created %} |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
23 |
<p>Your account has been created and an Email confirming your |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
24 |
password has been sent to you.<a href="/login">Click Here</a> to login.</p> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
25 |
{% else %} |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
26 |
<legend>Log in</legend> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
27 |
<label for="login">Email</label> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
28 |
<input type="text" id="login" name="username"/> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
29 |
<div class="clear"></div> |
9 | 30 |
|
18
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
31 |
<label for="password">Password</label> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
32 |
<input type="password" id="password" name="password"/> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
33 |
<div class="clear"></div> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
34 |
|
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
35 |
<label for="confirmpassword">ConfirmPassword</label> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
36 |
<input type="password" id="confirmpassword" name="confirmpassword"/> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
37 |
<div class="clear"></div> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
38 |
<br /> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
39 |
<input type="submit" style="margin: -20px 0 0 287px;" class="button" name="Create" value="Create"/> |
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
10
diff
changeset
|
40 |
{% endif %} |
9 | 41 |
</fieldset> |
42 |
</form> |
|
43 |
<div class='hidden' style="display: none;"> |
|
44 |
<p><a id="inline" href="#"></a></p> |
|
45 |
<div id='message' style='padding:10px; background:#fff;'> |
|
46 |
{% if exits %} |
|
47 |
The Email ID already exists. Please close this box and enter another ID.<br/> |
|
48 |
{% endif %} |
|
49 |
{% if password_err %} |
|
50 |
The passwords did not match. Please close the box and enter email ID and correct passwords again.<br/> |
|
51 |
{% endif %} |
|
52 |
</div> |
|
53 |
</div> |
|
54 |
{% endblock body %} |