{% extends "mag/base_mag_ecom.html" %} {% load static %} {% block title %}AUTO-PIECE — Zones de livraison{% endblock title %} {% block page %}Zones de livraison{% endblock page %} {% block extra_head %} {% endblock extra_head %} {% block main_content %}
{% include "mag/partials/_periode_filter_modal.html" %}
{# ── Pays ── #}
{% csrf_token %}
Ajouter un pays
{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher un pays…" %}
{% for p in pays_list %} {% empty %} {% endfor %}
Nom Code Commandes Statut Actions
{{ p.nom }}
{% csrf_token %}
{{ p.code }} {{ p.nb_cmd_periode }} {% if p.actif %}Actif {% else %}Inactif{% endif %}
{% csrf_token %}
{% csrf_token %}
Aucun pays pour le moment.
{% include "mag/partials/_table_pager.html" %}
{# ── Villes ── #}
{% csrf_token %}
Ajouter une ville
{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher une ville…" %}
{% for v in villes_list %} {% empty %} {% endfor %}
Pays Ville Frais Cmd Statut Actions
{{ v.pays.nom }} —
{{ v.nom }}
{% csrf_token %}
{{ v.frais_livraison|floatformat:0 }} FCFA {{ v.nb_cmd_periode }} {% if v.actif %}Actif {% else %}Inactif{% endif %}
{% csrf_token %}
{% csrf_token %}
Aucune ville pour le moment.
{% include "mag/partials/_table_pager.html" %}
{# ── Communes ── #}
{% csrf_token %}
Ajouter une commune
{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher une commune…" %}
{% for c in communes_list %} {% empty %} {% endfor %}
Ville Commune Cmd Statut Actions
{{ c.ville.nom }} {{ c.ville.pays.nom }}
{{ c.nom }}
{% csrf_token %}
{{ c.nb_cmd_periode }} {% if c.actif %}Actif {% else %}Inactif{% endif %}
{% csrf_token %}
{% csrf_token %}
Aucune commune pour le moment.
{% include "mag/partials/_table_pager.html" %}
{% endblock main_content %} {% block extra_js %} {% include "mag/partials/_periode_filter_js.html" %} {% endblock extra_js %}