2023-10-31 16:07:15 +01:00
|
|
|
{% import "includes/macros" as macros %}
|
|
|
|
{% extends "base" %}
|
|
|
|
{% block content %}
|
2024-04-06 17:44:05 +02:00
|
|
|
<style>
|
|
|
|
.dt-input {
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
.dt-selector {
|
|
|
|
width: 70px;
|
|
|
|
}
|
|
|
|
.dt-table th{
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
.dt-table td {
|
|
|
|
border: 1px gray solid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
2024-03-04 13:28:42 +01:00
|
|
|
<div class="max-w-screen-lg w-full">
|
|
|
|
<h1 class="h1">Bootsauswertung</h1>
|
2024-04-06 17:44:05 +02:00
|
|
|
<div class="text-black dark:text-white">
|
|
|
|
<table id="basic">
|
|
|
|
<thead>
|
2024-04-06 15:27:35 +02:00
|
|
|
<tr>
|
2024-04-06 17:44:05 +02:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Ort</th>
|
|
|
|
{% for year in stat.pot_years | sort | reverse %}<th>{{ year }}</th>{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for boat in stat.boats %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ boat.name }}</td>
|
|
|
|
<td>{{ boat.location }}</td>
|
|
|
|
{% for year in stat.pot_years | sort | reverse %}
|
|
|
|
<td>
|
|
|
|
{% if year~'' in boat.years %}
|
|
|
|
{{ boat.years[year] }}
|
|
|
|
{% else %}
|
|
|
|
0
|
|
|
|
{% endif %}
|
2024-04-06 15:27:35 +02:00
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-03-04 13:28:42 +01:00
|
|
|
</div>
|
2024-04-06 17:44:05 +02:00
|
|
|
</div>
|
|
|
|
<script src="/public/jstable.min.js"></script>
|
|
|
|
<script>new JSTable("#basic", {
|
|
|
|
perPage: 100,
|
|
|
|
perPageSelect: [10,100],
|
|
|
|
labels: {
|
|
|
|
placeholder: 'Suchen (zB "Linz")'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock content %}
|