{% extends "mongo_auth/base.html" %}

{% load future i18n %}

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

{% block content %}
    <div class="account login">
        <h1>{% trans "Login" %}</h1>
        <div class="login_form">
            {% with next|default:request_get_next|default:LOGIN_REDIRECT_URL as next %}
                {% trans "Login" as form_submit %}
                {% url "login" as form_action %}
                {% include "mongo_auth/form.html" %}
            {% endwith %}
            {% url "registration" as registration_url %}
            {% if registration_url %}
                <div class="registration_link">
                    <a href="{% url "registration" %}" class="buttons">{% trans "Register" %}</a>
                </div>
            {% endif %}
            {% url "password_reset" as password_reset_url %}
            {% if password_reset_url %}
                <div class="password_reset_link">
                    <a href="{{ password_reset_url }}">{% trans "Forgotten your password or username?" %}</a>
                </div>
            {% endif %}
        </div>
        <div id="other_login_options">
            <ul>
                {% include "mongo_auth/other_login_options.html" %}
            </ul>
        </div>
    </div>
{% endblock %}
