summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/import_delete.html
blob: 4844d89d8f104862a70c8b80564ef639bd43b9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends "base.html" %}
{% load i18n inline_formset verbose_names %}
{% block content %}
<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>
            </div>
        {% endblock %}

        <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 %}