diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-09-29 18:05:08 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:18 +0100 |
| commit | 4ab3725af5ba8f12d69cbc1702baa13e9773880e (patch) | |
| tree | c47ea21f2c4be849406d1d1ae40b34b560424504 /ishtar_common/templates/ishtar/forms | |
| parent | 4f73df01dc3891266fe999e3ab2652f712f6680a (diff) | |
| download | Ishtar-4ab3725af5ba8f12d69cbc1702baa13e9773880e.tar.bz2 Ishtar-4ab3725af5ba8f12d69cbc1702baa13e9773880e.zip | |
Geodata: delete action
Diffstat (limited to 'ishtar_common/templates/ishtar/forms')
| -rw-r--r-- | ishtar_common/templates/ishtar/forms/geo_delete_form.html | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/forms/geo_delete_form.html b/ishtar_common/templates/ishtar/forms/geo_delete_form.html new file mode 100644 index 000000000..643e4d211 --- /dev/null +++ b/ishtar_common/templates/ishtar/forms/geo_delete_form.html @@ -0,0 +1,118 @@ +{% extends "base.html" %} +{% load i18n inline_formset verbose_names %} +{% block content %} +<h2>{{page_name}}</h2> + <form action="." method="post">{% csrf_token %} + <input type="hidden" name="back_url" value="{{back_url}}" /> + <div class="form container"> + {% 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 geographic item?" %} + <p>{% trans "No rollback is possible." %}</p> + </div> + </div> + {% endblock %} + + <div class="card"> + <div class="card-header"> + {{ object }} + </div> + <div class="card-body"> + <table class="table"> + <tr> + <th>{% trans "Name" %}</th><td>{{object.name|default:'-'}}</td> + </tr> + <tr> + <th>{% trans "Source" %}</th><td>{{object.source_label|default:'-'}}</td> + </tr> + <tr> + <th>{% trans "Origin" %}</th><td>{{object.origin|default:'-'}}</td> + </tr> + <tr> + <th>{% trans "Data type" %}</th><td>{{object.data_type|default:'-'}}</td> + </tr> + <tr> + <th>{% trans "Provider" %}</th><td>{{object.provider|default:'-'}}</td> + </tr> + <tr> + <th>{% trans "Comment" %}</th><td>{{object.comment|default:'-'}}</td> + </tr> + {% if object.related_items_ishtar_common_town.count %} + <tr> + <th>{% trans "Geographic item for these towns" %}</th> + <td><ul> + {% for item in object.related_items_ishtar_common_town.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + {% if object.related_items_archaeological_operations_operation.count %} + <tr> + <th>{% trans "Geographic item for these operations" %}</th> + <td><ul> + {% for item in object.related_items_archaeological_operations_operation.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + {% if object.related_items_archaeological_operations_archaeologicalsite.count %} + <tr> + <th>{% trans "Geographic item for these sites" %}</th> + <td><ul> + {% for item in object.related_items_archaeological_operations_archaeologicalsite.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + {% if object.related_items_archaeological_context_records_contextrecord.count %} + <tr> + <th>{% trans "Geographic item for these context records" %}</th> + <td><ul> + {% for item in object.related_items_archaeological_context_records_contextrecord.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + {% if object.related_items_archaeological_finds_basefind.count %} + <tr> + <th>{% trans "Geographic item for these base finds" %}</th> + <td><ul> + {% for item in object.related_items_archaeological_finds_basefind.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + {% if object.related_items_archaeological_warehouse_container.count %} + <tr> + <th>{% trans "Geographic item for these containers" %}</th> + <td><ul> + {% for item in object.related_items_archaeological_warehouse_container.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + {% if object.related_items_archaeological_warehouse_warehouse.count %} + <tr> + <th>{% trans "Geographic item for these operations" %}</th> + <td><ul> + {% for item in object.related_items_archaeological_warehouse_warehouse.all %} + <li>{{item}}</li>{% endfor %} + </ul></td> + </tr> + {% endif %} + </table> + </div> + </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 %} |
