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, JoursNonVerouillesView)
|
9
|
|
10
|
agenda_patterns = patterns('',
|
11
|
url(r'^$',
|
12
|
AgendaHomepageView.as_view(
|
13
|
template_name='agenda/index.html'),
|
14
|
name='agenda'),
|
15
|
url(r'^nouveau-rdv/$',
|
16
|
NewAppointmentView.as_view(),
|
17
|
name='nouveau-rdv'),
|
18
|
url(r'^update-rdv/(?P<id>\d+)$',
|
19
|
UpdateAppointmentView.as_view(),
|
20
|
name='update-rdv'),
|
21
|
url(r'^new-event/$',
|
22
|
NewEventView.as_view(),
|
23
|
name='new-event'),
|
24
|
url(r'^update-event/(?P<id>\d+)$',
|
25
|
UpdateEventView.as_view(),
|
26
|
name='update-event'),
|
27
|
url(r'^activite-du-service/$',
|
28
|
AgendaServiceActivityView.as_view(
|
29
|
template_name='agenda/service-activity.html'),
|
30
|
name='activite-du-service'),
|
31
|
url(r'^validation-des-actes/$',
|
32
|
AgendaServiceActValidationView.as_view(
|
33
|
template_name='agenda/act-validation.html'),
|
34
|
name='validation-des-actes'),
|
35
|
url(r'^validation-des-actes/validation-all/$',
|
36
|
AutomatedValidationView.as_view(),
|
37
|
name='validation-all'),
|
38
|
url(r'^validation-des-actes/unlock-all/$',
|
39
|
UnlockAllView.as_view(),
|
40
|
name='unlock-all'),
|
41
|
url(r'^rendez-vous-periodiques/$',
|
42
|
TemplateView.as_view(
|
43
|
template_name='agenda/rendez-vous-periodique.html'),
|
44
|
name='rendez-vous-periodiques'),
|
45
|
url(r'^agendas-therapeutes/$',
|
46
|
AgendasTherapeutesView.as_view(
|
47
|
template_name='agenda/agendas-therapeutes.html'),
|
48
|
name='agendas-therapeutes'),
|
49
|
url(r'^jours-non-verouilles/$',
|
50
|
JoursNonVerouillesView.as_view(
|
51
|
template_name='agenda/days-not-locked.html'),
|
52
|
name='days-not-locked'),
|
53
|
)
|
54
|
|
55
|
urlpatterns = patterns('',
|
56
|
url(r'^$', redirect_today),
|
57
|
url(r'^(?P<date>[^/]*)/', include(agenda_patterns)))
|