{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %} {# ── Header ── #}
Facility Status

{{ facility.name }}

{% if facility.address %}
{{ facility.address }}
{% endif %}
{# ── Quality rating ── #}
Cleaning Quality
{{ rating_label }}
{{ ('%.0f' % avg_score) ~ '%' if avg_score is not none else '—' }}
Average score, last 90 days
{# ── Facts ── #}
Last Inspected
{{ last_inspected.strftime('%b %d, %Y') if last_inspected else 'Not yet' }}
{% if last_score is not none %}
Scored {{ '%.0f' % last_score }}%
{% endif %}
Open Issues
{{ open_issue_count }}
Currently being tracked
{# ── Report a problem ── #}

Report a Problem

Notice something that needs attention? Let the cleaning team know.

{{ form.hidden_tag() }} {# Honeypot — hidden from humans; bots that fill it are rejected #}
{{ form.area_label.label(class="form-label small fw-semibold") }} {{ form.area_label(class="form-control", placeholder="e.g. 2nd floor men's restroom") }}
{{ form.description.label(class="form-label small fw-semibold") }} {{ form.description(class="form-control", rows="4", placeholder="Describe what you noticed…") }} {% for e in form.description.errors %}
{{ e }}
{% endfor %}
{{ form.reporter_name.label(class="form-label small fw-semibold") }} {{ form.reporter_name(class="form-control") }}
{{ form.reporter_contact.label(class="form-label small fw-semibold") }} {{ form.reporter_contact(class="form-control") }}
{{ form.photo.label(class="form-label small fw-semibold") }} {{ form.photo(class="form-control", accept="image/*") }} {% for e in form.photo.errors %}
{{ e }}
{% endfor %}
Janitorial Quality Control