{% load i18n fontawesome_5 %}
<div class="col-sm-12">
    <div class="card">
        <div class="card-header rlp-r">
            <div class="row">
                <div class="col-6">
                    <h5>
                        {% fa5_icon 'search-location' %}
                        {% trans 'Spatial reference' %}
                    </h5>
                </div>
                <div class="col-6 text-right">
                    <h5>
                        {{ obj.geometry.geom.area|floatformat:2 }} m²
                    </h5>
                </div>
            </div>
        </div>
        <div class="card-body">
            {% if geom_form.instance.geometry %}
            <div hx-trigger="load, every 5s" hx-get="{% url 'geometry-parcels' geom_form.instance.geometry.id %}">
                <div class="row justify-content-center">
                    <span class="spinner-border rlp-r-inv" role="status"></span>
                </div>
            </div>
            {% else %}
            <div class="alert alert-danger">
                {% translate 'No geometry entry found on database. Please contact an admin!' %}
            </div>
            {% endif %}
        </div>
    </div>
</div>