Konova views

* splits konova/views.py into separate files in new module
    * view files can now be found in /konova/views/...
* introduces first class based view AbstractLogView
    * implemented for Ema, Intervention, Compensation and EcoAccount
This commit is contained in:
2022-08-19 10:25:27 +02:00
parent 9654f6873d
commit 7e68d12ee9
17 changed files with 387 additions and 368 deletions

View File

@@ -11,7 +11,7 @@ from ema.views.action import action_new_view, action_edit_view, action_remove_vi
from ema.views.deadline import deadline_new_view, deadline_edit_view, deadline_remove_view
from ema.views.document import document_new_view, get_document_view, remove_document_view, edit_document_view
from ema.views.ema import index_view, new_view, new_id_view, detail_view, edit_view, remove_view
from ema.views.log import log_view
from ema.views.log import EmaLogView
from ema.views.record import record_view
from ema.views.report import report_view
from ema.views.resubmission import create_resubmission_view
@@ -24,7 +24,7 @@ urlpatterns = [
path("new/", new_view, name="new"),
path("new/id", new_id_view, name="new-id"),
path("<id>", detail_view, name="detail"),
path('<id>/log', log_view, name='log'),
path('<id>/log', EmaLogView.as_view(), name='log'),
path('<id>/edit', edit_view, name='edit'),
path('<id>/remove', remove_view, name='remove'),
path('<id>/record', record_view, name='record'),