{% extends "hdabo_base.html" %}
{% load static %}
{% load i18n %}

{% block title %}{% trans "Login" %}{% endblock %}

{% block content %}
    <div class="register">
        {% if form.errors %}
        <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
        {% endif %}
        <form action="" method='post' id="login-form">
            {% csrf_token %}
            <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
            {{form.as_p}}
            <button class="button" type="submit" value="login">{% trans "login" %}</button>
        </form>
        <p>&nbsp;</p>
        <p><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a>
        <p><a href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a>
    </div>
{% endblock %}



