2021-08-24 15:55:06 +02:00
|
|
|
"""
|
|
|
|
Author: Michel Peltriaux
|
|
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
|
|
Contact: michel.peltriaux@sgdnord.rlp.de
|
|
|
|
Created on: 24.08.21
|
|
|
|
|
|
|
|
"""
|
|
|
|
from django.urls import path
|
2022-08-18 11:25:06 +02:00
|
|
|
|
|
|
|
from compensation.autocomplete.eco_account import EcoAccountAutocomplete
|
2022-08-19 08:27:42 +02:00
|
|
|
from compensation.views.eco_account.eco_account import index_view, new_view, new_id_view, edit_view, remove_view, \
|
|
|
|
detail_view
|
2022-08-19 10:25:27 +02:00
|
|
|
from compensation.views.eco_account.log import EcoAccountLogView
|
2022-08-19 11:01:33 +02:00
|
|
|
from compensation.views.eco_account.record import EcoAccountRecordView
|
2022-08-19 08:27:42 +02:00
|
|
|
from compensation.views.eco_account.report import report_view
|
2022-08-19 10:47:59 +02:00
|
|
|
from compensation.views.eco_account.resubmission import EcoAccountResubmissionView
|
2022-08-22 08:27:36 +02:00
|
|
|
from compensation.views.eco_account.state import NewEcoAccountStateView, EditEcoAccountStateView, \
|
|
|
|
RemoveEcoAccountStateView
|
2022-08-22 08:38:23 +02:00
|
|
|
from compensation.views.eco_account.action import NewEcoAccountActionView, EditEcoAccountActionView, \
|
|
|
|
RemoveEcoAccountActionView
|
2022-08-22 08:07:35 +02:00
|
|
|
from compensation.views.eco_account.deadline import NewEcoAccountDeadlineView, EditEcoAccountDeadlineView, \
|
|
|
|
RemoveEcoAccountDeadlineView
|
2022-08-19 08:27:42 +02:00
|
|
|
from compensation.views.eco_account.share import share_view, create_share_view
|
2022-08-22 07:52:22 +02:00
|
|
|
from compensation.views.eco_account.document import GetEcoAccountDocumentView, NewEcoAccountDocumentView, \
|
|
|
|
EditEcoAccountDocumentView, RemoveEcoAccountDocumentView
|
2022-08-19 08:27:42 +02:00
|
|
|
from compensation.views.eco_account.deduction import deduction_edit_view, deduction_remove_view, new_deduction_view
|
2021-08-24 15:55:06 +02:00
|
|
|
|
2022-02-02 11:26:02 +01:00
|
|
|
app_name = "acc"
|
2021-08-24 15:55:06 +02:00
|
|
|
urlpatterns = [
|
2022-02-02 11:26:02 +01:00
|
|
|
path("", index_view, name="index"),
|
|
|
|
path('new/', new_view, name='new'),
|
|
|
|
path('new/id', new_id_view, name='new-id'),
|
|
|
|
path('<id>', detail_view, name='detail'),
|
2022-08-19 10:25:27 +02:00
|
|
|
path('<id>/log', EcoAccountLogView.as_view(), name='log'),
|
2022-08-19 11:01:33 +02:00
|
|
|
path('<id>/record', EcoAccountRecordView.as_view(), name='record'),
|
2022-02-02 11:26:02 +01:00
|
|
|
path('<id>/report', report_view, name='report'),
|
|
|
|
path('<id>/edit', edit_view, name='edit'),
|
|
|
|
path('<id>/remove', remove_view, name='remove'),
|
2022-08-19 10:47:59 +02:00
|
|
|
path('<id>/resub', EcoAccountResubmissionView.as_view(), name='resubmission-create'),
|
2022-02-10 11:45:55 +01:00
|
|
|
|
2022-08-22 08:27:36 +02:00
|
|
|
path('<id>/state/new', NewEcoAccountStateView.as_view(), name='new-state'),
|
|
|
|
path('<id>/state/<state_id>/edit', EditEcoAccountStateView.as_view(), name='state-edit'),
|
|
|
|
path('<id>/state/<state_id>/remove', RemoveEcoAccountStateView.as_view(), name='state-remove'),
|
2022-02-10 11:45:55 +01:00
|
|
|
|
2022-08-22 08:38:23 +02:00
|
|
|
path('<id>/action/new', NewEcoAccountActionView.as_view(), name='new-action'),
|
|
|
|
path('<id>/action/<action_id>/edit', EditEcoAccountActionView.as_view(), name='action-edit'),
|
|
|
|
path('<id>/action/<action_id>/remove', RemoveEcoAccountActionView.as_view(), name='action-remove'),
|
2022-02-10 11:45:55 +01:00
|
|
|
|
2022-08-22 08:07:35 +02:00
|
|
|
path('<id>/deadline/new', NewEcoAccountDeadlineView.as_view(), name="new-deadline"),
|
|
|
|
path('<id>/deadline/<deadline_id>/edit', EditEcoAccountDeadlineView.as_view(), name='deadline-edit'),
|
|
|
|
path('<id>/deadline/<deadline_id>/remove', RemoveEcoAccountDeadlineView.as_view(), name='deadline-remove'),
|
2022-02-10 12:49:30 +01:00
|
|
|
|
2021-10-26 15:09:30 +02:00
|
|
|
path('<id>/share/<token>', share_view, name='share'),
|
|
|
|
path('<id>/share', create_share_view, name='share-create'),
|
2021-08-24 15:55:06 +02:00
|
|
|
|
|
|
|
# Documents
|
2022-08-22 07:52:22 +02:00
|
|
|
path('<id>/document/new/', NewEcoAccountDocumentView.as_view(), name='new-doc'),
|
|
|
|
path('<id>/document/<doc_id>', GetEcoAccountDocumentView.as_view(), name='get-doc'),
|
|
|
|
path('<id>/document/<doc_id>/edit', EditEcoAccountDocumentView.as_view(), name='edit-doc'),
|
|
|
|
path('<id>/document/<doc_id>/remove/', RemoveEcoAccountDocumentView.as_view(), name='remove-doc'),
|
2021-08-24 15:55:06 +02:00
|
|
|
|
2021-08-30 11:29:15 +02:00
|
|
|
# Eco-account deductions
|
2022-02-09 14:49:56 +01:00
|
|
|
path('<id>/deduction/<deduction_id>/remove', deduction_remove_view, name='remove-deduction'),
|
|
|
|
path('<id>/deduction/<deduction_id>/edit', deduction_edit_view, name='edit-deduction'),
|
2022-02-02 11:26:02 +01:00
|
|
|
path('<id>/deduct/new', new_deduction_view, name='new-deduction'),
|
2021-08-24 15:55:06 +02:00
|
|
|
|
2022-08-18 11:25:06 +02:00
|
|
|
# Autocomplete
|
|
|
|
path("atcmplt/eco-accounts", EcoAccountAutocomplete.as_view(), name="autocomplete"),
|
2022-08-19 08:27:42 +02:00
|
|
|
]
|