You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.2 KiB
60 lines
2.2 KiB
<div class="table-responsive rounded " style="background-color: {{ theme.black }};">
|
|
<table id="data" class="table table-dark table-striped-columns table-hover mt-3 mb-3 mr-3 ml-3">
|
|
<thead>
|
|
{{ info }}
|
|
<tr>
|
|
{% for title in table.titles %}
|
|
<th scope="col">{{ title }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-group-divider">
|
|
{% if table.paginate == 1 %}
|
|
{% for line in table.lines.items %}
|
|
<tr>
|
|
{% for title in table.titles %}
|
|
{% if title == table.item_to_be_linked %}
|
|
<th scope="col" style="white-space: nowrap;"><a href="{{ table.link_for_item }}{{ line|attr(title) }}">{{ line|attr(title) }}</a></th>
|
|
{% else %}
|
|
<th scope="col" style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;">{{ line|attr(title) }}</th>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for line in table.lines %}
|
|
<tr>
|
|
{% for title in table.titles %}
|
|
{% if title == table.item_to_be_linked %}
|
|
<th scope="col"><a href="{{ table.link_for_item }}{{ line|attr(title) }}">{{ line|attr(title) }}</a></th>
|
|
{% else %}
|
|
<th scope="col">{{ line|attr(title) }}</th>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% if table.paginate == 1 %}
|
|
{% if table.lines.pages < 2 %}
|
|
{% else %}
|
|
{% include 'pagination.html' %}
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
{% block scripts %}
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#data').DataTable({
|
|
columns: [
|
|
null,
|
|
{searchable: false},
|
|
{orderable: false, searchable: false},
|
|
{orderable: false, searchable: false},
|
|
null],
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|