rowt/templates/stat.boats.html.tera

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-10-31 16:07:15 +01:00
{% import "includes/macros" as macros %}
{% extends "base" %}
{% block content %}
<div class="max-w-screen-lg w-full">
2023-10-31 20:29:33 +01:00
<h1 class="h1">Bootsauswertung</h1>
2023-11-04 19:33:36 +01:00
<div class="search-wrapper">
2023-10-31 16:07:15 +01:00
<label for="name" class="sr-only">Suche</label>
2023-11-04 19:33:36 +01:00
<input type="search" name="name" id="filter-js" class="search-bar" placeholder="Suchen nach Bootsnamen...">
2023-10-31 16:07:15 +01:00
</div>
2023-11-04 19:33:36 +01:00
<div id="filter-result-js" class="search-result"></div>
2023-10-31 16:07:15 +01:00
2023-11-04 19:33:36 +01:00
<div class="border-r border-l border-gray-200 dark:border-primary-600">
2023-10-31 16:07:15 +01:00
{% set_global km = 0 %}
{% set_global index = 1 %}
{% for s in stat %}
2023-11-04 19:33:36 +01:00
<div class="border-t border-gray-200 dark:border-primary-600 {% if loop.last %} border-b {% endif %} bg-white dark:bg-primary-900 text-black dark:text-white flex justify-between items-center px-3 py-1" data-filterable="true" data-filter="{{ s.name }}">
<span class="text-sm text-gray-600 dark:text-gray-100 w-10">
2023-10-31 16:07:15 +01:00
{% if km != s.rowed_km %}
{{loop.index}}
{% set_global index = loop.index %}
{% else %}
{{ index }}
{% endif %}
</span>
<span class="grow">{{s.name}}</span>
<span>{{s.rowed_km}}
km</span>
{% set_global km = s.rowed_km %}
</div>
{% endfor %}
</div>
<div id="container" class="w-full"></div>
</div>
<script src="/public/logbook.js"></script>
{% endblock content%}