This commit is contained in:
Flatlogic Bot 2026-01-26 14:47:48 +00:00
parent 1dfb7ebbf1
commit e0d1690e97

View File

@ -23,10 +23,24 @@
</div> </div>
</div> </div>
{% else %} {% else %}
<div class="row mb-4"> <div class="row mb-3 align-items-center">
<div class="col-12"> <div class="col-12">
<h1 class="display-5 fw-bold text-dark">{{ selected_tenant.name }} Dashboard</h1> <h1 class="display-5 fw-bold text-dark">{{ selected_tenant.name }} Dashboard</h1>
<p class="lead text-muted">Overview of voter engagement and field operations.</p> <p class="lead text-muted mb-0">Overview of voter engagement and field operations.</p>
</div>
</div>
<div class="row mb-4">
<div class="col-12 col-md-8 col-lg-6">
<form action="{% url 'voter_list' %}" method="GET" class="w-100">
<div class="input-group shadow-sm">
<span class="input-group-text bg-white border-end-0">
<i class="bi bi-search text-muted"></i>
</span>
<input type="text" name="q" class="form-control border-start-0 ps-0" placeholder="Search voters by name..." aria-label="Search voters">
<button class="btn btn-primary px-4" type="submit">Search</button>
</div>
</form>
</div> </div>
</div> </div>
@ -110,15 +124,11 @@
<div class="card-body p-4"> <div class="card-body p-4">
<h6 class="text-uppercase fw-bold small text-muted mb-1">Donation Goal</h6> <h6 class="text-uppercase fw-bold small text-muted mb-1">Donation Goal</h6>
<div class="d-flex justify-content-between align-items-end mb-2"> <div class="d-flex justify-content-between align-items-end mb-2">
<h4 class="mb-0 fw-bold">${{ metrics.total_donations|floatformat:0 }}</h4> <h4 class="mb-0 fw-bold text-success">{{ metrics.donation_percentage }}%</h4>
<small class="text-muted">of ${{ metrics.donation_goal|floatformat:0 }}</small>
</div> </div>
<div class="progress" style="height: 10px;"> <div class="progress" style="height: 10px;">
<div class="progress-bar bg-success" role="progressbar" style="width: {{ metrics.donation_percentage }}%" aria-valuenow="{{ metrics.donation_percentage }}" aria-valuemin="0" aria-valuemax="100"></div> <div class="progress-bar bg-success" role="progressbar" style="width: {{ metrics.donation_percentage }}%" aria-valuenow="{{ metrics.donation_percentage }}" aria-valuemin="0" aria-valuemax="100"></div>
</div> </div>
<div class="text-end mt-1">
<small class="fw-bold text-success">{{ metrics.donation_percentage }}%</small>
</div>
</div> </div>
</div> </div>
</div> </div>