Aug 5 - Update (new design) 3
This commit is contained in:
@@ -13,17 +13,17 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
{# Any non-empty query param other than the page number means the user has
|
||||||
|
actually filtered — used to show the match count only when it is meaningful. #}
|
||||||
|
{% set active_filters = [] %}
|
||||||
|
{% for _k, _v in request.args.items() %}
|
||||||
|
{% if _k != 'page' and _v %}{% set _ = active_filters.append(_k) %}{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{# ── Header ───────────────────────────────────────────────────────────── #}
|
{# ── Header ───────────────────────────────────────────────────────────── #}
|
||||||
<div class="d-flex flex-wrap justify-content-between align-items-end mb-4 gap-2">
|
<div class="d-flex flex-wrap justify-content-between align-items-end mb-4 gap-2">
|
||||||
<div>
|
<div>
|
||||||
<div class="jqc-page-title">Inspections</div>
|
<div class="jqc-page-title">Inspections</div>
|
||||||
<div class="jqc-page-sub">
|
|
||||||
{% if inspections.total %}
|
|
||||||
{{ inspections.total }} inspection{{ 's' if inspections.total != 1 }} matching your filters
|
|
||||||
{% else %}
|
|
||||||
No inspections match your filters
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% if current_user.role != 'customer' %}
|
{% if current_user.role != 'customer' %}
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@@ -125,6 +125,14 @@
|
|||||||
|
|
||||||
{# ── Results ──────────────────────────────────────────────────────────── #}
|
{# ── Results ──────────────────────────────────────────────────────────── #}
|
||||||
<div class="jqc-card">
|
<div class="jqc-card">
|
||||||
|
{% if active_filters %}
|
||||||
|
<div class="text-muted small mb-2">
|
||||||
|
<i class="bi bi-funnel me-1"></i>
|
||||||
|
{{ inspections.total }} inspection{{ 's' if inspections.total != 1 }} match
|
||||||
|
{{ 'es' if inspections.total == 1 }} your filters
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if inspections.items %}
|
{% if inspections.items %}
|
||||||
<div class="jqc-table-wrap table-responsive">
|
<div class="jqc-table-wrap table-responsive">
|
||||||
<table class="table table-hover mb-0">
|
<table class="table table-hover mb-0">
|
||||||
|
|||||||
@@ -12,17 +12,17 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
{# Any non-empty query param other than the page number means the user has
|
||||||
|
actually filtered — used to show the match count only when it is meaningful. #}
|
||||||
|
{% set active_filters = [] %}
|
||||||
|
{% for _k, _v in request.args.items() %}
|
||||||
|
{% if _k != 'page' and _v %}{% set _ = active_filters.append(_k) %}{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{# ── Header ───────────────────────────────────────────────────────────── #}
|
{# ── Header ───────────────────────────────────────────────────────────── #}
|
||||||
<div class="d-flex flex-wrap justify-content-between align-items-end mb-4 gap-2">
|
<div class="d-flex flex-wrap justify-content-between align-items-end mb-4 gap-2">
|
||||||
<div>
|
<div>
|
||||||
<div class="jqc-page-title">Issues</div>
|
<div class="jqc-page-title">Issues</div>
|
||||||
<div class="jqc-page-sub">
|
|
||||||
{% if issues.total %}
|
|
||||||
{{ issues.total }} issue{{ 's' if issues.total != 1 }} matching your filters
|
|
||||||
{% else %}
|
|
||||||
No issues match your filters
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% if current_user.role in ['admin','director','customer','auditor'] %}
|
{% if current_user.role in ['admin','director','customer','auditor'] %}
|
||||||
<a href="{{ url_for('issues.create') }}" class="btn btn-danger">
|
<a href="{{ url_for('issues.create') }}" class="btn btn-danger">
|
||||||
@@ -127,6 +127,14 @@
|
|||||||
|
|
||||||
{# ── Results ──────────────────────────────────────────────────────────── #}
|
{# ── Results ──────────────────────────────────────────────────────────── #}
|
||||||
<div class="jqc-card">
|
<div class="jqc-card">
|
||||||
|
{% if active_filters %}
|
||||||
|
<div class="text-muted small mb-2">
|
||||||
|
<i class="bi bi-funnel me-1"></i>
|
||||||
|
{{ issues.total }} issue{{ 's' if issues.total != 1 }} match
|
||||||
|
{{ 'es' if issues.total == 1 }} your filters
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if issues.items %}
|
{% if issues.items %}
|
||||||
<div class="jqc-table-wrap table-responsive">
|
<div class="jqc-table-wrap table-responsive">
|
||||||
<table class="table table-hover mb-0">
|
<table class="table table-hover mb-0">
|
||||||
|
|||||||
Reference in New Issue
Block a user