{% if facility_occupants|length == 0 %} Nobody is in an access controlled {{ facility_name }} area. {% else %} Staff members are highlighted in green.
{% regroup facility_occupants|dictsort:"area.name" by area as area_occupants %} {% for area in area_occupants %} {# Panel is used to make table borders rounded. #}
{{ area.grouper }} {% if area.list|length > 1 %} {% if area.grouper.maximum_capacity != 0 and area.grouper.occupancy_count >= area.grouper.danger_capacity %} {% elif area.grouper.maximum_capacity != 0 and area.grouper.occupancy_count >= area.grouper.warning_capacity %} {% else %}{% endif %} {{ area.grouper.occupancy_count }} {% if area.grouper.maximum_capacity != 0 %} / {{ area.grouper.maximum_capacity }}{% endif %} people {% if area.list|length != area.grouper.occupancy_count %} {% with occupancy=area.grouper.occupancy_count|stringformat:"d" %} {% with negative_occupancy="-"|add:occupancy %} (+ {{ area.list|length|add:negative_occupancy }} staff) {% endwith %} {% endwith %} {% endif %} {% endif %} | |||
---|---|---|---|
User | Since | Working on project... | |
{% if user.is_staff %} {% endif %} {{ o.customer.first_name }} {{ o.customer.last_name }} | {{ o.start|date:"l @ g:i A" }} | {{ o.project }} |