{% load i18n %} {% if location or parent_support or meter_hosts or can_edit_location %}
{% if location_type == 'street' %} {% translate "Rue associée" %} {% elif location_type == 'intersection' %} {% translate "Carrefour associé" %} {% elif location_type == 'building' %} {% translate "Bâtiment associé" %} {% elif location_type == 'site' %} {% translate "Site associé" %} {% else %} {% translate "Localisation associée" %} {% endif %}
{% if is_electricity_meter and can_edit_location %} {% elif can_edit_location and not parent_support %} {% endif %}
{% if parent_support %}
{% translate "Support / Équipement parent" %} : {% if parent_support.get_absolute_url %} {{ parent_support.code }} {% else %} {{ parent_support.code }} {% endif %} - {{ parent_support.get_name }}
{% endif %} {% if meter_hosts %}
{% translate "Armoire / Équipement alimenté" %} : {% for host in meter_hosts %}
{% if host.url %} {{ host.asset.code }} {% else %} {{ host.asset.code }} {% endif %} ({{ host.model_label }}) {% if host.asset.get_name %}
{{ host.asset.get_name }}
{% endif %}
{% endfor %}
{% endif %} {% if location %}
{% if parent_support or meter_hosts %}{% translate "Localisation" %} :{% endif %} {% if location.get_absolute_url %} {{ location.code }} {% else %} {{ location.code }} {% endif %} - {{ location.get_name }}
{% elif not parent_support and not meter_hosts %}

{% translate "Aucune localisation associée" %}

{% endif %}
{% endif %} {# Modal pour changer la localisation #} {% if can_edit_location %} {% endif %} {% if is_electricity_meter and can_edit_location %} {% endif %}