project/templates/user/login.html
changeset 118 78dfa383f6a3
parent 96 178b89a3ca4f
child 396 c4b236ea6912
equal deleted inserted replaced
117:1b68c8aa6091 118:78dfa383f6a3
     7 
     7 
     8     <div class="login">
     8     <div class="login">
     9         <h2 class="authenticate">Login</h2>
     9         <h2 class="authenticate">Login</h2>
    10 
    10 
    11         <div class="description">
    11         <div class="description">
    12             Log in for registered users of the site.
    12           Log in for registered users of the site.
    13         </div>
    13         </div>
    14 
    14 
    15         <form class="authenticate"
    15         <form class="authenticate"
    16               enctype="multipart/form-data"
    16               enctype="multipart/form-data"
    17               action="{% url scipycon_login %}"
    17               action="{% url scipycon_login params.scope %}"
    18               method="post">
    18               method="post">
    19 
    19 
    20                 <table class="scipycon-default">
    20           <table class="scipycon-default">
    21                     {{ login_form }}
    21             {{ login_form }}
    22                     <tr>
    22             <tr>
    23                         <td></td>
    23               <td></td>
    24                         <td>
    24               <td>
    25                             <a href="{% url scipycon_password_reset %}">Forgot password?</a>
    25                 <a href="{% url scipycon_password_reset %}">
    26                         </td>
    26                   Forgot password?
    27                     </tr>
    27                 </a>
    28                 </table>
    28               </td>
       
    29             </tr>
       
    30           </table>
    29 
    31 
    30             <input type="hidden"
    32           <input type="hidden" name="action" value="login" />
    31                    name="action"
       
    32                    value="login" />
       
    33 
    33 
    34             <input type="hidden"
    34           <input type="hidden" name="next" value="{{ next_url }}" />
    35                    name="next"
       
    36                    value="{{ next_url }}" />
       
    37 
    35 
    38             <button class="button left"
    36           <button class="button left" type="submit">Login</button>
    39                     type="submit">
       
    40                 Login
       
    41             </button>
       
    42 
    37 
    43         </form>
    38         </form>
    44     </div>
    39     </div>
    45 
    40 
    46     <div class="register">
    41     <div class="register">
    48 
    43 
    49         <div class="description">
    44         <div class="description">
    50             If you are not already a member of the site you can register here.
    45             If you are not already a member of the site you can register here.
    51         </div>
    46         </div>
    52 
    47 
    53         <form action="{% url scipycon_login %}"
    48         <form action="{% url scipycon_login params.scope %}" method="post">
    54               method="post">
    49           <table class="scipycon-default">
    55                     <table class="scipycon-default">
    50             {{ register_form }}
    56                         {{ register_form }}
    51           </table>
    57                     </table>
       
    58                 <input type="hidden"
       
    59                        name="action"
       
    60                        value="register" />
       
    61 
    52 
    62                 <input type="hidden"
    53           <input type="hidden" name="action" value="register" />
    63                        name="next"
       
    64                        value="{{ next_url }}" />
       
    65 
    54 
    66                 <button class="button left"
    55           <input type="hidden" name="next" value="{{ next_url }}" />
    67                         type="submit">
    56 
    68                     Register
    57           <button class="button left" type="submit">Register</button>
    69                 </button>
       
    70         </form>
    58         </form>
    71     </div>
    59     </div>
    72 {% endblock content %}
    60 {% endblock content %}
    73 
    61