1 |
1f724c01
|
Benjamin Dauvergne
|
from django.conf.urls import patterns, url, include
|
2 |
6c1bf4ad
|
Jérôme Schneider
|
from calebasse.ressources.urls import ressource_patterns
|
3 |
1f724c01
|
Benjamin Dauvergne
|
|
4 |
|
|
|
5 |
957da834
|
Benjamin Dauvergne
|
user_patterns = patterns('calebasse.personnes.views',
|
6 |
|
|
url(r'^$', 'user_listing'),
|
7 |
|
|
url(r'^new/$', 'user_new'),
|
8 |
|
|
url(r'^(?P<pk>\d+)/$', 'user_update'),
|
9 |
|
|
url(r'^(?P<pk>\d+)/delete/$', 'user_delete'),
|
10 |
1f724c01
|
Benjamin Dauvergne
|
)
|
11 |
|
|
|
12 |
c029f285
|
Serghei MIHAI
|
holiday_actions_paterns = patterns('calebasse.personnes.views',
|
13 |
6ba250f7
|
Serghei MIHAI
|
url(r'^$', 'worker_holidays_update', name = 'worker-holidays-update'),
|
14 |
c029f285
|
Serghei MIHAI
|
url(r'^(?P<pk>\d+)/editer/?$', 'edit_holiday', name = 'edit_holiday'),
|
15 |
|
|
url(r'^(?P<pk>\d+)/supprimer/?$', 'delete_holiday', name = 'delete_holiday'),
|
16 |
|
|
url(r'^ajouter/?$', 'create_holiday', name = 'create_holiday')
|
17 |
|
|
)
|
18 |
1f724c01
|
Benjamin Dauvergne
|
|
19 |
957da834
|
Benjamin Dauvergne
|
worker_patterns = patterns('calebasse.personnes.views',
|
20 |
|
|
url(r'^$', 'worker_listing'),
|
21 |
|
|
url(r'^new/$', 'worker_new'),
|
22 |
f69ae8a2
|
Benjamin Dauvergne
|
url(r'^(?P<pk>\d+)/$', 'worker_update', name='worker_update'),
|
23 |
957da834
|
Benjamin Dauvergne
|
url(r'^(?P<pk>\d+)/delete/$', 'worker_delete'),
|
24 |
f8f903c3
|
Benjamin Dauvergne
|
url(r'^(?P<pk>\d+)/(?P<weekday>\d)/$', 'worker_schedule_update'),
|
25 |
c029f285
|
Serghei MIHAI
|
url(r'^(?P<worker_pk>\d+)/holidays/', include(holiday_actions_paterns)),
|
26 |
957da834
|
Benjamin Dauvergne
|
)
|
27 |
e3c5afd2
|
Jérôme Schneider
|
|
28 |
f69ae8a2
|
Benjamin Dauvergne
|
holidays_patterns = patterns('calebasse.personnes.views',
|
29 |
|
|
url(r'^$', 'holiday_listing'),
|
30 |
3ade90b9
|
Serghei MIHAI
|
# url(r'^groupe/$', 'group_holiday_update',
|
31 |
|
|
# name='group-holiday-update'),
|
32 |
|
|
url(r'^groupe/$', 'group_holidays', name = 'group-holidays'),
|
33 |
5b90c12e
|
Serghei MIHAI
|
url(r'^groupe/ajouter/?$', 'create_group_holiday', name = 'create-group-holiday'),
|
34 |
3ade90b9
|
Serghei MIHAI
|
url(r'^groupe/(?P<pk>\d+)/editer/?$', 'edit_group_holiday', name = 'edit-group-holiday'),
|
35 |
|
|
url(r'^groupe/(?P<pk>\d+)/supprimer/?$', 'delete_group_holiday', name = 'delete-group-holiday'),
|
36 |
c029f285
|
Serghei MIHAI
|
)
|
37 |
1f724c01
|
Benjamin Dauvergne
|
|
38 |
957da834
|
Benjamin Dauvergne
|
urlpatterns = patterns('calebasse.personnes.views',
|
39 |
|
|
url(r'^$', 'homepage'),
|
40 |
|
|
url(r'^acces/', include(user_patterns)),
|
41 |
|
|
url(r'^gestion/', include(worker_patterns)),
|
42 |
f69ae8a2
|
Benjamin Dauvergne
|
url(r'^conges/', include(holidays_patterns)),
|
43 |
6c1bf4ad
|
Jérôme Schneider
|
url(r'^(?P<model_name>[a-z-]*)/', include(ressource_patterns)),
|
44 |
1f724c01
|
Benjamin Dauvergne
|
)
|