Aug 7 - Update remove the dashboard inspector activity

This commit is contained in:
2026-08-07 13:17:00 -04:00
parent 4db06b6139
commit 1741c194f2
4 changed files with 2 additions and 130 deletions
-49
View File
@@ -280,55 +280,6 @@
{% endif %}
</div>
{# ── Inspector activity today (admin / director / PM) ─────────────────── #}
{% if inspector_activity %}
<div class="jqc-card">
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="jqc-card-title mb-0">
<span class="jqc-tile-icon"><i class="bi bi-people"></i></span>Inspector Activity Today
</div>
<a href="{{ url_for('inspections.index', date_from=today_str, date_to=today_str) }}"
class="btn btn-sm btn-outline-primary">View all</a>
</div>
<div class="jqc-table-wrap table-responsive">
<table class="table table-hover mb-0">
<thead>
<tr>
<th>Inspector</th>
<th class="text-center" style="width:150px;">Submitted Today</th>
<th style="width:220px;"></th>
</tr>
</thead>
<tbody>
{% for row in inspector_activity %}
<tr>
<td>{{ row.name }}
{% if row.external %}
<span class="badge bg-dark ms-1" title="Customer / third-party inspector">External</span>
{% endif %}
</td>
<td class="text-center">
{% if row.count > 0 %}
<span class="badge bg-success">{{ row.count }}</span>
{% else %}
<span class="text-muted"></span>
{% endif %}
</td>
<td>
<div class="progress" style="height:6px;">
{% set max_count = inspector_activity | map(attribute='count') | max %}
{% set pct = (row.count / max_count * 100) | int if max_count > 0 else 0 %}
<div class="progress-bar bg-success" style="width:{{ pct }}%;"></div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{# ── My open issues (inspector widget) ────────────────────────────────── #}
{% if my_issues %}
<div class="jqc-card">