You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

login.html 1016B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends "base.html" %}
  2. {% block title %}Anmeldung{% endblock %}
  3. {% block content %}
  4. {% if form.errors %}
  5. <p>Benutzername oder Passwort falsch.</p>
  6. {% endif %}
  7. {% if next %}
  8. {% if user.is_authenticated %}
  9. <p>Sie haben nicht die hierfür notwendige Berechtigung.</p>
  10. {% else %}
  11. <p>Bitte melden Sie sich an.</p>
  12. {% endif %}
  13. {% endif %}
  14. <form method="post" action="{% url 'login' %}">
  15. {% csrf_token %}
  16. <table>
  17. <tr>
  18. <td>{{ form.username.label_tag }}</td>
  19. <td>{{ form.username }}</td>
  20. </tr>
  21. <tr>
  22. <td>{{ form.password.label_tag }}</td>
  23. <td>{{ form.password }}</td>
  24. </tr>
  25. </table>
  26. <input type="submit" value="Anmelden">
  27. <input type="hidden" name="next" value="{{ next }}">
  28. </form>
  29. <p>
  30. <a href="{% url 'password_reset' %}">Passwort vergessen?</a>
  31. </p>
  32. {% endblock %}