app/templates/projrev/auth/create_account.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 06 Aug 2009 22:36:36 +0530
changeset 9 38727da8a948
child 10 393d0030945b
permissions -rw-r--r--
Create Account
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 () {
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
    $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"hello"});
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>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
    
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
      <legend>Log in</legend>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
      <label for="login">Email</label>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
      <input type="text" id="login" name="username"/>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
      <div class="clear"></div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
      
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
      <label for="password">Password</label>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
      <input type="password" id="password" name="password"/>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
      <div class="clear"></div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
      <label for="confirmpassword">Password</label>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
      <input type="password" id="confirmpassword" name="confirmpassword"/>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
      <div class="clear"></div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
      <br />
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
      <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="Create" value="Create"/> 
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
    </fieldset>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
  </form>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
  <div class='hidden' style="display: none;">
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
    <p><a id="inline" href="#"></a></p>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
    <div id='message' style='padding:10px; background:#fff;'>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
      {% if exits %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
      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
    44
      {% endif %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
      {% if password_err %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
      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
    47
      {% endif %}
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
    </div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
  </div>
38727da8a948 Create Account
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
{% endblock body %}