diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-10-24 14:28:59 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-10-24 14:28:59 +0200 |
| commit | a461c07dc3c21f95bca10fb7747b503d620de3c2 (patch) | |
| tree | 06f6f31f928fc75bc651feea81abc4ff553a9f00 /ishtar_common/templates | |
| parent | ae6364b1992d385e2bcb89f58e69ef4e9f28d97c (diff) | |
| download | Ishtar-a461c07dc3c21f95bca10fb7747b503d620de3c2.tar.bz2 Ishtar-a461c07dc3c21f95bca10fb7747b503d620de3c2.zip | |
Imports: better layout for deletion page
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/import_delete.html | 12 |
1 files changed, 9 insertions, 3 deletions
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 @@ <div class='form'> <form action="." method="post">{% csrf_token %} <p>{% trans "The current items are linked to this import:" %}</p> -<ul>{% for accessor, imported in object.get_all_imported %} - <li>{% get_verbose_model_name imported %}{% trans ":" %} {{imported}}</li> -{% endfor %}</ul> +{% for accessor, imported in object.get_all_imported %} +{% ifchanged imported|verbose_model_name %} +{% if forloop.counter %}</ul>{% endif %} +<h4>{{imported|verbose_model_name}}</h4> +<ul class='item-list'> +{%endifchanged%} + <li>{{imported}}</li> +{% endfor %} +</ul> <p>{% trans "All these items will be deleted with this import." %}</p> <strong>{% trans "Are you sure?" %}</strong> <input type="submit" value="{% trans "Yes" %}"/> |
