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

Dienstplan für KW {{ calendar_week }} - {{ start_of_week }} bis {{ end_of_week }}

{% 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 %}
Employee{{ 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 %}