diff --git a/compensation/tables.py b/compensation/tables.py index 06f75751..84dcf4de 100644 --- a/compensation/tables.py +++ b/compensation/tables.py @@ -95,7 +95,7 @@ class EcoAccountTable(BaseTable): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.title = _("Eco Accounts") - self.add_new_url = reverse("compensation:account-new") + self.add_new_url = reverse("compensation:acc-new") def render_ac(self, value, record): """ diff --git a/compensation/urls.py b/compensation/urls.py index 2879afab..5e470926 100644 --- a/compensation/urls.py +++ b/compensation/urls.py @@ -13,15 +13,21 @@ app_name = "compensation" urlpatterns = [ # Main compensation path("", index_view, name="index"), - path('new/', new_view, name='new'), - path('open/', open_view, name='open'), - path('edit/', edit_view, name='edit'), - path('remove/', remove_view, name='remove'), + path('new', new_view, name='new'), + path('', open_view, name='open'), + path('/edit', edit_view, name='edit'), + path('/remove', remove_view, name='remove'), + + # Payment + path('pay/new', new_view, name='pay-new'), + path('pay/', open_view, name='pay-open'), + path('pay//edit', edit_view, name='pay-edit'), + path('pay//remove', remove_view, name='pay-remove'), # Eco-account - path("account/", account_index_view, name="account-index"), - path('account/new/', account_new_view, name='account-new'), - path('account/open/', account_open_view, name='account-open'), - path('account/edit/', account_edit_view, name='account-edit'), - path('account/remove/', account_remove_view, name='account-remove'), + path("acc/", account_index_view, name="acc-index"), + path('acc/new/', account_new_view, name='acc-new'), + path('acc/', account_open_view, name='acc-open'), + path('acc//edit', account_edit_view, name='acc-edit'), + path('acc//remove', account_remove_view, name='acc-remove'), ] \ No newline at end of file diff --git a/intervention/templates/intervention/detail-view.html b/intervention/templates/intervention/detail-view.html index 8c0e6df2..e08c1f19 100644 --- a/intervention/templates/intervention/detail-view.html +++ b/intervention/templates/intervention/detail-view.html @@ -194,7 +194,7 @@