app/templates/projrev/auth/create_account.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Sat, 08 Aug 2009 23:54:36 +0530
changeset 18 05b9e60e6a10
parent 10 393d0030945b
permissions -rw-r--r--
Changed CSS and removed Withdraw proposal.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
{% extends "projrev/base.html" %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
{% block stylesheets %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
<link rel="stylesheet" href="/site-content/css/login.css" type="text/css"/>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
<link type="text/css" rel="stylesheet" href="/site-content/css/colorbox.css" />
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
{% endblock stylesheets %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
{% block scripts %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
{{ block.super }}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
{% if exits or password_err %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
<script type="text/javascript">
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
  $(document).ready(function () {
10
393d0030945b Forgot pasword.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 9
diff changeset
    13
    $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"Error"});
9
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
  });
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
</script>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
{% endif %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
{% endblock scripts %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
{% block body %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
  <form id="login-form" action="#" method="POST">
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    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
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    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
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
    </fieldset>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
  </form>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
  <div class='hidden' style="display: none;">
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
    <p><a id="inline" href="#"></a></p>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
    <div id='message' style='padding:10px; background:#fff;'>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
      {% if exits %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
      The Email ID already exists. Please close this box and enter another ID.<br/>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
      {% endif %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
      {% if password_err %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
      The passwords did not match. Please close the box and enter email ID and correct passwords again.<br/>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
      {% endif %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
    </div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
  </div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
{% endblock body %}