From a364b38651027b33c9c0c3c3c5d424f3130cd8ea Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 18 Apr 2023 10:35:12 +0200 Subject: [PATCH] Update snapshot table --- nummi/main/templates/main/table/snapshot.html | 104 ++++++++++-------- .../templates/main/table/transaction.html | 18 +-- 2 files changed, 72 insertions(+), 50 deletions(-) diff --git a/nummi/main/templates/main/table/snapshot.html b/nummi/main/templates/main/table/snapshot.html index 5ada940..de5cd50 100644 --- a/nummi/main/templates/main/table/snapshot.html +++ b/nummi/main/templates/main/table/snapshot.html @@ -1,56 +1,74 @@ {% load main_extras %} {% load i18n %} -
-
- - - {% translate "Date" %} - {% if not account %} - - {% endif %} - {% translate "Value" %} - {% translate "Difference" %} - {% translate "Transactions" %} -
+
+ + + + + {% if not account %} + + + {% endif %} + + + + + + + {% if not account %} + + {% endif %} + + + + + + {% for snap in snapshots %} + + + + + {% if not account %} + + + + + + {% endif %} + + {% endfor %} + +
+ + + + {% translate "Date" %}{% translate "Account" %}{% translate "Value" %}{% translate "Difference" %}{% translate "Transactions" %}
+ + + {% if snap.file %} + + + + {% endif %} + + {{ snap.date|date:"Y-m-d" }} + + + + {{ snap.account }} + {{ snap.value|value }}{{ snap.diff|pmvalue }}{{ snap.sum|pmvalue }}
+
+{% comment %} + +{% endcomment %} diff --git a/nummi/main/templates/main/table/transaction.html b/nummi/main/templates/main/table/transaction.html index 7bb1c5b..7d7ac59 100644 --- a/nummi/main/templates/main/table/transaction.html +++ b/nummi/main/templates/main/table/transaction.html @@ -3,15 +3,19 @@
- + - - - - + {% if not category %} + + + {% endif %} + {% if not account %} + + + {% endif %} {% else %} @@ -62,7 +66,7 @@ {% endif %}
@@ -50,7 +54,7 @@ - {{ trans.category }} + {{ trans.category }} - {{ trans.account }} + {{ trans.account }}