Blame view

src/core/pyros_django/routine_manager/urls.py 3.39 KB
860aa416   Alexis Koralewski   Adding new versio...
1
from django.urls import re_path
3b81a22b   Alexis Koralewski   Rework on Request...
2
from django.urls import path
43e6176d   Etienne Pallier   Model splitting g...
3
4
5

#from common.models import ScientificProgram

1cffbf1c   Etienne Pallier   moved pyros_djang...
6
7
8
from . import views

urlpatterns = [
860aa416   Alexis Koralewski   Adding new versio...
9
10
    re_path(r'^$', views.sequences_list, name="sequences_list"),
    re_path(r'^(?P<status>-?\d)/(?P<message>.+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
11
12
        views.sequences_list, name="sequences_list"),

860aa416   Alexis Koralewski   Adding new versio...
13
    re_path(r'^action_request/(?P<req_id>\d+)/(?P<action>[a-z_]{1,20})$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
14
        views.action_request, name="action_request"),
860aa416   Alexis Koralewski   Adding new versio...
15
    re_path(r'^action_request/(?P<req_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
16
17
        views.action_request, name="action_request_message"),

860aa416   Alexis Koralewski   Adding new versio...
18
    re_path(r'^action_sequence/(?P<seq_id>\d+)/(?P<action>[a-z_]{1,20})$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
19
        views.action_sequence, name="action_sequence"),
860aa416   Alexis Koralewski   Adding new versio...
20
    re_path(r'^action_sequence/(?P<seq_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
21
22
        views.action_sequence, name="action_sequence_message"),

860aa416   Alexis Koralewski   Adding new versio...
23
    re_path(r'^action_album/(?P<alb_id>\d+)/(?P<action>[a-z_]{1,20})$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
24
        views.action_album, name="action_album"),
860aa416   Alexis Koralewski   Adding new versio...
25
    re_path(r'^action_album/(?P<alb_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
26
27
        views.action_album, name="action_album_message"),

860aa416   Alexis Koralewski   Adding new versio...
28
    re_path(r'^action_plan/(?P<plan_id>\d+)/(?P<action>[a-z_]{1,20})$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
29
        views.action_plan, name="action_plan"),
860aa416   Alexis Koralewski   Adding new versio...
30
    re_path(r'^action_plan/(?P<plan_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
31
32
        views.action_plan, name="action_plan_message"),

860aa416   Alexis Koralewski   Adding new versio...
33
    re_path(r'^request_validate/(?P<req_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
34
        views.request_validate, name="request_validate"),
860aa416   Alexis Koralewski   Adding new versio...
35
    re_path(r'^sequence_validate/(?P<seq_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
36
        views.sequence_validate, name="sequence_validate"),
860aa416   Alexis Koralewski   Adding new versio...
37
    re_path(r'^album_validate/(?P<alb_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
38
        views.album_validate, name="album_validate"),
860aa416   Alexis Koralewski   Adding new versio...
39
    re_path(r'^plan_validate/(?P<plan_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
40
41
        views.plan_validate, name="plan_validate"),

860aa416   Alexis Koralewski   Adding new versio...
42
43
44
45
    re_path(r'^create_request$', views.create_request, name="create_request"),
    #re_path(r'^create_sequence/(?P<req_id>\d+)$', views.create_sequence, name="create_sequence"),
    re_path(r'^create_sequence/', views.create_sequence, name="create_sequence"),
    re_path(r'^create_album/(?P<seq_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
46
        views.create_album, name="create_album"),
860aa416   Alexis Koralewski   Adding new versio...
47
    re_path(r'^create_plan/(?P<alb_id>\d+)$', views.create_plan, name="create_plan"),
1ba49504   Alexis Koralewski   fixing CSS and JS...
48

860aa416   Alexis Koralewski   Adding new versio...
49
    re_path(r'^submit_request/(?P<req_id>\d+)/(?P<redir>[a-z_]{1,20})$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
50
        views.submit_request, name="submit_request"),
860aa416   Alexis Koralewski   Adding new versio...
51
    re_path(r'^unsubmit_request/(?P<req_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
52
53
        views.unsubmit_request, name="unsubmit_request"),

860aa416   Alexis Koralewski   Adding new versio...
54
    re_path(r'^export_request/(?P<req_id>\d+)$',
1ba49504   Alexis Koralewski   fixing CSS and JS...
55
        views.export_request, name="export_request"),
860aa416   Alexis Koralewski   Adding new versio...
56
    re_path(r'^import_request$', views.import_request, name="import_request"),
1ba49504   Alexis Koralewski   fixing CSS and JS...
57
58
59
60
61
62
63
64
    # path("test_create_plan",views.test_create_plan,name="test_create_plan"),
    path("edit_plan/<int:id>", views.edit_plan, name="edit_plan"),
    path("delete_albums/<int:seq_id>", views.delete_albums, name="delete_albums"),
    path("create_albums/<int:seq_id>/<str:layout>",
         views.create_albums, name="create_albums"),
    path("export_sequence/<int:seq_id>/<str:type>",
         views.export_sequence, name="export_sequence"),
    path("import_sequence/", views.import_sequence, name="import_sequence"),
c797f02d   Alexis Koralewski   Adding unsubmit b...
65
66
67
    path("copy_sequence/<int:seq_id>", views.copy_sequence, name="copy_sequence"),
    path("unsubmit_sequence/<int:seq_id>", views.unsubmit_sequence, name="unsubmit_sequence")

1ba49504   Alexis Koralewski   fixing CSS and JS...
68
]