2025-01-17 11:03:00 +01:00
|
|
|
{% import 'macro/table.html' as table %}
|
|
|
|
|
|
|
|
<div class="table-responsive-sm">
|
|
|
|
<table class="table table-striped align-middle" id="minifigures">
|
|
|
|
{{ table.header(quantity=true, missing_parts=true, sets=true) }}
|
|
|
|
<tbody>
|
|
|
|
{% for item in table_collection %}
|
|
|
|
<tr>
|
|
|
|
{{ table.image(item.url_for_image(), caption=item.fields.name, alt=item.fields.fig_num) }}
|
|
|
|
<td >
|
|
|
|
<a class="text-reset" href="{{ item.url() }}" style="max-width:auto">{{ item.fields.name }}</a>
|
|
|
|
{% if all %}
|
|
|
|
{{ table.rebrickable(item) }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ item.fields.total_quantity }}</td>
|
|
|
|
<td>{{ item.fields.total_missing }}</td>
|
|
|
|
<td>{{ item.fields.total_sets }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% if all %}
|
2025-01-24 14:57:26 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
new BrickTable('minifigures', {{ config['DEFAULT_TABLE_PER_PAGE'] }}, [0], [2, 3, 4]);
|
|
|
|
});
|
|
|
|
</script>
|
2025-01-17 11:03:00 +01:00
|
|
|
{% endif %}
|