From 39896129a63c9afeee16ece0b82081a9f854b135 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sat, 31 Dec 2022 11:28:39 +0100 Subject: [PATCH] Update account snapshot list --- nummi/main/templates/main/account_form.html | 3 +++ nummi/main/views.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/nummi/main/templates/main/account_form.html b/nummi/main/templates/main/account_form.html index 0694c58..fb84bc9 100644 --- a/nummi/main/templates/main/account_form.html +++ b/nummi/main/templates/main/account_form.html @@ -19,5 +19,8 @@ {% csrf_token %} {{ form }} +

{% translate "Statements" %}

+ {% include "main/table/snapshot.html" %} +

{% translate "Transactions" %}

{% include "main/table/transaction.html" %} {% endblock %} diff --git a/nummi/main/views.py b/nummi/main/views.py index ca90654..c20f239 100644 --- a/nummi/main/views.py +++ b/nummi/main/views.py @@ -128,6 +128,8 @@ class AccountUpdateView(NummiUpdateView): "transactions_url": reverse_lazy( "account_transactions", args=(account.pk,) ), + "snapshots": account.snapshot_set.all()[:8], + "snapshots_url": reverse_lazy("account_snapshots", args=(account.pk,)), }