Missing geometry html improvement

* improves rendering of missing geometry icons on table
pull/223/head
mpeltriaux 2 years ago
parent d95827770d
commit 48aee04955

@ -1,6 +1,11 @@
{% load i18n fontawesome_5 %} {% load i18n fontawesome_5 %}
{% if geometry.geom is not None %} {% if geometry.geom is None or geometry.geom.empty %}
<span class="text-info" title="{% translate 'No geometry added, yet.' %}">
{% fa5_icon 'search-location' %}
{% fa5_icon 'question' %}
</span>
{% else %}
{% for entry in entries %} {% for entry in entries %}
<span class="badge pill-badge rlp-r">{{entry}}</span> <span class="badge pill-badge rlp-r">{{entry}}</span>
{% empty %} {% empty %}
@ -8,9 +13,4 @@
{% fa5_icon 'hourglass-half' %} {% fa5_icon 'hourglass-half' %}
</span> </span>
{% endfor %} {% endfor %}
{% else %}
<span class="text-info" title="{% translate 'No geometry added, yet.' %}">
{% fa5_icon 'search-location' %}
{% fa5_icon 'question' %}
</span>
{% endif %} {% endif %}
Loading…
Cancel
Save