#86 Edit document Compensation

* adds support for editing of documents
* adds buttons and urls for compensation
* simplifies getter for all documents
This commit is contained in:
2022-02-10 10:44:44 +01:00
parent fce85690b7
commit a9bd92c57c
5 changed files with 51 additions and 37 deletions

View File

@@ -28,7 +28,8 @@ urlpatterns = [
# Documents
path('<id>/document/new/', new_document_view, name='new-doc'),
path('document/<doc_id>', get_document_view, name='get-doc'),
path('document/<doc_id>/remove/', remove_document_view, name='remove-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'),
]