2023-12-07 16:38:58 +01:00
|
|
|
{% extends "bootstrapbase.html" %}
|
2023-12-04 13:09:31 +01:00
|
|
|
|
|
|
|
{% block title %}Anmeldung{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if form.errors %}
|
2023-12-07 16:38:58 +01:00
|
|
|
<div class="alert alert-warning" role="alert">
|
|
|
|
Benutzername oder Passwort falsch.
|
|
|
|
</div>
|
2023-12-04 13:09:31 +01:00
|
|
|
{% 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>
|
|
|
|
|
2023-12-07 16:38:58 +01:00
|
|
|
<input type="submit" class="btn btn-primary" value="Anmelden">
|
2023-12-04 13:09:31 +01:00
|
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
|
|
</form>
|
|
|
|
|
2023-12-07 16:38:58 +01:00
|
|
|
<hr>
|
|
|
|
|
2023-12-04 13:09:31 +01:00
|
|
|
<p>
|
2023-12-07 16:38:58 +01:00
|
|
|
<a href="{% url 'password_reset' %}" class="btn btn-light">Passwort vergessen?</a>
|
2023-12-04 13:09:31 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
{% endblock %}
|