diff --git a/app/apps/monthly_overview/views/main.py b/app/apps/monthly_overview/views/main.py
index 2c50f18..e71f51e 100644
--- a/app/apps/monthly_overview/views/main.py
+++ b/app/apps/monthly_overview/views/main.py
@@ -263,42 +263,6 @@ def monthly_summary(request, month: int, year: int):
"daily_spending_allowance": daily_spending_allowance,
}
- # account_summary = (
- # Account.objects.annotate(
- # balance=Coalesce(
- # Sum(
- # Case(
- # When(
- # transaction__type=Transaction.Type.INCOME,
- # transaction__is_paid=True,
- # transaction__reference_date__year=year,
- # transaction__reference_date__month=month,
- # then=F("transaction__amount"),
- # ),
- # When(
- # transaction__type=Transaction.Type.EXPENSE,
- # transaction__is_paid=True,
- # transaction__reference_date__year=year,
- # transaction__reference_date__month=month,
- # then=-F("transaction__amount"),
- # ),
- # output_field=DecimalField(),
- # )
- # ),
- # Decimal(0),
- # )
- # )
- # .values(
- # "id",
- # "name",
- # "balance",
- # "currency__prefix",
- # "currency__suffix",
- # "currency__decimal_places",
- # )
- # .order_by("id")
- # )
-
return render(
request,
"monthly_overview/fragments/monthly_summary.html",
diff --git a/app/templates/account_groups/fragments/list.html b/app/templates/account_groups/fragments/list.html
index c28ee95..abaeb59 100644
--- a/app/templates/account_groups/fragments/list.html
+++ b/app/templates/account_groups/fragments/list.html
@@ -27,24 +27,27 @@
{% for account_group in account_groups %}
|
-
-
-
+ |
+ data-bs-title="{% translate "Edit" %}"
+ hx-get="{% url 'account_group_edit' pk=account_group.id %}"
+ hx-target="#generic-offcanvas">
+
+
+
+
{{ account_group.name }} |
{% endfor %}
diff --git a/app/templates/accounts/fragments/list.html b/app/templates/accounts/fragments/list.html
index cad0838..adc7b9c 100644
--- a/app/templates/accounts/fragments/list.html
+++ b/app/templates/accounts/fragments/list.html
@@ -31,27 +31,30 @@
{% for account in accounts %}
|
-
-
-
+ |
+ data-bs-title="{% translate "Edit" %}"
+ hx-get="{% url 'account_edit' pk=account.id %}"
+ hx-target="#generic-offcanvas">
+
+
+
+
{{ account.name }} |
- {{ account.currency }} ({{ account.currency.code }}) |
- {% if account.exchange_currency %}{{ account.exchange_currency }} (
+ | {{ account.currency }} ({{ account.currency.code }}) |
+ {% if account.exchange_currency %}{{ account.exchange_currency }} (
{{ account.exchange_currency.code }}){% else %}-{% endif %} |
{% if account.is_asset %}{% endif %} |
{% if account.is_archived %}{% endif %} |
diff --git a/app/templates/categories/fragments/list.html b/app/templates/categories/fragments/list.html
index 033f75a..6792536 100644
--- a/app/templates/categories/fragments/list.html
+++ b/app/templates/categories/fragments/list.html
@@ -20,36 +20,39 @@
|
- {% translate 'Muted' %} |
{% translate 'Name' %} |
+ {% translate 'Muted' %} |
{% for category in categories %}
|
-
-
-
+ |
-
- {% if category.mute %}{% endif %}
+ data-bs-title="{% translate "Edit" %}"
+ hx-get="{% url 'category_edit' category_id=category.id %}"
+ hx-target="#generic-offcanvas">
+
+
+
|
{{ category.name }} |
+
+ {% if category.mute %}{% endif %}
+ |
{% endfor %}
diff --git a/app/templates/currencies/fragments/list.html b/app/templates/currencies/fragments/list.html
index 98af3bf..25652ea 100644
--- a/app/templates/currencies/fragments/list.html
+++ b/app/templates/currencies/fragments/list.html
@@ -28,24 +28,27 @@
{% for currency in currencies %}
|
-
-
-
+ |
+ data-bs-title="{% translate "Edit" %}"
+ hx-get="{% url 'currency_edit' pk=currency.id %}"
+ hx-target="#generic-offcanvas">
+
+
+
+
{{ currency.code }} |
{{ currency.name }} |
diff --git a/app/templates/exchange_rates/fragments/table.html b/app/templates/exchange_rates/fragments/table.html
index 202f645..c05cf4e 100644
--- a/app/templates/exchange_rates/fragments/table.html
+++ b/app/templates/exchange_rates/fragments/table.html
@@ -10,7 +10,7 @@
|
- {% translate 'Date' %} |
+ {% translate 'Date' %} |
{% translate 'Pairing' %} |
{% translate 'Rate' %} |
@@ -19,27 +19,30 @@
{% for exchange_rate in exchange_rates %}
|
-
-
-
+ |
- {{ exchange_rate.date|date:"SHORT_DATETIME_FORMAT" }} |
+ data-bs-title="{% translate "Edit" %}"
+ hx-get="{% url 'exchange_rate_edit' pk=exchange_rate.id %}"
+ hx-target="#generic-offcanvas"
+ hx-swap="innerHTML">
+
+
+
+
+ {{ exchange_rate.date|date:"SHORT_DATETIME_FORMAT" }} |
{{ exchange_rate.from_currency.code }} x {{ exchange_rate.to_currency.code }} |
1 {{ exchange_rate.from_currency.code }} ≅ {% currency_display amount=exchange_rate.rate prefix=exchange_rate.to_currency.prefix suffix=exchange_rate.to_currency.suffix decimal_places=exchange_rate.to_currency.decimal_places%} |
diff --git a/app/templates/installment_plans/fragments/list.html b/app/templates/installment_plans/fragments/list.html
index 512cf40..06bb3b6 100644
--- a/app/templates/installment_plans/fragments/list.html
+++ b/app/templates/installment_plans/fragments/list.html
@@ -27,44 +27,47 @@
{% for installment_plan in installment_plans %}
|
-
-
-
-
-
-
-
+
+
+
+
+ |
+ data-text="{% translate "This will update all transactions associated with this plan and recreate missing ones" %}"
+ data-confirm-text="{% translate "Yes, refresh it!" %}"
+ _="install prompt_swal">
+
+
+
+
{{ installment_plan.description }} |
{% endfor %}
diff --git a/app/templates/recurring_transactions/fragments/list.html b/app/templates/recurring_transactions/fragments/list.html
index 4979336..a33c123 100644
--- a/app/templates/recurring_transactions/fragments/list.html
+++ b/app/templates/recurring_transactions/fragments/list.html
@@ -27,59 +27,61 @@
{% for recurring_transaction in recurring_transactions %}
|
-
-
-
-
- {% if recurring_transaction.paused %}
-
- {% else %}
-
-
- {% endif %}
-
+
+
+
+
+ {% if recurring_transaction.paused %}
+ |
+ data-text="{% translate "This will start creating new transactions until you pause it" %}"
+ data-confirm-text="{% translate "Yes, unpause it!" %}"
+ _="install prompt_swal">
+ {% else %}
+
+
+ {% endif %}
+
+
{{ recurring_transaction.description }} |
{% endfor %}
diff --git a/app/templates/rules/fragments/list.html b/app/templates/rules/fragments/list.html
index 3b7e5e9..4b3f9ee 100644
--- a/app/templates/rules/fragments/list.html
+++ b/app/templates/rules/fragments/list.html
@@ -28,42 +28,39 @@
{% for rule in transaction_rules %}
|
-{# #}
-{# #}
-
-
-
+
+ data-bs-title="{% translate "View" %}"
+ hx-get="{% url 'transaction_rule_view' transaction_rule_id=rule.id %}"
+ hx-target="#persistent-generic-offcanvas-left">
+
+
+
|
{% if rule.active %}{% else %}{% endif %}
|
{{ rule.name }}
- {{ rule.description }}
+ {{ rule.description }}
|
{% endfor %}
diff --git a/app/templates/rules/fragments/transaction_rule/view.html b/app/templates/rules/fragments/transaction_rule/view.html
index 0987657..71c27f9 100644
--- a/app/templates/rules/fragments/transaction_rule/view.html
+++ b/app/templates/rules/fragments/transaction_rule/view.html
@@ -7,7 +7,7 @@
{% block body %}
{{ transaction_rule.name }}
-
{{ transaction_rule.description }}
+
{{ transaction_rule.description }}
If transaction...
diff --git a/app/templates/tags/fragments/list.html b/app/templates/tags/fragments/list.html
index f3efe09..65e762e 100644
--- a/app/templates/tags/fragments/list.html
+++ b/app/templates/tags/fragments/list.html
@@ -27,24 +27,27 @@
{% for tag in tags %}
|
-
-
-
+ |
+ data-bs-title="{% translate "Edit" %}"
+ hx-get="{% url 'tag_edit' tag_id=tag.id %}"
+ hx-target="#generic-offcanvas">
+
+
+
+
{{ tag.name }} |
{% endfor %}