2021-08-19 13:02:31 +02:00
|
|
|
"""
|
|
|
|
Author: Michel Peltriaux
|
|
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
|
|
Contact: michel.peltriaux@sgdnord.rlp.de
|
|
|
|
Created on: 19.08.21
|
|
|
|
|
|
|
|
"""
|
|
|
|
from django.urls import path
|
2022-08-19 07:51:49 +02:00
|
|
|
|
2022-08-22 08:38:23 +02:00
|
|
|
from ema.views.action import NewEmaActionView, EditEmaActionView, RemoveEmaActionView
|
2022-08-22 08:12:55 +02:00
|
|
|
from ema.views.deadline import NewEmaDeadlineView, EditEmaDeadlineView, RemoveEmaDeadlineView
|
2022-08-22 07:52:22 +02:00
|
|
|
from ema.views.document import NewEmaDocumentView, EditEmaDocumentView, RemoveEmaDocumentView, GetEmaDocumentView
|
2022-08-19 07:51:49 +02:00
|
|
|
from ema.views.ema import index_view, new_view, new_id_view, detail_view, edit_view, remove_view
|
2022-08-19 10:25:27 +02:00
|
|
|
from ema.views.log import EmaLogView
|
2022-08-19 11:01:33 +02:00
|
|
|
from ema.views.record import EmaRecordView
|
2022-08-19 07:51:49 +02:00
|
|
|
from ema.views.report import report_view
|
2022-08-19 10:47:59 +02:00
|
|
|
from ema.views.resubmission import EmaResubmissionView
|
2022-08-22 10:58:07 +02:00
|
|
|
from ema.views.share import EmaShareFormView, EmaShareByTokenView
|
2022-08-22 08:27:36 +02:00
|
|
|
from ema.views.state import NewEmaStateView, EditEmaStateView, RemoveEmaStateView
|
2021-08-19 13:02:31 +02:00
|
|
|
|
|
|
|
app_name = "ema"
|
|
|
|
urlpatterns = [
|
|
|
|
path("", index_view, name="index"),
|
|
|
|
path("new/", new_view, name="new"),
|
2021-10-06 16:00:17 +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', EmaLogView.as_view(), name='log'),
|
2021-08-19 13:44:06 +02:00
|
|
|
path('<id>/edit', edit_view, name='edit'),
|
|
|
|
path('<id>/remove', remove_view, name='remove'),
|
2022-08-19 11:01:33 +02:00
|
|
|
path('<id>/record', EmaRecordView.as_view(), name='record'),
|
2021-10-13 17:35:11 +02:00
|
|
|
path('<id>/report', report_view, name='report'),
|
2022-08-19 10:47:59 +02:00
|
|
|
path('<id>/resub', EmaResubmissionView.as_view(), name='resubmission-create'),
|
2022-02-10 11:24:20 +01:00
|
|
|
|
2022-08-22 08:27:36 +02:00
|
|
|
path('<id>/state/new', NewEmaStateView.as_view(), name='new-state'),
|
|
|
|
path('<id>/state/<state_id>/remove', RemoveEmaStateView.as_view(), name='state-remove'),
|
|
|
|
path('<id>/state/<state_id>/edit', EditEmaStateView.as_view(), name='state-edit'),
|
2022-02-10 11:24:20 +01:00
|
|
|
|
2022-08-22 08:38:23 +02:00
|
|
|
path('<id>/action/new', NewEmaActionView.as_view(), name='new-action'),
|
|
|
|
path('<id>/action/<action_id>/edit', EditEmaActionView.as_view(), name='action-edit'),
|
|
|
|
path('<id>/action/<action_id>/remove', RemoveEmaActionView.as_view(), name='action-remove'),
|
2022-02-10 11:24:20 +01:00
|
|
|
|
2022-08-22 08:12:55 +02:00
|
|
|
path('<id>/deadline/new', NewEmaDeadlineView.as_view(), name="new-deadline"),
|
|
|
|
path('<id>/deadline/<deadline_id>/edit', EditEmaDeadlineView.as_view(), name='deadline-edit'),
|
|
|
|
path('<id>/deadline/<deadline_id>/remove', RemoveEmaDeadlineView.as_view(), name='deadline-remove'),
|
2022-02-10 12:33:22 +01:00
|
|
|
|
2022-08-22 10:58:07 +02:00
|
|
|
path('<id>/share/<token>', EmaShareByTokenView.as_view(), name='share-token'),
|
|
|
|
path('<id>/share', EmaShareFormView.as_view(), name='share-form'),
|
2021-08-19 13:44:06 +02:00
|
|
|
|
|
|
|
# Documents
|
2022-08-22 07:52:22 +02:00
|
|
|
path('<id>/document/new/', NewEmaDocumentView.as_view(), name='new-doc'),
|
|
|
|
path('<id>/document/<doc_id>', GetEmaDocumentView.as_view(), name='get-doc'),
|
|
|
|
path('<id>/document/<doc_id>/edit/', EditEmaDocumentView.as_view(), name='edit-doc'),
|
|
|
|
path('<id>/document/<doc_id>/remove/', RemoveEmaDocumentView.as_view(), name='remove-doc'),
|
2021-08-19 13:44:06 +02:00
|
|
|
|
2021-08-19 13:02:31 +02:00
|
|
|
]
|