app/templates/projrev/auth/login.html
changeset 10 393d0030945b
parent 9 38727da8a948
equal deleted inserted replaced
9:38727da8a948 10:393d0030945b
     1 {% extends "projrev/base.html" %}
     1 {% extends "projrev/base.html" %}
     2 {% block stylesheets %}
     2 {% block stylesheets %}
     3 <link rel="stylesheet" href="/site-content/css/login.css" type="text/css"/>
     3 <link rel="stylesheet" href="/site-content/css/login.css" type="text/css"/>
       
     4 <link type="text/css" rel="stylesheet" href="/site-content/css/colorbox.css" />
     4 {% endblock stylesheets %}
     5 {% endblock stylesheets %}
       
     6 
       
     7 {% block scripts %}
       
     8 {{ block.super }}
       
     9 {% if error %}
       
    10 <script type="text/javascript">
       
    11   $(document).ready(function () {
       
    12     $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"Error"});
       
    13   });
       
    14 </script>
       
    15 {% endif %}
       
    16 {% endblock scripts %}
       
    17 
     5 {% block body %}
    18 {% block body %}
     6   <form id="login-form" action="#" method="POST">
    19   <form id="login-form" action="#" method="POST">
     7     <fieldset>
    20     <fieldset>
     8     
    21     
     9       <legend>Log in</legend>
    22       <legend>Log in</legend>
    10       {% if error %}
       
    11       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       
    12       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       
    13       Wrong Email or password.<br/>
       
    14       {% endif %}
       
    15       <label for="login">Email</label>
    23       <label for="login">Email</label>
    16       <input type="text" id="login" name="username"/>
    24       <input type="text" id="login" name="username"/>
    17       <div class="clear"></div>
    25       <div class="clear"></div>
    18       
    26       
    19       <label for="password">Password</label>
    27       <label for="password">Password</label>
    28       <br />
    36       <br />
    29       <br />
    37       <br />
    30       <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="Log in"/> 
    38       <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="Log in"/> 
    31     </fieldset>
    39     </fieldset>
    32   </form>
    40   </form>
       
    41   <div class='hidden' style="display: none;">
       
    42     <p><a id="inline" href="#"></a></p>
       
    43     <div id='message' style='padding:10px; background:#fff;'>
       
    44       {% if error %}
       
    45       You have entered a wrong Email address or password. Please close this box and enter correct credentials.<br/>
       
    46       {% endif %}
       
    47     </div>
       
    48   </div>
    33 {% endblock body %}
    49 {% endblock body %}