{% load static %} {% load custom_tags %} {% load bootstrap5 %}
| Employee | {% 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 %}