EcoAccount template and logic
* adds eco-account own includes for simpler maintainability instead of refactoring to generic includes for compensation app and predefining urls and stuff on the backend * adds before-state, after-state, actions, deadlines, documents and withdraws to eco account detail view * adds hint for invalid withdraw in intervention detail view in case of deleted eco account * adds/updates translations
This commit is contained in:
+14
-5
@@ -20,11 +20,19 @@ urlpatterns_payment = [
|
||||
]
|
||||
|
||||
urlaptterns_eco_acc = [
|
||||
path("acc/", eco_account_views.account_index_view, name="acc-index"),
|
||||
path('acc/new/', eco_account_views.account_new_view, name='acc-new'),
|
||||
path('acc/<id>', eco_account_views.account_open_view, name='acc-open'),
|
||||
path('acc/<id>/edit', eco_account_views.account_edit_view, name='acc-edit'),
|
||||
path('acc/<id>/remove', eco_account_views.account_remove_view, name='acc-remove'),
|
||||
path("acc/", eco_account_views.index_view, name="acc-index"),
|
||||
path('acc/new/', eco_account_views.new_view, name='acc-new'),
|
||||
path('acc/<id>', eco_account_views.open_view, name='acc-open'),
|
||||
path('acc/<id>/log', eco_account_views.log_view, name='acc-log'),
|
||||
path('acc/<id>/edit', eco_account_views.edit_view, name='acc-edit'),
|
||||
path('acc/<id>/remove', eco_account_views.remove_view, name='acc-remove'),
|
||||
path('acc/<id>/state/new', eco_account_views.state_new_view, name='acc-new-state'),
|
||||
path('acc/<id>/action/new', eco_account_views.action_new_view, name='acc-new-action'),
|
||||
path('acc/<id>/deadline/new', eco_account_views.deadline_new_view, name="acc-new-deadline"),
|
||||
|
||||
# Documents
|
||||
# Document remove route can be found in konova/urls.py
|
||||
path('acc/<id>/document/new/', eco_account_views.new_document_view, name='acc-new-doc'),
|
||||
|
||||
# Eco-account withdraws
|
||||
path('acc/<id>/remove/<withdraw_id>', eco_account_views.withdraw_remove_view, name='withdraw-remove'),
|
||||
@@ -43,6 +51,7 @@ urlpatterns_compensation = [
|
||||
path('<id>/deadline/new', compensation_views.deadline_new_view, name="new-deadline"),
|
||||
|
||||
# Documents
|
||||
# Document remove route can be found in konova/urls.py
|
||||
path('<id>/document/new/', compensation_views.new_document_view, name='new-doc'),
|
||||
|
||||
# Generic state routes
|
||||
|
||||
Reference in New Issue
Block a user