2023-04-22 11:16:42 +02:00
|
|
|
from django.urls import path
|
2023-04-22 12:03:08 +02:00
|
|
|
from statement.views import StatementCreateView
|
2024-01-02 12:13:57 +01:00
|
|
|
from transaction.views import TransactionMonthView, TransactionYearView
|
2023-04-22 11:16:42 +02:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2025-01-02 10:07:01 +01:00
|
|
|
path("list", views.AccountListView.as_view(), name="accounts"),
|
2023-04-22 14:33:07 +02:00
|
|
|
path("new", views.AccountCreateView.as_view(), name="new_account"),
|
2024-01-04 16:05:38 +01:00
|
|
|
path("<account>", views.AccountDetailView.as_view(), name="account"),
|
|
|
|
path("<account>/edit", views.AccountUpdateView.as_view(), name="edit_account"),
|
2023-04-22 11:16:42 +02:00
|
|
|
path(
|
2023-04-22 12:03:08 +02:00
|
|
|
"<account>/transactions",
|
2023-04-22 11:16:42 +02:00
|
|
|
views.AccountTListView.as_view(),
|
|
|
|
name="account_transactions",
|
|
|
|
),
|
|
|
|
path(
|
2023-04-22 12:03:08 +02:00
|
|
|
"<account>/statements",
|
2023-04-22 11:16:42 +02:00
|
|
|
views.AccountSListView.as_view(),
|
|
|
|
name="account_statements",
|
|
|
|
),
|
|
|
|
path(
|
2023-04-22 12:03:08 +02:00
|
|
|
"<account>/statement",
|
|
|
|
StatementCreateView.as_view(),
|
2023-04-22 11:16:42 +02:00
|
|
|
name="new_statement",
|
|
|
|
),
|
|
|
|
path(
|
2023-04-22 12:03:08 +02:00
|
|
|
"<account>/delete",
|
2023-04-22 11:16:42 +02:00
|
|
|
views.AccountDeleteView.as_view(),
|
|
|
|
name="del_account",
|
|
|
|
),
|
2024-01-02 12:13:57 +01:00
|
|
|
path(
|
|
|
|
"<account>/history/<int:year>",
|
|
|
|
TransactionYearView.as_view(),
|
|
|
|
name="account_transaction_year",
|
|
|
|
),
|
2023-04-22 11:16:42 +02:00
|
|
|
path(
|
2023-04-22 12:03:08 +02:00
|
|
|
"<account>/history/<int:year>/<int:month>",
|
|
|
|
TransactionMonthView.as_view(),
|
2023-12-30 09:40:11 +01:00
|
|
|
name="account_transaction_month",
|
2023-04-22 11:16:42 +02:00
|
|
|
),
|
|
|
|
]
|