{% extends "base.html" %} {% block title %}Follow-up Closure Rate{% endblock %} {% block content %} {# ── Sub-nav ── #} {% include 'reports/_subnav.html' %}

Follow-up Closure Rate

{{ start.strftime('%b %d, %Y') }} — {{ end.strftime('%b %d, %Y') }}  ·  Inspections flagged for follow-up and whether a re-inspection was completed.

Export Excel
{# ── Date filter ── #}
Reset
{# ── KPI row ── #}
Flagged for Follow-up
{{ total }}
inspections in period
Re-inspected
{{ closed }}
follow-up completed
Closure Rate
{{ rate|round(1) if rate is not none else '—' }}{% if rate is not none %}%{% endif %}
of flagged inspections re-done
{% if total == 0 %}
No inspections were flagged for follow-up in this period.
{% else %} {# ── By facility ── #} {% if by_facility %}
Closure Rate by Facility
{% for row in by_facility %} {% endfor %}
Facility Flagged Re-inspected Closure Rate Progress
{{ row.name }} {{ row.total }} {{ row.closed }} {{ row.rate }}%
{% endif %} {# ── Detail table ── #}
Inspection Detail {{ total }} flagged
{% for insp in flagged %} {% endfor %}
ID Date Facility Template Inspector Score Note Re-inspected?
#{{ insp.id }} {{ insp.inspection_date.strftime('%Y-%m-%d') if insp.inspection_date else '—' }} {{ insp.facility.name if insp.facility else '—' }} {{ insp.template.name if insp.template else '—' }} {{ insp.inspector.display_name if insp.inspector else '—' }} {% if insp.overall_score %} {{ insp.overall_score|round(1) }}% {% else %}—{% endif %} {{ insp.follow_up_note[:60] if insp.follow_up_note else '—' }} {% if insp.follow_up_note and insp.follow_up_note|length > 60 %}…{% endif %} {% if insp._has_followup %} Yes {% else %} No {% endif %}
{% endif %}{# end total == 0 #} {% endblock %}