12345678910111213141516171819202122232425262728293031323334353637383940 |
- {% extends "base.html" %}
-
- {% block title %}Anmeldung{% endblock %}
-
- {% block content %}
-
- {% if form.errors %}
- <p>Benutzername oder Passwort falsch.</p>
- {% endif %}
-
- {% if next %}
- {% if user.is_authenticated %}
- <p>Sie haben nicht die hierfür notwendige Berechtigung.</p>
- {% else %}
- <p>Bitte melden Sie sich an.</p>
- {% endif %}
- {% endif %}
-
- <form method="post" action="{% url 'login' %}">
- {% csrf_token %}
- <table>
- <tr>
- <td>{{ form.username.label_tag }}</td>
- <td>{{ form.username }}</td>
- </tr>
- <tr>
- <td>{{ form.password.label_tag }}</td>
- <td>{{ form.password }}</td>
- </tr>
- </table>
-
- <input type="submit" value="Anmelden">
- <input type="hidden" name="next" value="{{ next }}">
- </form>
-
- <p>
- <a href="{% url 'password_reset' %}">Passwort vergessen?</a>
- </p>
-
- {% endblock %}
|