app/templates/projrev/auth/create_account.html
changeset 9 38727da8a948
child 10 393d0030945b
equal deleted inserted replaced
8:294ff7ac9cb6 9:38727da8a948
       
     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 () {
       
    13     $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"hello"});
       
    14   });
       
    15 </script>
       
    16 {% endif %}
       
    17 {% endblock scripts %}
       
    18 
       
    19 {% block body %}
       
    20   <form id="login-form" action="#" method="POST">
       
    21     <fieldset>
       
    22     
       
    23       <legend>Log in</legend>
       
    24       <label for="login">Email</label>
       
    25       <input type="text" id="login" name="username"/>
       
    26       <div class="clear"></div>
       
    27       
       
    28       <label for="password">Password</label>
       
    29       <input type="password" id="password" name="password"/>
       
    30       <div class="clear"></div>
       
    31 
       
    32       <label for="confirmpassword">Password</label>
       
    33       <input type="password" id="confirmpassword" name="confirmpassword"/>
       
    34       <div class="clear"></div>
       
    35       <br />
       
    36       <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="Create" value="Create"/> 
       
    37     </fieldset>
       
    38   </form>
       
    39   <div class='hidden' style="display: none;">
       
    40     <p><a id="inline" href="#"></a></p>
       
    41     <div id='message' style='padding:10px; background:#fff;'>
       
    42       {% if exits %}
       
    43       The Email ID already exists. Please close this box and enter another ID.<br/>
       
    44       {% endif %}
       
    45       {% if password_err %}
       
    46       The passwords did not match. Please close the box and enter email ID and correct passwords again.<br/>
       
    47       {% endif %}
       
    48     </div>
       
    49   </div>
       
    50 {% endblock body %}