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
|
|
7
|
|
8
|
agenda_patterns = patterns('',
|
9
|
url(r'^$',
|
10
|
AgendaHomepageView.as_view(
|
11
|
template_name='agenda/index.html'),
|
12
|
name='agenda'),
|
13
|
url(r'^nouveau-rdv/$',
|
14
|
NewAppointmentView.as_view(),
|
15
|
name='nouveau-rdv'),
|
16
|
url(r'^activite-du-service/$',
|
17
|
TemplateView.as_view(
|
18
|
template_name='agenda/activite-du-service.html'),
|
19
|
name='activite-du-service'),
|
20
|
url(r'^validation-des-actes/$',
|
21
|
TemplateView.as_view(
|
22
|
template_name='agenda/validation-des-actes.html'),
|
23
|
name='validation-des-actes'),
|
24
|
url(r'^rendez-vous-periodiques/$',
|
25
|
TemplateView.as_view(
|
26
|
template_name='agenda/rendez-vous-periodique.html'),
|
27
|
name='rendez-vous-periodiques'),
|
28
|
)
|
29
|
|
30
|
urlpatterns = patterns('',
|
31
|
url(r'^$', redirect_today),
|
32
|
url(r'^(?P<date>[^/]*)/', include(agenda_patterns)))
|
33
|
|