{% extends "base.html" %}

{% block content %}
<div id="main-login-container">
    <div id="main-login" class="login_block">
        <div id="header">
        <h1>{{ site.name }} &ndash; Connexion</h1>
        </div>
        {% if form.errors %}
        <p class="error">Identifiants incorrects.</p>
        {% endif %} 

        <form method="post" action="{% url 'gestioncof.views.login_ext' %}">
        {% csrf_token %}
        <table>
        <tr>
            <td>{{ form.username.label_tag }}</td>
            <td>{{ form.username }}</td>
        </tr>
        <tr>
            <td>{{ form.password.label_tag }}</td>
            <td>{{ form.password }}</td>
        </tr>
        </table> 

        <input type="submit" name="submit" class="btn-submit" value="SE CONNECTER" />
        <input type="hidden" name="next" value="{{ next }}" />
        </form>
    </div>
</div>

{% endblock %}
