login.html 531 B

1234567891011121314151617
  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. <form method="post" action=".">
  8. <table>
  9. <tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr>
  10. <tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr>
  11. </table>
  12. <input type="submit" value="login" />
  13. <input type="hidden" name="next" value="{{ next }}" />
  14. </form>
  15. {% endblock %}