Document upload

* adds document upload form
* refactors modal form templates into form classes
* adds document upload route to intervention routes of urls.py
This commit is contained in:
mipel
2021-07-26 15:16:16 +02:00
parent d1db559f33
commit 955784fc45
10 changed files with 106 additions and 41 deletions
+2 -3
View File
@@ -20,7 +20,7 @@ from simple_sso.sso_client.client import Client
from konova.autocompletes import OrganisationAutocomplete, NonOfficialOrganisationAutocomplete
from konova.settings import SSO_SERVER, SSO_PUBLIC_KEY, SSO_PRIVATE_KEY, DEBUG
from konova.views import logout_view, home_view, get_document_view, new_document_view, remove_document_view
from konova.views import logout_view, home_view, get_document_view, remove_document_view
sso_client = Client(SSO_SERVER, SSO_PUBLIC_KEY, SSO_PRIVATE_KEY)
urlpatterns = [
@@ -35,9 +35,8 @@ urlpatterns = [
path('user/', include("user.urls")),
path('news/', include("news.urls")),
# Documents
# Generic documents routes
path('document/<id>', get_document_view, name="doc-open"),
path('document/new', new_document_view, name="doc-new"),
path('document/<id>/remove', remove_document_view, name="doc-remove"),
# Autocomplete paths