{% load static %} {% load custom_tags %} {% load bootstrap5 %} Schichten der aktuellen Woche {% bootstrap_css %}

Dienstplan für KW {{ calendar_week }} Eine Woche zurück Aktuelle Woche
{% csrf_token %}
Eine Woche vorwärts

{% 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 %} {% if user.is_superuser %} {% endif %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endfor %} {% for day in range_days %} {% if reinigungs_by_date|default_if_none:None %} {% if reinigungs_by_date|get_item:day %} {% with reinigung=reinigungs_by_date|get_item:day %} {% endwith %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %} {% for day in range_days %} {% if helpers_by_date|default_if_none:None %} {% if helpers_by_date|get_item:day %} {% with helper=helpers_by_date|get_item:day %} {% endwith %} {% else %} {% endif %} {% 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 %}
Reinigung {{ reinigung.auftrag }} ----
Helfer {{ helper.ben }}/{{ helper.best }} ----
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 %}