{% if nanofab_occupants|length == 0 %} Nobody is in an access controlled NanoFab area. {% else %} Staff members are highlighted in green.
{% regroup nanofab_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.list|length >= area.grouper.danger_capacity %} {% elif area.grouper.maximum_capacity != 0 and area.list|length >= area.grouper.warning_capacity %} {% else %}{% endif %} {{ area.list|length }} {% if area.grouper.maximum_capacity != 0 %} / {{ area.grouper.maximum_capacity }}{% endif %} people {% 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 }} |