praktikum Aufgabe7 * Style geändert
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}
|
||||
Login
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
<p>Your account doesn't have access to this page. To proceed,
|
||||
please login with an account that has access.</p>
|
||||
{% else %}
|
||||
<p>Please login to see this page.</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
<div>
|
||||
<tb>{{ form.username.label_tag }}</tb>
|
||||
<p>{{ form.username }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p>{{ form.password.label_tag }}</p>
|
||||
<p>{{ form.password }}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="login"/>
|
||||
<input type="hidden" name="next" value="{{ next }}"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user