{# Obliczenia wstępne (do inicjalnego podglądu) #}
- {% set has_cel = (zbiorka.cel is defined and zbiorka.cel and zbiorka.cel > 0) %}
+ {% set has_cel = (zbiorka.cel is defined and zbiorka.cel and zbiorka.cel > 0 and zbiorka.typ_zbiorki != 'rezerwa') %}
{% set progress = (zbiorka.stan / zbiorka.cel * 100) if has_cel else 0 %}
- {% set progress_clamped = 100 if progress > 100 else (0 if progress < 0 else progress) %}
+ {% set progress_clamped = 100 if progress > 100 else (0 if progress < 0 else progress) %}
+
+
Edytuj stan: {{ zbiorka.nazwa }}
@@ -43,17 +45,18 @@
-
+
+ {% if zbiorka.typ_zbiorki != 'rezerwa' %}
-
Aktualnie: {{ progress|round(1) }}%
+ {% endif %}
-
+
-
+
+ {% if zbiorka.typ_zbiorki != 'rezerwa' %}
@@ -106,6 +106,7 @@
{% if has_cel %}
+ {% set brakujace = (zbiorka.cel - zbiorka.stan) %}
{% if brakujace > 0 %}
Do celu brakuje: {{ brakujace|round(2) }} PLN
{% elif brakujace == 0 %}
@@ -121,6 +122,7 @@
+ {% endif %}
@@ -129,11 +131,11 @@
-
+
{% endblock %}
{% block extra_scripts %}
{{ super() }}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/templates/admin/lista_rezerwowych.html b/templates/admin/lista_rezerwowych.html
index 2023f58..3f5fadf 100644
--- a/templates/admin/lista_rezerwowych.html
+++ b/templates/admin/lista_rezerwowych.html
@@ -116,19 +116,19 @@