{% extends "mag/base_mag_ecom.html" %} {% load static %} {% block title %} AUTO-PIECE || LOCALITÉS {% endblock title %} {% block header %}

Localités

{% endblock header %} {% block extra_head %} {% endblock extra_head %} {% block main_content %} {# Parent appbases wraps main_content in .row.row-deck — colonnes directes #}

Liste des localités {{ localites|length }} site(s)

{% if localites %}
{% for loc in localites %}
{{ loc.nom }}
{% if loc.statut %} Ouvert {% else %} Fermé {% endif %} {% if loc.a_coordonnees %} {{ loc.latitude }}, {{ loc.longitude }} {% else %} GPS non défini {% endif %}
{% csrf_token %}
{% endfor %}

Aucune localité ne correspond à votre recherche.

{% else %}

Aucune localité pour le moment. Créez-en une pour l’afficher sur la carte.

{% endif %}

Carte des localités Cliquez une localité à gauche pour la centrer sur la carte

{# Modal création / édition #}
{% endblock main_content %}