parts/django/tests/templates/login.html
changeset 307 c6bca38c1cbf
equal deleted inserted replaced
306:5ff1fc726848 307:c6bca38c1cbf
       
     1 {% extends "base.html" %}
       
     2 {% block title %}Login{% endblock %}
       
     3 {% block content %}
       
     4 {% if form.has_errors %}
       
     5 <p>Your username and password didn't match. Please try again.</p>
       
     6 {% endif %}
       
     7 
       
     8 <form method="post" action=".">
       
     9 <table>
       
    10 <tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr>
       
    11 <tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr>
       
    12 </table>
       
    13 
       
    14 <input type="submit" value="login" />
       
    15 <input type="hidden" name="next" value="{{ next }}" />
       
    16 </form>
       
    17 {% endblock %}