{% extends "base.html" %} {% block title %}{{ facility.name }} — Facility Report{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ start.strftime('%b %d, %Y') }} — {{ end.strftime('%b %d, %Y') }}
Total Inspections
Completed
Open Issues
Avg Score
{% if avg %} {% set avg_val = (avg | map('float') | sum) / avg|length %}| Date | Area | Template | Inspector | Score | Status | |
|---|---|---|---|---|---|---|
| {{ ins.inspection_date.strftime('%Y-%m-%d %H:%M') }} | {{ ins.area.name if ins.area else '—' }} | {{ ins.template.name }} | {{ ins.inspector.username }} | {% if ins.overall_score %} {{ ins.overall_score }}% {% else %}—{% endif %} | {{ ins.status|replace('_',' ')|title }} | View |
No inspections in this date range.
| Severity | Area | Description | Reported | |
|---|---|---|---|---|
| {{ issue.severity|title }} | {{ issue.area.name }} | {{ issue.description[:60] }}{% if issue.description|length > 60 %}…{% endif %} | {{ issue.reported_at.strftime('%Y-%m-%d') }} | View |