From 28e4ef9659031b2e8c8237ae77aaa1a592130544 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Tue, 24 Dec 2024 12:40:14 -0300 Subject: [PATCH] feat(cotton): add percentage_distribution component --- .../cotton/ui/percentage_distribution.html | 31 +++++++++++++++++++ .../fragments/monthly_summary.html | 31 +------------------ .../fragments/account_data.html | 31 +------------------ .../fragments/currency_data.html | 31 +------------------ 4 files changed, 34 insertions(+), 90 deletions(-) create mode 100644 app/templates/cotton/ui/percentage_distribution.html diff --git a/app/templates/cotton/ui/percentage_distribution.html b/app/templates/cotton/ui/percentage_distribution.html new file mode 100644 index 0000000..461efed --- /dev/null +++ b/app/templates/cotton/ui/percentage_distribution.html @@ -0,0 +1,31 @@ +{% load i18n %} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/app/templates/monthly_overview/fragments/monthly_summary.html b/app/templates/monthly_overview/fragments/monthly_summary.html index ff75e81..5089391 100644 --- a/app/templates/monthly_overview/fragments/monthly_summary.html +++ b/app/templates/monthly_overview/fragments/monthly_summary.html @@ -283,34 +283,5 @@ {% for p in percentages.values %} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {% endfor %} diff --git a/app/templates/yearly_overview/fragments/account_data.html b/app/templates/yearly_overview/fragments/account_data.html index 6ebc46b..34b8698 100644 --- a/app/templates/yearly_overview/fragments/account_data.html +++ b/app/templates/yearly_overview/fragments/account_data.html @@ -175,36 +175,7 @@ {% endif %} {% with p=percentages|get_dict_item:account_id %} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {% endwith %} {% empty %} {% with p=percentages|get_dict_item:currency_id %} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {% endwith %} {% empty %}