Document views

* replaces function based views for creating, editing, removing and fetching documents with class based views
    * implemented for all major data types
This commit is contained in:
2022-08-22 07:52:22 +02:00
parent 7b35591f5d
commit a73046aa02
9 changed files with 313 additions and 362 deletions

View File

@@ -7,8 +7,8 @@ Created on: 24.08.21
"""
from django.urls import path
from compensation.views.compensation.document import edit_document_view, new_document_view, remove_document_view, \
get_document_view
from compensation.views.compensation.document import EditCompensationDocumentView, NewCompensationDocumentView, \
GetCompensationDocumentView, RemoveCompensationDocumentView
from compensation.views.compensation.resubmission import CompensationResubmissionView
from compensation.views.compensation.report import report_view
from compensation.views.compensation.deadline import deadline_new_view, deadline_edit_view, deadline_remove_view
@@ -44,9 +44,9 @@ urlpatterns = [
path('<id>/resub', CompensationResubmissionView.as_view(), name='resubmission-create'),
# Documents
path('<id>/document/new/', new_document_view, name='new-doc'),
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'),
path('<id>/document/new/', NewCompensationDocumentView.as_view(), name='new-doc'),
path('<id>/document/<doc_id>', GetCompensationDocumentView.as_view(), name='get-doc'),
path('<id>/document/<doc_id>/remove/', RemoveCompensationDocumentView.as_view(), name='remove-doc'),
path('<id>/document/<doc_id>/edit/', EditCompensationDocumentView.as_view(), name='edit-doc'),
]