From a461c07dc3c21f95bca10fb7747b503d620de3c2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 24 Oct 2015 14:28:59 +0200 Subject: Imports: better layout for deletion page --- ishtar_common/templates/ishtar/import_delete.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/import_delete.html b/ishtar_common/templates/ishtar/import_delete.html index 6979b4dd7..30217bf8d 100644 --- a/ishtar_common/templates/ishtar/import_delete.html +++ b/ishtar_common/templates/ishtar/import_delete.html @@ -6,9 +6,15 @@
{% csrf_token %}

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

-
    {% for accessor, imported in object.get_all_imported %} -
  • {% get_verbose_model_name imported %}{% trans ":" %} {{imported}}
  • -{% endfor %}
+{% 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?" %} -- cgit v1.2.3