2021-07-01 13:36:07 +02:00
|
|
|
"""
|
|
|
|
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
|
|
|
|
|
2021-10-13 09:26:46 +02:00
|
|
|
from intervention.views import index_view, new_view, detail_view, edit_view, remove_view, new_document_view, share_view, \
|
2021-11-11 10:37:22 +01:00
|
|
|
create_share_view, remove_revocation_view, new_revocation_view, check_view, log_view, new_deduction_view, \
|
2022-02-02 15:16:25 +01:00
|
|
|
record_view, remove_document_view, get_document_view, get_revocation_view, new_id_view, report_view, \
|
2022-08-15 09:38:51 +02:00
|
|
|
remove_deduction_view, remove_compensation_view, edit_deduction_view, edit_revocation_view, edit_document_view, \
|
|
|
|
create_resubmission_view
|
2021-07-01 13:36:07 +02:00
|
|
|
|
|
|
|
app_name = "intervention"
|
|
|
|
urlpatterns = [
|
|
|
|
path("", index_view, name="index"),
|
|
|
|
path('new/', new_view, name='new'),
|
2021-09-27 13:57:56 +02:00
|
|
|
path('new/id', new_id_view, name='new-id'),
|
2021-10-13 09:26:46 +02:00
|
|
|
path('<id>', detail_view, name='detail'),
|
2021-08-05 12:54:28 +02:00
|
|
|
path('<id>/log', log_view, name='log'),
|
2021-07-22 14:58:58 +02:00
|
|
|
path('<id>/edit', edit_view, name='edit'),
|
|
|
|
path('<id>/remove', remove_view, name='remove'),
|
2021-07-30 13:30:42 +02:00
|
|
|
path('<id>/share/<token>', share_view, name='share'),
|
|
|
|
path('<id>/share', create_share_view, name='share-create'),
|
2021-11-11 10:37:22 +01:00
|
|
|
path('<id>/check', check_view, name='check'),
|
2021-08-10 17:19:42 +02:00
|
|
|
path('<id>/record', record_view, name='record'),
|
2021-10-13 14:03:34 +02:00
|
|
|
path('<id>/report', report_view, name='report'),
|
2022-08-15 09:38:51 +02:00
|
|
|
path('<id>/resub', create_resubmission_view, name='resubmission-create'),
|
2021-08-04 13:32:35 +02:00
|
|
|
|
2022-02-03 15:29:22 +01:00
|
|
|
# Compensations
|
2022-02-08 13:16:20 +01:00
|
|
|
path('<id>/compensation/<comp_id>/remove', remove_compensation_view, name='remove-compensation'),
|
2022-02-03 15:29:22 +01:00
|
|
|
|
2021-09-01 16:24:49 +02:00
|
|
|
# Documents
|
|
|
|
path('<id>/document/new/', new_document_view, name='new-doc'),
|
2022-02-10 10:21:18 +01:00
|
|
|
path('<id>/document/<doc_id>', get_document_view, name='get-doc'),
|
|
|
|
path('<id>/document/<doc_id>/remove/', remove_document_view, name='remove-doc'),
|
|
|
|
path('<id>/document/<doc_id>/edit/', edit_document_view, name='edit-doc'),
|
2021-09-01 16:24:49 +02:00
|
|
|
|
2021-08-30 11:29:15 +02:00
|
|
|
# Deductions
|
2022-02-02 11:26:02 +01:00
|
|
|
path('<id>/deduction/new', new_deduction_view, name='new-deduction'),
|
2022-02-09 14:49:56 +01:00
|
|
|
path('<id>/deduction/<deduction_id>/edit', edit_deduction_view, name='edit-deduction'),
|
2022-02-08 13:16:20 +01:00
|
|
|
path('<id>/deduction/<deduction_id>/remove', remove_deduction_view, name='remove-deduction'),
|
2021-08-10 10:42:04 +02:00
|
|
|
|
2021-08-04 13:32:35 +02:00
|
|
|
# Revocation routes
|
2021-08-10 10:42:04 +02:00
|
|
|
path('<id>/revocation/new', new_revocation_view, name='new-revocation'),
|
2022-02-09 16:02:28 +01:00
|
|
|
path('<id>/revocation/<revocation_id>/edit', edit_revocation_view, name='edit-revocation'),
|
2022-02-08 13:16:20 +01:00
|
|
|
path('<id>/revocation/<revocation_id>/remove', remove_revocation_view, name='remove-revocation'),
|
2021-09-01 16:24:49 +02:00
|
|
|
path('revocation/<doc_id>', get_revocation_view, name='get-doc-revocation'),
|
2021-07-01 13:36:07 +02:00
|
|
|
]
|