Project

General

Profile

« Previous | Next » 

Revision 53647eb3

Added by Serghei Mihai over 10 years ago

absences management refactored

View differences:

calebasse/personnes/urls.py
9 9
    url(r'^(?P<pk>\d+)/delete/$', 'user_delete'),
10 10
)
11 11

  
12
holiday_actions_paterns = patterns('calebasse.personnes.views',
13
    url(r'^(?P<pk>\d+)/editer/?$', 'edit_holiday', name = 'edit_holiday'),
14
    url(r'^(?P<pk>\d+)/supprimer/?$', 'delete_holiday', name = 'delete_holiday'),
15
    url(r'^ajouter/?$', 'create_holiday', name = 'create_holiday')
16
)
12 17

  
13 18
worker_patterns = patterns('calebasse.personnes.views',
14 19
    url(r'^$', 'worker_listing'),
15 20
    url(r'^new/$', 'worker_new'),
16 21
    url(r'^(?P<pk>\d+)/$', 'worker_update', name='worker_update'),
17 22
    url(r'^(?P<pk>\d+)/delete/$', 'worker_delete'),
18
    url(r'^(?P<pk>\d+)/holidays/$', 'worker_holidays_update',
19
        name='worker-holidays-update'),
20 23
    url(r'^(?P<pk>\d+)/(?P<weekday>\d)/$', 'worker_schedule_update'),
24
    url(r'^(?P<worker_pk>\d+)/holidays/', include(holiday_actions_paterns)),
21 25
)
22 26

  
23 27
holidays_patterns = patterns('calebasse.personnes.views',
24 28
    url(r'^$', 'holiday_listing'),
25 29
    url(r'^groupe/$', 'group_holiday_update',
26
        name='group-holiday-update'))
30
        name='group-holiday-update'),
31
    )
27 32

  
28 33
urlpatterns = patterns('calebasse.personnes.views',
29 34
    url(r'^$', 'homepage'),

Also available in: Unified diff