Project

General

Profile

« Previous | Next » 

Revision f69ae8a2

Added by Benjamin Dauvergne over 11 years ago

personnes: add views to manage service holidays

View differences:

calebasse/personnes/urls.py
12 12
worker_patterns = patterns('calebasse.personnes.views',
13 13
    url(r'^$', 'worker_listing'),
14 14
    url(r'^new/$', 'worker_new'),
15
    url(r'^(?P<pk>\d+)/$', 'worker_update'),
15
    url(r'^(?P<pk>\d+)/$', 'worker_update', name='worker_update'),
16 16
    url(r'^(?P<pk>\d+)/delete/$', 'worker_delete'),
17 17
    url(r'^(?P<pk>\d+)/holidays/$', 'worker_holidays_update'),
18 18
    url(r'^(?P<pk>\d+)/(?P<weekday>\w+)/$', 'worker_schedule_update'),
19 19
)
20 20

  
21
holidays_patterns = patterns('calebasse.personnes.views',
22
    url(r'^$', 'holiday_listing'),
23
    url(r'^annuel/$', 'yearly_holiday_update'))
21 24

  
22 25
urlpatterns = patterns('calebasse.personnes.views',
23 26
    url(r'^$', 'homepage'),
24 27
    url(r'^acces/', include(user_patterns)),
25 28
    url(r'^gestion/', include(worker_patterns)),
29
    url(r'^conges/', include(holidays_patterns)),
26 30
    )

Also available in: Unified diff