{% load static %} {% load custom_tags %} {% load bootstrap5 %}
| Veranstaltungen | {% for day, date in days_with_dates %}{{ day }} {{ date }} | {% endfor %}|
|---|---|---|
| {{ location.name }} | {% for day, date in days_with_dates %} {% with event=events|get_item:forloop.counter0 %} {% if event == None %}{% else %} | {% if event.name %} {{ event.name }} {% else %} F {% endif %} | {% endif %} {% endwith %} {% endfor %}
| Mitarbeiter | {% for day, date in days_with_dates %}{{ day }} {{ date }} | {% endfor %}|
| {{ employee.name }} | {% for day, date in days_with_dates %} {% with shift=shifts|get_item:forloop.counter0 %} {% if shift == None %}F | {% else %}{% if shift.start and shift.end %} {{ shift.start|time:"H:i" }} - {{ shift.end|time:"H:i" }} {% else %} {{ shift.get_shifttype_display }} {% endif %} | {% endif %} {% endwith %} {% endfor %}