/tests/templates/login.html

https://code.google.com/p/mango-py/ · HTML · 17 lines · 15 code · 2 blank · 0 comment · 0 complexity · db84afc4eccc39ae4fe2e864805444bc MD5 · raw file

  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 %}