{% extends "mapentity/base_site.html" %}
{% load i18n crispy_forms_tags mapentity_tags %}

{% block content %}
<div class="container">
    {% if messages %}
        {% for message in messages %}
            <div class="alert {{ message.tags }} alert-dismissible fade show" role="alert">
                {{ message }}
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
        {% endfor %}
    {% endif %}
    <div class="row justify-content-center">
        <div class="col-12 col-sm-8 col-md-6 col-lg-4">
            <img src="{% media_static_fallback 'upload/logo-login.png' 'images/logo-login.png' %}" />
            <form action="" method="post" class="login-form">
                {% csrf_token %}
                {{ form|crispy }}
                <div class="text-right">
                    <button type="submit" class="btn btn-primary">Login</button>
                </div>
            </form>

            <p>Version {{ VERSION }}</p>
        </div>

    </div>
</div>
{% endblock content %}

{% block extrabody %}
{% endblock extrabody %}
