{% load i18n fontawesome_5 %}

{% comment %}
    Encapsules the rendering and initializing of a geometry view component, e.g. used in the detail views.
{% endcomment %}

{% if geom_form.empty and geom_form.read_only %}
    <div class="w-100">
        <div class="alert alert-danger">
            {% fa5_icon 'search-location' %}
            {% trans 'No geometry added, yet.' %}
        </div>
    </div>
{% endif %}

{% if geom_form.geom.errors %}
    <div class="alert-danger p-2">
    {% for error in geom_form.geom.errors %}
            <strong class="invalid">{{ error }}</strong>
            <br>
    {% endfor %}
    </div>
{% endif %}

<div style="height: 85vh">
    {% include 'map/client/index.html' %}
</div>
