{% extends "base.html" %}
{% block content %}
{% if form.errors %}
<p class="ui message">Mauvais utilisateur / mot de passe, essaye encore..</p>
{% endif %}
<form method="post" class="ui form" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
  <div class="field">
    <label>{{ form.username.label_tag }}</label>
    {{ form.username }}
  </div>
  <div class="field">
    <label>{{ form.password.label_tag }}</label>
    {{ form.password }}
  </div>
<input class="ui button" type="submit" value="Se connnecter" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
{% endblock %}
