23 lines
558 B
HTML

{% extends 'base.html' %}
{% block title %}
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}?next=/posts"
class="btn btn-warning">Abmelden</a></p>
{% endif %}
Login
{% endblock %}
{% block content %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
Benutzername: {{ form.username }} <br>
Passwort: {{ form.password }} <br>
<button type="submit" class="btn btn-default">Anmelden</button>
<input type="hidden" name="next" value="{{ next }}"/>
</form>
{% endblock %}