Update login form

This commit is contained in:
Edgar P. Burkhart 2023-04-18 13:38:29 +02:00
parent d0447e0c8e
commit 58c18195a6
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
2 changed files with 13 additions and 15 deletions

View File

@ -0,0 +1,9 @@
{% extends "main/form/base.html" %}
{% load i18n %}
{% block buttons %}
<div class="buttons">
<input hidden value="{{ next }}" name="next" />
<input type="reset" />
<input type="submit" value="{% translate "Se connecter" %}" />
</div>
{% endblock %}

View File

@ -3,6 +3,9 @@
{% load i18n %}
{% block link %}
{{ block.super }}
<link rel="stylesheet"
href="{% static 'main/css/table.css' %}"
type="text/css"/>
<link rel="stylesheet"
href="{% static 'main/css/form.css' %}"
type="text/css"/>
@ -11,20 +14,6 @@
<h1>{% translate "Log In" %}</h1>
<form action="{% url 'login' %}" method="post">
{% csrf_token %}
{% if form.non_field_errors %}
<ul class='errorlist'>
{% for error in form.non_field_errors %}<li>{{ error }}</li>{% endfor %}
</ul>
{% endif %}
{% for field in form %}
{{ field.errors }}
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
<div>{{ field }}</div>
{% endfor %}
<div class="buttons">
<input hidden value="{{ next }}" name="next" />
<input type="reset" />
<input type="submit" value="{% translate "Log In" %}" />
</div>
{% include "main/form/login.html" %}
</form>
{% endblock %}