first commit
This commit is contained in:
38
Base/templates/Dashboards/DashboardAdmin/total_banck.html
Normal file
38
Base/templates/Dashboards/DashboardAdmin/total_banck.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header ">
|
||||
<h3 class="h5 mb-0">Resumo por Banco</h3>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table">
|
||||
<tr>
|
||||
<th>Banco</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for name, value in total_bank.sum_total.items %}
|
||||
<tr>
|
||||
<td class="fw-bold ">{{ name }}</td>
|
||||
<td class="text-end ">R$ {{ value|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2" class="text-center text-muted py-4">
|
||||
<i>Nenhum dado encontrado.</i>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
{% if total_bank.sum_total %}
|
||||
<tfoot class="table-group-divider">
|
||||
<tr class="table">
|
||||
<td class="fw-bold">Total Geral</td>
|
||||
<td class="text-end fw-bold">R$ {{ total_bank.sum_all|floatformat:2 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user