Update login page template

This commit is contained in:
Edgar P. Burkhart 2022-05-20 22:29:16 +02:00
parent 98a1037d5e
commit 52c18329d2
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,10 @@
{% extends "main/base.html" %} {% extends "main/base.html" %}
{% load static %}
{% block link %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'css/form.css' %}" type="text/css" />
{% endblock %}
{% block body %} {% block body %}
@ -6,9 +12,16 @@
<form action="{% url 'login' %}" method="post"> <form action="{% url 'login' %}" method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {% for field in form %}
{{ field.errors }}
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
{{ field }}
{% endfor %}
<div class="buttons">
<input hidden value="{{ next }}" name="next" /> <input hidden value="{{ next }}" name="next" />
<input type="submit" /> <input type="reset" />
<input type="submit" value="Log In" />
</div>
</form> </form>
{% endblock %} {% endblock %}