{% load custom_tags_and_filters %}
Staff availability is highlighted in green
Staff partial availability is highlighted in orange
Staff absence is highlighted in red

Extra information (if available) can be found by hovering over a time block
Clicking on a staff member will display their contact information
{% if user_view != 'day' %}
{% if not user_view %} {% endif %}
{% if user.is_facility_manager %} Export {% endif %}
{% endif %}
{% if prev %} {% endif %} {% for day in days %} {% now 'Y-m-d' as today %} {% endfor %} {% if next %} {% endif %} {% regroup staffs by category as category_staff %} {% for category in category_staff %} {% if next or days_length != 1 %}{% endif %} {% 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 %} {% with custom_data_template="" %}
Closed
{% endwith %} {% 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 %}