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