""" Author: Michel Peltriaux Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany Contact: michel.peltriaux@sgdnord.rlp.de Created on: 30.11.20 """ from django.urls import path from compensation.views import compensation_views from compensation.views import payment_views from compensation.views import eco_account_views app_name = "compensation" # Split lists for each sub-component for better overview urlpatterns_payment = [ path('pay//new', payment_views.new_payment_view, name='pay-new'), path('pay//remove', payment_views.payment_remove_view, name='pay-remove'), ] urlaptterns_eco_acc = [ path("acc/", eco_account_views.index_view, name="acc-index"), path('acc/new/', eco_account_views.new_view, name='acc-new'), path('acc/', eco_account_views.open_view, name='acc-open'), path('acc//log', eco_account_views.log_view, name='acc-log'), path('acc//record', eco_account_views.record_view, name='acc-record'), path('acc//edit', eco_account_views.edit_view, name='acc-edit'), path('acc//remove', eco_account_views.remove_view, name='acc-remove'), path('acc//state/new', eco_account_views.state_new_view, name='acc-new-state'), path('acc//action/new', eco_account_views.action_new_view, name='acc-new-action'), path('acc//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//document/new/', eco_account_views.new_document_view, name='acc-new-doc'), # Eco-account withdraws path('acc//remove/', eco_account_views.withdraw_remove_view, name='withdraw-remove'), path('acc//withdraw/new', eco_account_views.new_withdraw_view, name='acc-new-withdraw'), ] urlpatterns_compensation = [ # Main compensation path("", compensation_views.index_view, name="index"), path('new', compensation_views.new_view, name='new'), path('', compensation_views.open_view, name='open'), path('/log', compensation_views.log_view, name='log'), path('/edit', compensation_views.edit_view, name='edit'), path('/remove', compensation_views.remove_view, name='remove'), path('/state/new', compensation_views.state_new_view, name='new-state'), path('/action/new', compensation_views.action_new_view, name='new-action'), path('/deadline/new', compensation_views.deadline_new_view, name="new-deadline"), # Documents # Document remove route can be found in konova/urls.py path('/document/new/', compensation_views.new_document_view, name='new-doc'), # Generic state routes path('state//remove', compensation_views.state_remove_view, name='state-remove'), # Generic action routes path('action//remove', compensation_views.action_remove_view, name='action-remove'), ] # Merge all together in the end urlpatterns = urlpatterns_compensation + urlaptterns_eco_acc + urlpatterns_payment