1
|
from django.conf.urls import patterns, url, include
|
2
|
|
3
|
|
4
|
user_patterns = patterns('calebasse.personnes.views',
|
5
|
url(r'^$', 'user_listing'),
|
6
|
url(r'^new/$', 'user_new'),
|
7
|
url(r'^(?P<pk>\d+)/$', 'user_update'),
|
8
|
url(r'^(?P<pk>\d+)/delete/$', 'user_delete'),
|
9
|
)
|
10
|
|
11
|
|
12
|
worker_patterns = patterns('calebasse.personnes.views',
|
13
|
url(r'^$', 'worker_listing'),
|
14
|
url(r'^new/$', 'worker_new'),
|
15
|
url(r'^(?P<pk>\d+)/$', 'worker_update', name='worker_update'),
|
16
|
url(r'^(?P<pk>\d+)/delete/$', 'worker_delete'),
|
17
|
url(r'^(?P<pk>\d+)/holidays/$', 'worker_holidays_update'),
|
18
|
url(r'^(?P<pk>\d+)/(?P<weekday>\w+)/$', 'worker_schedule_update'),
|
19
|
)
|
20
|
|
21
|
holidays_patterns = patterns('calebasse.personnes.views',
|
22
|
url(r'^$', 'holiday_listing'),
|
23
|
url(r'^annuel/$', 'yearly_holiday_update'))
|
24
|
|
25
|
urlpatterns = patterns('calebasse.personnes.views',
|
26
|
url(r'^$', 'homepage'),
|
27
|
url(r'^acces/', include(user_patterns)),
|
28
|
url(r'^gestion/', include(worker_patterns)),
|
29
|
url(r'^conges/', include(holidays_patterns)),
|
30
|
)
|