Compensation routes
* improves compensation routes
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -13,15 +13,21 @@ app_name = "compensation"
|
||||
urlpatterns = [
|
||||
# Main compensation
|
||||
path("", index_view, name="index"),
|
||||
path('new/', new_view, name='new'),
|
||||
path('open/<id>', open_view, name='open'),
|
||||
path('edit/<id>', edit_view, name='edit'),
|
||||
path('remove/<id>', remove_view, name='remove'),
|
||||
path('new', new_view, name='new'),
|
||||
path('<id>', open_view, name='open'),
|
||||
path('<id>/edit', edit_view, name='edit'),
|
||||
path('<id>/remove', remove_view, name='remove'),
|
||||
|
||||
# Payment
|
||||
path('pay/new', new_view, name='pay-new'),
|
||||
path('pay/<id>', open_view, name='pay-open'),
|
||||
path('pay/<id>/edit', edit_view, name='pay-edit'),
|
||||
path('pay/<id>/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/<id>', account_open_view, name='account-open'),
|
||||
path('account/edit/<id>', account_edit_view, name='account-edit'),
|
||||
path('account/remove/<id>', 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/<id>', account_open_view, name='acc-open'),
|
||||
path('acc/<id>/edit', account_edit_view, name='acc-edit'),
|
||||
path('acc/<id>/remove', account_remove_view, name='acc-remove'),
|
||||
]
|
||||
Reference in New Issue
Block a user