{% extends "touchtechnology/admin/base.html" %} {% load i18n %} {% load common %} {% block content %} {% with type=object|type %}

{% blocktrans %}Delete {{ type }}{% endblocktrans %}

{% if object.is_leaf_node %}

{% trans "Warning" %}

{% blocktrans %}You are about to delete the {{ type }} {{ object }}. This will permanently remove it from your site. Are you sure you want to continue?{% endblocktrans %}

{% csrf_token %}
{% block cancel_button %} {% trans "Cancel" %} {% endblock %}
{% else %}

{% trans "Error" %}

{% blocktrans %}You are attempting to delete a {{ type }} which has children in the site hierarchy, which is not possible.{% endblocktrans %}

{% trans "Cancel" %}
{% endif %} {% endwith %} {% endblock %}