From 28f649597ed86f7b27b083cd37d1363ddb051965 Mon Sep 17 00:00:00 2001 From: Cefin Date: Wed, 23 Mar 2022 15:03:57 +0100 Subject: Import - Current - Delete: refactoring delete page (refs #5312) --- ishtar_common/templates/ishtar/import_delete.html | 68 ++++++++++++++++------- 1 file changed, 48 insertions(+), 20 deletions(-) diff --git a/ishtar_common/templates/ishtar/import_delete.html b/ishtar_common/templates/ishtar/import_delete.html index ef05a884c..e131447d4 100644 --- a/ishtar_common/templates/ishtar/import_delete.html +++ b/ishtar_common/templates/ishtar/import_delete.html @@ -1,24 +1,52 @@ {% extends "base.html" %} {% load i18n inline_formset verbose_names %} {% block content %} -

{{page_name}}

-
-

{{object}}

-
{% csrf_token %} -

{% trans "The current items are linked to this import:" %}

- {% for accessor, imported in object.get_all_imported %} - {% ifchanged imported|verbose_model_name %} - {% if forloop.counter %}{% endif %} -

{{imported|verbose_model_name}}

-
    - {%endifchanged%} -
  • {{imported}}
  • - {% endfor %} -
-

{% trans "All these items will be deleted with this import." %}

- {% trans "Are you sure?" %} - -
-

{% trans "Back" %}

-
+
+
{% csrf_token %} +

{{page_name}}

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

{% trans "No rollback is possible. Be careful to scroll to the end of page to check every piece of information." %}

+
+ {% endblock %} + +
+
+ {{ object }} +
+
+ {% for accessor, imported in object.get_all_imported %} + {% ifchanged imported|verbose_model_name %} + {% if forloop.counter %} + + {% endif %} +
{{ imported|verbose_model_name }}
+
    + {% endifchanged %} +
  • + {{ imported }} + {% url "show-"|add:imported.SLUG imported.pk "" as current_url %} + {% if current_url %} + + + + {% endif %} +
  • + {% endfor %} +
+
+
+ + {% block "footer" %} + + {% endblock %} +
+
{% endblock %} -- cgit v1.2.3