summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-05-10 16:49:22 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:50 +0200
commitb88b246ad8d88690eb046343c99388f8e5075c03 (patch)
treeab4f05ac5d64d1e8167ed339a61247c43bc82124
parent28f649597ed86f7b27b083cd37d1363ddb051965 (diff)
downloadIshtar-b88b246ad8d88690eb046343c99388f8e5075c03.tar.bz2
Ishtar-b88b246ad8d88690eb046343c99388f8e5075c03.zip
Import - Current - Delete: refactoring delete page - 2 (refs #5312)
-rw-r--r--ishtar_common/templates/ishtar/import_delete.html86
1 files 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 %}
- <div class='form'>
- <form action="." method="post">{% csrf_token %}
- <h2>{{page_name}}</h2>
-
- {% block "warning_message" %}
- <div class="alert alert-danger">
- <div><i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
- {% trans "Are you sure to want to delete this item?" %}
- </div>
+<h2>{{page_name}}</h2>
+ <form action="." method="post">{% csrf_token %}
+ <div class="form container">
+ {% block "warning_message" %}
+ <div class="alert alert-danger">
+ <div><i class="fa fa-exclamation-triangle" aria-hidden="true"></i>&nbsp;
+ {% trans "Are you sure to want to delete this item?" %}
<p>{% trans "No rollback is possible. Be careful to scroll to the end of page to check every piece of information." %}</p>
</div>
- {% endblock %}
-
- <div class="card">
- <div class="card-header">
- {{ object }}
- </div>
- <div class="card-body">
- {% for accessor, imported in object.get_all_imported %}
- {% ifchanged imported|verbose_model_name %}
- {% if forloop.counter %}
- </ul>
- {% endif %}
- <hr><strong>{{ imported|verbose_model_name }}</strong><hr>
- <ul class="list">
- {% endifchanged %}
- <li>
- {{ imported }}
- {% url "show-"|add:imported.SLUG imported.pk "" as current_url %}
- {% if current_url %}
- <a class="display_details_inline" href="#" onclick='load_window("{% url "show-"|add:imported.SLUG imported.pk "" %}")'>
- <i class="fa fa-info-circle" aria-hidden="true"></i>
- </a>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- </div>
</div>
+ {% endblock %}
- {% block "footer" %}
- <div id="footer">
- <p class="confirm-message">{% trans "Are you sure to want to delete this import?" %}</p>
- {% include 'ishtar/wizard/validation_bar.html' %}
- </div>
- {% endblock %}
- </form>
- </div>
+ <h3>{{object}}</h3>
+ {% for accessor, imported in object.get_all_imported %}
+ {% ifchanged imported|verbose_model_name %}
+ {% if forloop.counter0 %}
+ </div>
+ </div>
+ {% endif %}
+ <div class="card">
+ <div class="card-header">
+ {{ imported|verbose_model_name }}
+ </div>
+ <div class="card-body">
+ {% else %}
+ <hr>
+ {% endifchanged %}
+ {% url "show-"|add:imported.SLUG imported.pk "" as current_url %}
+ {% if current_url %}
+ <a class="display_details_inline" href="#" onclick='load_window("{% url "show-"|add:imported.SLUG imported.pk "" %}")'>
+ <i class="fa fa-info-circle" aria-hidden="true"></i>
+ </a>
+ {% endif %}
+ {{ imported }}
+ {% endfor %}
+ </div>
+ </div>
+ {% block "footer" %}
+ <div id="footer">
+ <p class="confirm-message">{% trans "Are you sure to want to delete this import?" %}</p>
+ {% include 'ishtar/wizard/validation_bar.html' %}
+ {% include 'ishtar/blocks/footer.html' %}
+ </div>
+ {% endblock %}
+ </div>
+ </form>
{% endblock %}