

{% extends "base.html" %}
{% comment %}

Login page to authenticate users.

{% endcomment %}

{% block head %}
    <title>Django Consultants | Login</title>
{% endblock %}

{% block body %}
    <header>
        <h1>Page de login</h1>
       
    </header>

    <section>
        {% if form.errors %}
            <p>Le login et le mot de passe ne correspondent pas, essayez a nouveau.</p>
        {% endif %}

        <form method="post" action=".">{% csrf_token %}
            <p>
                <label for="id_username">Username:</label>
                {{ form.username }}
            </p>
            <p>
                <label for="id_password">Password:</label>
                {{ form.password }}
            </p>
            {% if next %}
                <input type="hidden" name="next" value="{{ next }}" />
            {% else %}
                <input type="hidden" name="next" value="/periplus/" />
            {% endif %}
            <input type="submit" value="login" />
        </form>
    </section>
{% endblock %}





