From 124a782ab4bf9ac42cbf404362a0be2826ff6e99 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 8 Jun 2018 17:17:07 +0200 Subject: Documents: edit form --- ishtar_common/urls.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'ishtar_common/urls.py') diff --git a/ishtar_common/urls.py b/ishtar_common/urls.py index 5ef316723..d030c4529 100644 --- a/ishtar_common/urls.py +++ b/ishtar_common/urls.py @@ -224,18 +224,22 @@ urlpatterns += [ url(r'show-shortcut-menu/$', views.show_shortcut_menu, name='show-shortcut-menu'), - url(r'document_search/(?P.+)?$', + url(r'document/search/(?P.+)?$', check_rights(['view_document', 'view_own_document'])( views.document_search_wizard), - name='document_search'), - url(r'document_creation/$', + name='search-document'), + url(r'document/create/$', check_rights(['add_document', 'add_own_document'])( - views.DocumentFormView.as_view()), - name='document_creation'), - url(r'document_modification/(?P.+)/$', + views.DocumentCreateView.as_view()), + name='create-document'), + url(r'document/edit/$', check_rights(['change_document', 'change_own_document'])( - views.DocumentFormView.as_view()), - name='document_modification'), + views.DocumentSelectView.as_view()), + name='edit-document'), + url(r'document/edit/(?P.+)/$', + check_rights(['change_document', 'change_own_document'])( + views.DocumentEditView.as_view()), + name='edit-document'), ] urlpatterns += get_urls_for_model(models.Document, views) -- cgit v1.2.3