{% load custom_tags_and_filters %}
Staff availability is highlighted in green
Staff partial availability is highlighted in orange
Staff absence is highlighted in red
{% if user.is_facility_manager %} Export {% endif %}
{% for day in days %} {% now 'Y-m-d' as today %} {% endfor %} {% regroup staffs by category as category_staff %} {% for category in category_staff %} {% for staff in category.list %} {% for day in days %} {% with staff_available=staff.weekly_availability|get_item:day.weekday staff_absent=staff_absences|get_item:staff.id|get_item:day.day closure_time=closure_times|get_item:day.day %} {% endwith %} {% endfor %} {% endfor %} {% endfor %}
{{ day|date:staff_date_format }}
{{ category.grouper|default_if_none:'Other' }}
{{ staff.staff_member.get_contact_info_html|safe }}
{% if user.is_facility_manager %}{% endif %}
{% if closure_time %}
Closed
{% elif staff_absent %} {% if not staff_absent.full_day and not user.is_facility_manager %}
 
{% elif user.is_facility_manager %}
{{ staff_absent.absence_type.name }}
{% endif %} {% elif staff_available %}
 
{% endif %}