Praktikum8
This commit is contained in:
parent
76d25a6370
commit
10d2dabced
22
news1/templates/registration/login.html
Normal file
22
news1/templates/registration/login.html
Normal file
@ -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 %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user