{% load static %} {% load custom_tags %} {% load bootstrap5 %} Schichten der aktuellen Woche {% bootstrap_css %}
Eine Woche zurück Aktuelle Woche
{% csrf_token %}
Eine Woche vorwärts

Dienstplan für KW {{ calendar_week }}

{% for day, date in days_with_dates %} {% endfor %} {% for location, events in events_by_location.items %} {% for day, date in days_with_dates %} {% with event=events|get_item:forloop.counter0 %} {% if event == None %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endfor %} {% for helper in helpers_by_date %} {% if helper == None %} {% else %} {% endif %} {% endfor %} {% for day, date in days_with_dates %} {% endfor %} {% for employee, shifts in shifts_by_employee.items %} {% for day, date in days_with_dates %} {% with shift=shifts|get_item:forloop.counter0 %} {% if shift == None %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endfor %}
Veranstaltungen{{ day }} {{ date }}
{{ location.name }} {% if event.name %} {{ event.name }} {% else %} F {% endif %}
Helfer -/- {% if helper.ben %} {{ helper.ben }} / {{ helper.best }} {% else %} -/- {% endif %}
Mitarbeiter{{ day }} {{ date }}
{{ employee.name }} F {% if shift.start and shift.end %} {{ shift.start|time:"H:i" }} - {{ shift.end|time:"H:i" }} {% else %} {{ shift.get_shifttype_display }} {% endif %}
{% bootstrap_javascript %}