{% load i18n %} {% comment %} Reusable component: modals + JS for editing, creating, and deleting locations. Include this in any location detail or list template. Required template variables: thematic_code – e.g. "trafficlights" location_type – e.g. "trafficlightintersection" Optional: location_instance – model instance (for the edit/delete modals) entry_label – human-readable label, e.g. "Intersection" {% endcomment %} {# ── Edit Modal ──────────────────────────────────────────────────────── #}
{# ── Delete Modal ────────────────────────────────────────────────────── #} {# ── Create Modal ────────────────────────────────────────────────────── #} {# ── JavaScript ──────────────────────────────────────────────────────── #}