drobne zmiany

This commit is contained in:
Mateusz Gruszczyński
2025-03-17 11:13:54 +01:00
parent 14bf893cb0
commit 26a9d803a1
4 changed files with 18 additions and 7 deletions

View File

@ -17,7 +17,7 @@
</div>
{% set progress = (zbiorka.stan / zbiorka.cel * 100) if zbiorka.cel > 0 else 0 %}
<h5>Postęp:</h5>
<div class="progress mb-3" style="height: 40px;">
<div class="progress mb-3">
<div class="progress-bar progress-bar-striped progress-bar-animated"
role="progressbar"
style="width: {{ progress if progress < 100 else 100 }}%;"
@ -46,11 +46,11 @@
<hr>
<p class="card-text">
<strong>Cel zbiórki:</strong>
<span class="fs-4">{{ zbiorka.cel }} PLN</span>
<span class="fs-4">{{ zbiorka.cel|round(2) }} PLN</span>
</p>
<p class="card-text">
<strong>Stan zbiórki:</strong>
<span class="fs-4">{{ zbiorka.stan }} PLN</span>
<span class="fs-4">{{ zbiorka.stan|round(2) }} PLN</span>
</p>
{% endif %}
</div>
@ -78,7 +78,7 @@
<ul class="list-group">
{% for w in zbiorka.wplaty %}
<li class="list-group-item">
<strong>{{ w.data.strftime('%Y-%m-%d %H:%M:%S') }}</strong> {{ w.kwota }} PLN
<strong>{{ w.data.strftime('%Y-%m-%d %H:%M:%S') }}</strong> {{ w.kwota|round(2) }} PLN
{% if w.opis %}
<em class="text-muted">({{ w.opis }})</em>
{% endif %}
@ -86,7 +86,7 @@
{% endfor %}
</ul>
{% else %}
<p class="text-center">Brak wpłat</p>
<p class="text-center">Aktualnie brak wpłat..</p>
{% endif %}
</div>
</div>