{% extends 'swimmonitor/base.html.twig' %} {% set months = ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] %} {% set month_label = months[month|date('n') - 1] ~ ' ' ~ month|date('Y') %} {% block title %}Betriebstagebuch {{ container.name }} · {{ month_label }}{% endblock %} {% block breadcrumb %}
{{ container.name }} · {{ month_label }} · erstellt {{ 'now'|date('d.m.Y H:i', 'Europe/Berlin') }} Uhr
| Tag | {% for meta in logbook.values %}{{ meta.name }}{% if meta.unit %} ({{ meta.unit }}){% endif %} | {% endfor %}Abdeckung | Alarme | Handmessung | ||
|---|---|---|---|---|---|---|
| min | Ø | max | {% endfor %}||||
| {{ day.date|date('d.m.') }} {{ ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'][day.date|date('N') - 1] }} | {% for role, meta in logbook.values %} {% set v = day.values[role] ?? null %}{{ m.num(v.min ?? null, meta.digits) }} | {{ m.num(v.mean ?? null, meta.digits) }} | {{ m.num(v.max ?? null, meta.digits) }} | {% endfor %}{{ day.coverage is null ? '–' : day.coverage ~ ' h' }} | {% if day.alarms is empty %}–{% else %} {% for a in day.alarms|slice(0, 4) %}{{ a.sensorName }} {% endfor %} {% if day.alarms|length > 4 %}+{{ day.alarms|length - 4 }}{% endif %} {{ (day.alarmMinutes / 60)|round(1)|number_format(1, ',', '.') }} h {% endif %} |
{% for w in day.manual %}
{{ w.measuredAt|date('H:i', 'Europe/Berlin') }}: pH {{ w.ph ?? '–' }} · Cl frei {{ w.chlorineFree ?? '–' }} · geb. {{ w.chlorineCombined ?? '–' }} · ges. {{ w.chlorineTotal ?? '–' }}
{% else %}–{% endfor %}
|
Geprüft: ______________________ Datum: ____________ Unterschrift: ______________________
{% endblock %} {% block stylesheets %} {% endblock %}