{% if projects %} {% for item in projects %} {% set p = item.project %} {% set mods = item.modules or [] %} {% set mstatus = item.module_status or {} %} {% set has_sound = 'sound_monitoring' in mods %} {% set has_vib = 'vibration_monitoring' in mods %}

{{ p.name }}

{% set idbits = [] %} {% if p.project_number %}{% set _ = idbits.append(p.project_number) %}{% endif %} {% if p.client_name %}{% set _ = idbits.append(p.client_name) %}{% endif %} {% if idbits %}

{{ idbits | join(' · ') }}

{% endif %}
{% if p.status == 'active' %} Active {% elif p.status == 'upcoming' %} Upcoming {% elif p.status == 'on_hold' %} On Hold {% elif p.status == 'completed' %} Completed {% elif p.status == 'archived' %} Archived {% endif %}
{% if mods %}
{% for m in mods %} {% set st = mstatus.get(m, 'active') %} {% if m == 'sound_monitoring' %} Sound {% elif m == 'vibration_monitoring' %} Vibration {% else %}{{ m }}{% endif %} {% if st == 'completed' %} {% elif st == 'on_hold' %}{% endif %} {% endfor %}
{% endif %} {% if p.description %}

{{ p.description }}

{% endif %}

Locations

{{ item.location_count }}

Units

{{ item.unit_count }}

Active

{{ item.active_session_count }}

{% if has_sound or has_vib %}
{% if has_sound %} Sound {% endif %} {% if has_vib %} Vibration {% endif %}
{% endif %}
{% endfor %} {% else %}

No projects found

Create your first project to get started

{% endif %}