IdHub/idhub/templates/idhub/admin/schemas.html

35 lines
1.3 KiB
HTML
Raw Normal View History

2023-10-09 15:59:15 +00:00
{% extends "idhub/base_admin.html" %}
{% load i18n %}
2023-12-15 17:40:56 +00:00
{% load render_table from django_tables2 %}
2023-10-09 15:59:15 +00:00
{% block content %}
2023-10-13 11:37:26 +00:00
<h3>
<i class="{{ icon }}"></i>
{{ subtitle }}
</h3>
2023-12-15 17:40:56 +00:00
{% render_table table %}
<div class="form-actions-no-box">
<a class="btn btn-green-admin" href="{% url 'idhub:admin_schemas_import' %}">{% translate "Add template" %} <i class="bi bi-plus"></i></a>
2023-10-23 17:24:48 +00:00
</div>
<!-- Modal -->
2023-12-15 17:40:56 +00:00
{% for schema in object_list %}
<div class="modal" id="confirm-delete-{{ schema.id }}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
2023-10-23 17:24:48 +00:00
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
2023-11-13 09:15:52 +00:00
<h5 class="modal-title" id="exampleModalLabel">{% trans 'Delete template' %} {{ schema.file_schema }}</h5>
2023-10-23 17:24:48 +00:00
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
{% trans 'Are you sure that you want delete this template?' %}
</div>
<div class="modal-footer">
2023-11-22 14:05:46 +00:00
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans 'Cancel' %}</button>
2023-10-23 17:24:48 +00:00
<a href="{% url 'idhub:admin_schemas_del' schema.id %}" type="button" class="btn btn-danger">{% trans 'Delete' %}</a>
</div>
</div>
</div>
</div>
{% endfor %}
2023-10-09 15:59:15 +00:00
{% endblock %}