Update login form
This commit is contained in:
parent
d0447e0c8e
commit
58c18195a6
2 changed files with 13 additions and 15 deletions
9
nummi/main/templates/main/form/login.html
Normal file
9
nummi/main/templates/main/form/login.html
Normal 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 %}
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue