From b88b246ad8d88690eb046343c99388f8e5075c03 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 10 May 2022 16:49:22 +0200 Subject: Import - Current - Delete: refactoring delete page - 2 (refs #5312) --- ishtar_common/templates/ishtar/import_delete.html | 86 +++++++++++------------ 1 file changed, 42 insertions(+), 44 deletions(-) diff --git a/ishtar_common/templates/ishtar/import_delete.html b/ishtar_common/templates/ishtar/import_delete.html index e131447d4..4844d89d8 100644 --- a/ishtar_common/templates/ishtar/import_delete.html +++ b/ishtar_common/templates/ishtar/import_delete.html @@ -1,52 +1,50 @@ {% extends "base.html" %} {% load i18n inline_formset verbose_names %} {% block content %} -
-
{% csrf_token %} -

{{page_name}}

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

{{page_name}}

+ {% csrf_token %} +
+ {% 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 %} -
-
+ {% endblock %} - {% block "footer" %} - - {% endblock %} - -
+

{{object}}

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