fancier-boat-stats #340

Merged
philipp merged 2 commits from fancier-boat-stats into staging 2024-04-06 17:54:46 +02:00
Showing only changes of commit 39ba7d53dd - Show all commits

View File

@ -1,8 +1,24 @@
{% import "includes/macros" as macros %} {% import "includes/macros" as macros %}
{% extends "base" %} {% extends "base" %}
{% block content %} {% block content %}
<style>
.dt-input {
color: black;
}
.dt-selector {
width: 70px;
}
.dt-table th{
min-width: 100px;
}
.dt-table td {
border: 1px gray solid;
}
}
</style>
<div class="max-w-screen-lg w-full"> <div class="max-w-screen-lg w-full">
<h1 class="h1">Bootsauswertung</h1> <h1 class="h1">Bootsauswertung</h1>
<div class="text-black dark:text-white">
<table id="basic"> <table id="basic">
<thead> <thead>
<tr> <tr>
@ -18,7 +34,11 @@
<td>{{ boat.location }}</td> <td>{{ boat.location }}</td>
{% for year in stat.pot_years | sort | reverse %} {% for year in stat.pot_years | sort | reverse %}
<td> <td>
{% if year~'' in boat.years %}{{ boat.years[year] }}{% endif %} {% if year~'' in boat.years %}
{{ boat.years[year] }}
{% else %}
0
{% endif %}
</td> </td>
{% endfor %} {% endfor %}
</tr> </tr>
@ -26,6 +46,14 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
<script src="/public/jstable.min.js"></script> <script src="/public/jstable.min.js"></script>
<script>new JSTable("#basic");</script> <script>new JSTable("#basic", {
{% endblock content %} perPage: 100,
perPageSelect: [10,100],
labels: {
placeholder: 'Suchen (zB "Linz")'
}
});
</script>
{% endblock content %}