{% extends 'creme_core/bricks/base/base.html' %} {% load i18n creme_bricks %} {% load format from creme_core_tags %} {% block brick_extra_class %}geolocation-brick geolocation-detail-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('Map') %} {% endblock %} {% block brick_script %} {% if addresses and not object.is_deleted %} {% block brick_geolocation_script %}{% endblock %} {% endif %} {% endblock %} {% block brick_content %} {% if object.is_deleted %}
{% translate 'The geolocation feature is disabled for the entities in the trash' %}
{% elif not addresses %}
{% translate 'No address defined for now' %}
{% else %}
{% for address in addresses %} {% with is_visible=address.is_billing %}
{% if address.content and address.title %} {{address.title}} {{address.content}} {% else %} {% if address.title %}{{address.title}}{% else %}{{address.content}}{% endif %} {% endif %}
{% translate 'Retrieve location' %} {% if address.latitude %} {{address.latitude|format:'%3.6f'}}, {{address.longitude|format:'%3.6f'}} {% endif %} {{address.status_label}}
{% endwith %} {% endfor %}
{% block brick_geomap_error %}{% endblock %}
{% endif %} {% endblock %}