diff --git a/expenses_manager/expenses/templates/expenses/dashboard.html b/expenses_manager/expenses/templates/expenses/dashboard.html index d8ef8ee..7486847 100644 --- a/expenses_manager/expenses/templates/expenses/dashboard.html +++ b/expenses_manager/expenses/templates/expenses/dashboard.html @@ -15,7 +15,7 @@ -
+ - + + +
-
+

+ Mostrando: + {{ selected_year }} + {% if selected_month %}/{{ selected_month }}{% endif %} +

+ +
+ + + + + + +
+ +
+

Total

+

{{ kpi_total }}

+
+ +
+

Nº de gastos

+

{{ kpi_count }}

+
+ +
+

Categorías

+

{{ kpi_categories }}

+
+
+ + {% if compare_enabled %} +
+

Comparación con periodo anterior

+ +

+ Total anterior: {{ kpi_previous_total|floatformat:2 }} +

+

+ Diferencia: + {% if kpi_difference > 0 %} + + {% elif kpi_difference < 0 %} + + {% endif %} + {{ kpi_difference|floatformat:2 }} +

+

+ Variación: + {% if kpi_percentage is not None %} + {{ kpi_percentage|floatformat:2 }}% + {% else %} + Variación: N/D + {% endif %} +

+
+ {% endif %}

Gastos por categoría

- - + + + + + + + + + + {% for row in by_category %} + + + + + {% empty %} + + + + {% endfor %} + +
CategoríaTotal
{{ row.category__name }}{{ row.total }}
Sin datos

@@ -70,23 +145,17 @@

Gastos por mes

-
- - - +

Distribución mensual (año completo)

+