From 2993ead631a0963f8d09e26b4dea9dcdfc1af07b Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 14 Dec 2024 11:07:27 -0300 Subject: [PATCH] refactor(networth): add functions for interacting with charts --- app/templates/net_worth/net_worth.html | 91 ++++++++++++-------------- 1 file changed, 41 insertions(+), 50 deletions(-) diff --git a/app/templates/net_worth/net_worth.html b/app/templates/net_worth/net_worth.html index 51633e6..f047a25 100644 --- a/app/templates/net_worth/net_worth.html +++ b/app/templates/net_worth/net_worth.html @@ -21,31 +21,14 @@
+ _="on click showAllDatasetsCurrency()"> {% translate 'By currency' %}
{% for currency in currency_net_worth.values %}
+ _="on click showOnlyCurrencyDataset('{{ currency.currency.name }}')"> {{ currency.currency.name }}
@@ -83,13 +66,7 @@
+ _="on click showAllDatasetsAccount()"> {% translate 'By account' %}
{% regroup account_net_worth.values by account.group as account_data %} @@ -105,18 +82,7 @@
@@ -144,18 +110,7 @@
@@ -301,4 +256,40 @@ }); + + {% endblock %}