Browse Source

Praktikum8

master
parent
commit
10d2dabced
1 changed files with 22 additions and 0 deletions
  1. 22
    0
      news1/templates/registration/login.html

+ 22
- 0
news1/templates/registration/login.html View 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…
Cancel
Save