Praktikum8
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
{% 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 %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user