From 8475c8d481208f1fa501de46e35f5a43fcddce4c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 29 Sep 2022 18:05:08 +0200 Subject: Geodata: delete action --- .../templates/ishtar/forms/geo_delete_form.html | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 ishtar_common/templates/ishtar/forms/geo_delete_form.html (limited to 'ishtar_common/templates/ishtar/forms') diff --git a/ishtar_common/templates/ishtar/forms/geo_delete_form.html b/ishtar_common/templates/ishtar/forms/geo_delete_form.html new file mode 100644 index 000000000..643e4d211 --- /dev/null +++ b/ishtar_common/templates/ishtar/forms/geo_delete_form.html @@ -0,0 +1,118 @@ +{% extends "base.html" %} +{% load i18n inline_formset verbose_names %} +{% block content %} +

{{page_name}}

+
{% csrf_token %} + +
+ {% block "warning_message" %} +
+
  + {% trans "Are you sure to want to delete this geographic item?" %} +

{% trans "No rollback is possible." %}

+
+
+ {% endblock %} + +
+
+ {{ object }} +
+
+ + + + + + + + + + + + + + + + + + + + {% if object.related_items_ishtar_common_town.count %} + + + + + {% endif %} + {% if object.related_items_archaeological_operations_operation.count %} + + + + + {% endif %} + {% if object.related_items_archaeological_operations_archaeologicalsite.count %} + + + + + {% endif %} + {% if object.related_items_archaeological_context_records_contextrecord.count %} + + + + + {% endif %} + {% if object.related_items_archaeological_finds_basefind.count %} + + + + + {% endif %} + {% if object.related_items_archaeological_warehouse_container.count %} + + + + + {% endif %} + {% if object.related_items_archaeological_warehouse_warehouse.count %} + + + + + {% endif %} +
{% trans "Name" %}{{object.name|default:'-'}}
{% trans "Source" %}{{object.source_label|default:'-'}}
{% trans "Origin" %}{{object.origin|default:'-'}}
{% trans "Data type" %}{{object.data_type|default:'-'}}
{% trans "Provider" %}{{object.provider|default:'-'}}
{% trans "Comment" %}{{object.comment|default:'-'}}
{% trans "Geographic item for these towns" %}
    + {% for item in object.related_items_ishtar_common_town.all %} +
  • {{item}}
  • {% endfor %} +
{% trans "Geographic item for these operations" %}
    + {% for item in object.related_items_archaeological_operations_operation.all %} +
  • {{item}}
  • {% endfor %} +
{% trans "Geographic item for these sites" %}
    + {% for item in object.related_items_archaeological_operations_archaeologicalsite.all %} +
  • {{item}}
  • {% endfor %} +
{% trans "Geographic item for these context records" %}
    + {% for item in object.related_items_archaeological_context_records_contextrecord.all %} +
  • {{item}}
  • {% endfor %} +
{% trans "Geographic item for these base finds" %}
    + {% for item in object.related_items_archaeological_finds_basefind.all %} +
  • {{item}}
  • {% endfor %} +
{% trans "Geographic item for these containers" %}
    + {% for item in object.related_items_archaeological_warehouse_container.all %} +
  • {{item}}
  • {% endfor %} +
{% trans "Geographic item for these operations" %}
    + {% for item in object.related_items_archaeological_warehouse_warehouse.all %} +
  • {{item}}
  • {% endfor %} +
+
+
+ +
+ {% block "footer" %} + + {% endblock %} + +
+{% endblock %} -- cgit v1.2.3