{% extends "management/base.html" %} {% load i18n lucide ui %} {% block heading %}{% trans "Locations" %}{% endblock heading %} {% block actions %} {% lucide "plus" size=16 %} {% trans "New location" %} {% endblock actions %} {% block panel %}
{% for location in locations %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Address" %} {% trans "City" %} {% trans "Country" %}
{{ location.name }} {% if location.is_home %}{% trans "Home" %}{% endif %} {{ location.address }} {{ location.city }} {{ location.country }}
{% lucide "pencil" size=14 %} {% trans "Edit" %}
{% trans "No locations yet." %}
{% trans "Delete location" as delete_location_title %} {% trans "Delete" as delete_label %} {% for location in locations %} {% url 'management:location_delete' location.pk as location_delete_url %} {% blocktrans with name=location.name asvar delete_location_body %}Delete “{{ name }}”? Any events at this location keep their history but lose the link. This cannot be undone.{% endblocktrans %} {% include "controlpanel/_confirm_modal.html" with modal_id=location.pk|dom_id:"location_delete_modal" title=delete_location_title body=delete_location_body action_url=location_delete_url submit_label=delete_label %} {% endfor %} {% endblock panel %}