{% extends "calebasse/base.html" %}
{% load url from future %}

    <title>{% block title %}APS42{% endblock %}</title>

{% block wrapper %}
<div id="wrap">
{% endblock %}

{% block user-links %}
{% endblock %}

{% block content %}

<p>
  Bienvenue sur le logiciel de gestion de l'Association Prévention
  Soins.
</p>

<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 %}
