{% with four_column_class="col-lg-3" three_column_class="col-lg-4" two_column_class="col-lg-6" one_column_class="col-md-12 col-lg-offset-3 col-lg-6" %} {% if areas_exist and display_occupancy %}
{% if not facility_occupants %}

Nobody is in an access controlled
{{ facility_name }} area

{% else %} {% regroup facility_occupants by area as area_occupants %}

Area occupancy

Staff members are highlighted in  green 
Service personnel are highlighted in  orange 
{% if reservations_can_expire %} Users with expired reservations are highlighted in  red 
{% endif %} Users logged in outside their allowed schedule are highlighted in  red 

{% for area in area_occupants %} {% include 'occupancy/occupancy_content.html' with area=area.grouper occupants=area.list transparent_bg=True center_th=True %} {% endfor %}
{% endif %}
{% endif %} {% if tools_exist and display_usage %}
{% if usage_events %}

Tool usage

{% if usage_events|length > 1 %}{{ usage_events|length }} tools are in use{% endif %}  

{# Panel is used to make table borders rounded. #}
{% for u in usage_events %} {% endfor %}
Tool User In use since...
{{ u.tool }} {{ u.operator.first_name }} {{ u.operator.last_name }} {% if u.user != u.operator %}on behalf of {{ u.user.first_name }} {{ u.user.last_name }}{% endif %} {{ u.start|date:"MONTH_DAY_FORMAT" }} @ {{ u.start|time }}
{% else %}

No {{ facility_name }} tools are in use

{% endif %}
{% endif %} {% if tools_exist and display_reservations %}
{% if reservations %}

Upcoming {% if display_current_reservations %}& current{% endif %} reservations

{# Panel is used to make table borders rounded. #}
{% for r in reservations %} {% endfor %}
Tool / Area User Start End
{% if r.tool %}{{ r.tool }}{% endif %} {% if r.area %}{{ r.area }}{% endif %} {% if r.title %}
{{ r.title }} {% endif %}
{{ r.user.first_name }} {{ r.user.last_name }} {{ r.start|date:"MONTH_DAY_FORMAT" }} @ {{ r.start|time }} {{ r.end|date:"MONTH_DAY_FORMAT" }} @ {{ r.end|time }}
{% else %}

No {{ facility_name }} tools or areas have upcoming reservations.

{% endif %}
{% endif %} {% if alerts or disabled_resources or scheduled_outages %}

Alerts and outages

{# For spacing #} 

{% for a in alerts %}
{% if a.title %} {{ a.title }}
{% endif %} {{ a.contents|safe|linebreaksbr }}
{% endfor %} {% for r in disabled_resources %}
Resource outage: {{ r }}
{{ r.restriction_message }}
{% endfor %} {% for so in scheduled_outages %}
{{ so.title }}
{% if so.area %}Area: {{ so.area.name }}{% endif %} {% if so.resource %}Resource: {{ so.resource.name }}{% endif %} {% if so.tool %}Tool: {{ so.tool.name }}{% endif %}
{{ so.details }}
{{ so.start|date:"MONTH_DAY_FORMAT" }} @ {{ so.start|time }} to {{ so.end|date:"MONTH_DAY_FORMAT" }} @ {{ so.end|time }}
{% endfor %}
{% endif %} {% endwith %}