{% extends "mapentity/mapentity_confirm_delete.html" %} {% load static i18n geotrek_tags %} {% block mainpanel %} {% settings_value "ALLOW_PATH_DELETION_TOPOLOGY" as allowed_path_deletion_topology %}
{% if topologies_by_model|length and not allowed_path_deletion_topology %}

Warning!

{% blocktrans %}You can't delete {{ object }}, some topologies are linked with this path. Modify these topologies before deleting this path.{% endblocktrans %} {% else %}

Warning!

{% blocktrans %}Do you really wish to delete {{ object }} ?{% endblocktrans %} {% endif %}
{% if allowed_path_deletion_topology or not topologies_by_model|length %}
{% csrf_token %} {% trans "No, back to edit view" %}
{% endif %}
{% if topologies_by_model|length %}
{% trans 'Different topologies are linked with this path' %} :
{% endif %} {% for model, topologies in topologies_by_model.items %}

{{ model }} :

{% endfor %}
{% endblock mainpanel %}