login.html 625 Bytes
Newer Older
fred's avatar
fred committed
1
{% extends "base.html" %}
2 3
{% load url from future %}

fred's avatar
fred committed
4 5
{% block user-links %}{% endblock %}

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
{% block content %}

<h2>Connexion</h2>

{% if form.errors %}
<p>Mot de passe incorrect. Essayez encore.</p>
{% endif %}

<form method="post" id="login-form" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}

<p>
  <label for="id_username">Identifiant</label>
  {{ form.username }}
</p>
<p>
  <label for="id_password">Mot de passe</label>
  {{ form.password }}
</p>

<input type="submit" value="Se connecter" class="submit login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}