1
|
from django.conf.urls import url, patterns, include
|
2
|
|
3
|
from calebasse.cbv import TemplateView
|
4
|
|
5
|
from views import (redirect_today, AgendaHomepageView, NewAppointmentView,
|
6
|
NewEventView, AgendaServiceActivityView, UpdateAppointmentView,
|
7
|
UpdateEventView, AgendaServiceActValidationView, AutomatedValidationView,
|
8
|
UnlockAllView, AgendasTherapeutesView, JoursNonVerrouillesView,
|
9
|
RessourcesView, AjaxWorkerTabView, AjaxWorkerDisponibilityColumnView)
|
10
|
|
11
|
agenda_patterns = patterns('',
|
12
|
url(r'^$',
|
13
|
AgendaHomepageView.as_view(
|
14
|
template_name='agenda/index.html'),
|
15
|
name='agenda'),
|
16
|
url(r'^nouveau-rdv/$',
|
17
|
NewAppointmentView.as_view(),
|
18
|
name='nouveau-rdv'),
|
19
|
url(r'^update-rdv/(?P<pk>\d+)$',
|
20
|
UpdateAppointmentView.as_view(),
|
21
|
name='update-rdv'),
|
22
|
url(r'^new-event/$',
|
23
|
NewEventView.as_view(),
|
24
|
name='new-event'),
|
25
|
url(r'^update-event/(?P<pk>\d+)$',
|
26
|
UpdateEventView.as_view(),
|
27
|
name='update-event'),
|
28
|
url(r'^activite-du-service/$',
|
29
|
AgendaServiceActivityView.as_view(
|
30
|
template_name='agenda/service-activity.html'),
|
31
|
name='activite-du-service'),
|
32
|
url(r'^validation-des-actes/$',
|
33
|
AgendaServiceActValidationView.as_view(
|
34
|
template_name='agenda/act-validation.html'),
|
35
|
name='validation-des-actes'),
|
36
|
url(r'^validation-des-actes/validation-all/$',
|
37
|
AutomatedValidationView.as_view(),
|
38
|
name='validation-all'),
|
39
|
url(r'^validation-des-actes/unlock-all/$',
|
40
|
UnlockAllView.as_view(),
|
41
|
name='unlock-all'),
|
42
|
url(r'^rendez-vous-periodiques/$',
|
43
|
TemplateView.as_view(
|
44
|
template_name='agenda/rendez-vous-periodique.html'),
|
45
|
name='rendez-vous-periodiques'),
|
46
|
url(r'^agendas-therapeutes/$',
|
47
|
AgendasTherapeutesView.as_view(
|
48
|
template_name='agenda/agendas-therapeutes.html'),
|
49
|
name='agendas-therapeutes'),
|
50
|
url(r'^jours-non-verrouilles/$',
|
51
|
JoursNonVerrouillesView.as_view(
|
52
|
template_name='agenda/days-not-locked.html'),
|
53
|
name='days-not-locked'),
|
54
|
url(r'^ressources/$',
|
55
|
RessourcesView.as_view(
|
56
|
template_name='agenda/ressources.html'),
|
57
|
name='ressources'),
|
58
|
url(r'^ajax-worker-tab/(?P<worker_id>\d+)$',
|
59
|
AjaxWorkerTabView.as_view(),
|
60
|
name='ajax-worker-tab'),
|
61
|
url(r'^ajax-worker-disponibility-column/(?P<worker_id>\d+)$',
|
62
|
AjaxWorkerDisponibilityColumnView.as_view(),
|
63
|
name='ajax-worker-disponibility-column'),
|
64
|
)
|
65
|
|
66
|
urlpatterns = patterns('',
|
67
|
url(r'^$', redirect_today),
|
68
|
url(r'^(?P<date>[^/]*)/', include(agenda_patterns)))
|