{% extends base_template %}
{% load i18n %}

{% block i18n_do_not_translate %}
    {% block login_active %}active{% endblock login_active %}
{% endblock i18n_do_not_translate %}

{% block title %}{% trans "Log in" %}{% endblock title %}

{% block headcss %}
    <style>
        #info_block {
            margin-top: 30px;
        }
    </style>
{% endblock headcss %}

{% block content %}
    <div class="container">
        <form method="post" class="basic-form">
            {% csrf_token %}
            <h3 class="no-margin-top">{% trans "Log in" %}</h3>

            {{ form.as_p }}

            <input type="submit" value="{% trans 'Log in' %}" class="submit btn btn-success btn-md" />
        </form>
        <div id="info_block">
            {% if not restricted %}
                {% url 'facility_user_signup' as signup_url %}
                {% blocktrans %}If you don't have a login, please <a href="{{ signup_url }}">sign up</a>.{% endblocktrans %}
            {% else %}
                {% blocktrans %}If you don't have a login, please contact your administrator.{% endblocktrans %}
            {% endif %}
        </div>
    </div>
{% endblock content %}
