{% load custom_tags_and_filters %} {% load tz %} {% if staffs %}
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 %} {% url 'status_dashboard_tab' 'staff' as staff_status_url %} {% button style="margin-left: 10px" value="Export" type="export" url=staff_status_url|concat:"?timestamp="|concat:page_timestamp|concat:"&view="|concat:page_view|concat:"&csv=true" role="button" target="_blank" %} {% 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 %} {% with start_closure_time=closure_time.start_time|localtime end_closure_time=closure_time.end_time|localtime %} {% endwith %} {% 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 user.is_facility_manager %} {% if "dashboard"|customization:"dashboard_staff_status_absence_view_staff" and user.is_staff or "dashboard"|customization:"dashboard_staff_status_absence_view_user_office" and user.is_user_office or "dashboard"|customization:"dashboard_staff_status_absence_view_accounting_officer" and user.is_accounting_officer %}
{{ staff_absent.absence_type.name }}
{% else %}
 
{% endif %} {% else %}
{{ staff_absent.absence_type.name }}
{% endif %} {% elif staff_available %}
 
{% endif %}
{% endif %}