{% extends "base.html" %} {% block title %}{{ facility.name }} — Scorecard{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Facility Scorecard — last {{ days }} days
No completed inspections in this period.
{% endif %}| Area | Avg Score | Inspections |
|---|---|---|
| {{ a.name }} | {{ a.avg|round(1) }}% | {{ a.count }} |
| Inspection | Date | Score | |
|---|---|---|---|
| #{{ insp.id }} — {{ insp.template.name }} | {{ insp.inspection_date.strftime('%Y-%m-%d') }} | {% if insp.overall_score %} {{ insp.overall_score|round(1) }}% {% else %}—{% endif %} | View |
| ID | Severity | Area | Description | Status | Reported | |
|---|---|---|---|---|---|---|
| #{{ issue.id }} | {{ issue.severity|title }} | {{ issue.area.name }} | {{ issue.description[:80] }}{% if issue.description|length > 80 %}…{% endif %} | {{ issue.status|replace('_',' ')|title }} | {{ issue.reported_at.strftime('%Y-%m-%d') }} | View |