06/09 Add Inspector Performance export to excel function

This commit is contained in:
2026-06-09 11:08:37 -04:00
parent a517f495fe
commit 711ecb8d27
3 changed files with 288 additions and 14 deletions
@@ -35,6 +35,15 @@
<h2><i class="bi bi-person-lines-fill"></i> Inspector Performance</h2>
<p class="text-muted mb-0">{{ start.strftime('%b %d, %Y') }} — {{ end.strftime('%b %d, %Y') }}</p>
</div>
<div>
<a href="{{ url_for('reports.export_inspector_performance',
start=start.strftime('%Y-%m-%d'),
end=end.strftime('%Y-%m-%d'),
**({'inspector_id': selected_id} if selected_id else {})) }}"
class="btn btn-sm btn-success">
<i class="bi bi-file-earmark-spreadsheet me-1"></i>Export Excel
</a>
</div>
</div>
{# ── Date filter ── #}