From c1ebeabe0ae0eb935b1bc24f94faa93b48e61065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 31 Jul 2025 13:22:29 +0200 Subject: [PATCH] kategorie w listach --- templates/list.html | 14 ++++++++++++++ templates/list_share.html | 11 +++++++++++ 2 files changed, 25 insertions(+) diff --git a/templates/list.html b/templates/list.html index 3ddae8a..0607cde 100644 --- a/templates/list.html +++ b/templates/list.html @@ -8,6 +8,20 @@ {% if list.is_archived %} (Archiwalna) {% endif %} + + {# Kategorie #} + {% if list.categories %} + {% for cat in list.categories %} + + {{ cat.name }} + + {% endfor %} + {% else %} + + ➕ Dodaj kategorię + + {% endif %} ← Powrót do list diff --git a/templates/list_share.html b/templates/list_share.html index 1675385..b013a2b 100644 --- a/templates/list_share.html +++ b/templates/list_share.html @@ -8,6 +8,7 @@ {% if list.is_archived %} (Archiwalna) {% endif %} + {% if total_expense > 0 %} 💸 {{ '%.2f'|format(total_expense) }} PLN @@ -17,8 +18,18 @@ 💸 0.00 PLN {% endif %} + + {# Kategorie - tylko wyświetlenie, bez linków #} + {% if list.categories %} + {% for cat in list.categories %} + + {{ cat.name }} + + {% endfor %} + {% endif %} +