Files
Voting/templates/dyn_dt/items-table.html
Victor Alexandrovich Tsyrenschikov 42ed1b04cb Django
2025-11-21 00:02:57 +05:00

22 lines
633 B
HTML

{% load get_attribute %}
<div class="dt-responsive table-responsive">
<table class="table">
<thead>
<tr>
{% for field in db_field_names %}
<th id="th_{{ field }}_export" scope="col">{{ field }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
{% for field_name in db_field_names %}
<td class="td_{{ field_name }}">{{ item|getattribute:field_name }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>