06/08 Add Inspector filter in Reports page

This commit is contained in:
2026-06-08 09:43:52 -04:00
parent 0ef0a4c388
commit 26d9901d6a
2 changed files with 43 additions and 7 deletions
+13
View File
@@ -39,6 +39,19 @@
<input type="date" name="end" class="form-control form-control-sm"
value="{{ end.strftime('%Y-%m-%d') }}">
</div>
{% if inspectors %}
<div class="col-md-3">
<label class="form-label small mb-1">Inspector</label>
<select name="inspector_id" class="form-select form-select-sm">
<option value="">All Inspectors</option>
{% for u in inspectors %}
<option value="{{ u.id }}" {% if inspector_filter == u.id %}selected{% endif %}>
{{ u.display_name }}
</option>
{% endfor %}
</select>
</div>
{% endif %}
<div class="col-auto">
<button class="btn btn-sm btn-primary">Apply</button>
<a href="{{ url_for('reports.index') }}" class="btn btn-sm btn-outline-secondary">Reset</a>