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
|
|
|
|
|
2022-08-18 11:25:06 +02:00
|
|
|
from intervention.autocomplete.intervention import InterventionAutocomplete
|
2022-08-19 07:34:09 +02:00
|
|
|
from intervention.views.check import check_view
|
|
|
|
from intervention.views.compensation import remove_compensation_view
|
2022-08-22 10:17:49 +02:00
|
|
|
from intervention.views.deduction import NewInterventionDeductionView, EditInterventionDeductionView, \
|
|
|
|
RemoveInterventionDeductionView
|
2022-08-22 07:52:22 +02:00
|
|
|
from intervention.views.document import NewInterventionDocumentView, GetInterventionDocumentView, \
|
|
|
|
RemoveInterventionDocumentView, EditInterventionDocumentView
|
2022-08-19 07:34:09 +02:00
|
|
|
from intervention.views.intervention import index_view, new_view, new_id_view, detail_view, edit_view, remove_view
|
2022-08-19 10:25:27 +02:00
|
|
|
from intervention.views.log import InterventionLogView
|
2022-08-19 11:01:33 +02:00
|
|
|
from intervention.views.record import InterventionRecordView
|
2022-08-19 07:34:09 +02:00
|
|
|
from intervention.views.report import report_view
|
2022-08-19 10:47:59 +02:00
|
|
|
from intervention.views.resubmission import InterventionResubmissionView
|
2022-08-19 07:34:09 +02:00
|
|
|
from intervention.views.revocation import new_revocation_view, edit_revocation_view, remove_revocation_view, \
|
|
|
|
get_revocation_view
|
2022-08-22 10:58:07 +02:00
|
|
|
from intervention.views.share import InterventionShareFormView, InterventionShareByTokenView
|
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'),
|
2022-08-19 10:25:27 +02:00
|
|
|
path('<id>/log', InterventionLogView.as_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'),
|
2022-08-22 10:58:07 +02:00
|
|
|
path('<id>/share/<token>', InterventionShareByTokenView.as_view(), name='share-token'),
|
|
|
|
path('<id>/share', InterventionShareFormView.as_view(), name='share-form'),
|
2021-11-11 10:37:22 +01:00
|
|
|
path('<id>/check', check_view, name='check'),
|
2022-08-19 11:01:33 +02:00
|
|
|
path('<id>/record', InterventionRecordView.as_view(), name='record'),
|
2021-10-13 14:03:34 +02:00
|
|
|
path('<id>/report', report_view, name='report'),
|
2022-08-19 10:47:59 +02:00
|
|
|
path('<id>/resub', InterventionResubmissionView.as_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
|
2022-08-22 07:52:22 +02:00
|
|
|
path('<id>/document/new/', NewInterventionDocumentView.as_view(), name='new-doc'),
|
|
|
|
path('<id>/document/<doc_id>', GetInterventionDocumentView.as_view(), name='get-doc'),
|
|
|
|
path('<id>/document/<doc_id>/remove/', RemoveInterventionDocumentView.as_view(), name='remove-doc'),
|
|
|
|
path('<id>/document/<doc_id>/edit/', EditInterventionDocumentView.as_view(), name='edit-doc'),
|
2021-09-01 16:24:49 +02:00
|
|
|
|
2021-08-30 11:29:15 +02:00
|
|
|
# Deductions
|
2022-08-22 10:17:49 +02:00
|
|
|
path('<id>/deduction/new', NewInterventionDeductionView.as_view(), name='new-deduction'),
|
|
|
|
path('<id>/deduction/<deduction_id>/edit', EditInterventionDeductionView.as_view(), name='edit-deduction'),
|
|
|
|
path('<id>/deduction/<deduction_id>/remove', RemoveInterventionDeductionView.as_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'),
|
2022-08-18 11:25:06 +02:00
|
|
|
|
|
|
|
# Autocomplete
|
|
|
|
path("atcmplt/interventions", InterventionAutocomplete.as_view(), name="autocomplete"),
|
2022-08-19 07:34:09 +02:00
|
|
|
]
|