951662f74dfea0c9bc6e5812470630cf8325806c
[auf_rh_dae.git] / project / dae / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.defaults import patterns, url
3
4 urlpatterns = patterns(
5 'project.dae.views',
6 url(r'^$', 'index', name='dae_index'),
7
8 # poste
9 url(r'^postes$', 'postes_liste', name='dae_postes_liste'),
10 url(r'^poste/consulter/(?P<key>.*)$', 'poste_consulter',
11 name='poste_consulter'),
12 url(r'^poste/importer/(\d+)$', 'poste_importer',
13 name='poste_importer'),
14 url(r'^poste$', 'poste', name='poste'),
15 url(r'^poste/(?P<key>.*)$', 'poste', name='poste'),
16 url(r'^pieces-postes/(\d+)/(.*)$', 'poste_piece', name='poste_piece'),
17
18 # embauche
19 url(r'^embauches$', 'embauches_liste', name='dae_embauches_liste'),
20 url(r'^embauches-finalisees$', 'embauches_finalisees',
21 name='embauches_finalisees'),
22 url(r'^embauche$', 'embauche_choisir_poste', name='embauche'),
23 url(r'^embauche/consulter/(?P<dossier_id>.*)$', 'embauche_consulter',
24 name='embauche_consulter'),
25 url(r'^embauche/importer/(?P<dossier_id>.*)$', 'embauche_importer',
26 name='embauche_importer'),
27 url(r'^embauche/(?P<key>.*)/(?P<dossier_id>.*)$', 'embauche',
28 name='embauche'),
29 url(r'^embauche/(?P<key>.*)$', 'embauche', name='embauche'),
30
31 # contrats
32 url(r'^embauches/(?P<dossier_id>\d+)/contrats/ajouter$',
33 'embauche_ajouter_contrat', name='embauche_ajouter_contrat'),
34 url(r'^contrats/(\d+)/fichier/(.*)$', 'contrat', name='contrat'),
35 url(r'^contrats/(\d+)/supprimer$', 'contrat_supprimer',
36 name='contrat_supprimer'),
37
38 # DAE numérisée
39 url(r'^embauches/(\d+)/dae_numerisee$', 'dae_numerisee',
40 name='dae_numerisee'),
41 url(r'^embauches/(\d+)/dae_numerisee/modifier$', 'dae_numerisee_modifier',
42 name='dae_numerisee_modifier'),
43 url(r'^embauches/(\d+)/dae_numerisee/supprimer$',
44 'dae_numerisee_supprimer', name='dae_numerisee_supprimer'),
45
46 # ajax
47 url(r'^employe$', 'employe', name='employe'),
48 url(r'^employe/(?P<key>.*)$', 'employe', name='employe'),
49 url(r'^dossier$', 'dossier', name='dossier'),
50 url(r'^dossier/(?P<poste_key>.*)/(?P<employe_key>.*)$', 'dossier',
51 name='dossier'),
52 url(r'^pieces-dossiers/(\d+)/(.*)$', 'dossier_piece',
53 name='dossier_piece'),
54 url(r'^dossier_resume/(?P<dossier_id>.*)$', 'dossier_resume',
55 name='dossier_resume'),
56 url(r'^poste_resume/(?P<dossier_id>.*)$', 'poste_resume',
57 name='poste_resume'),
58 url(r'^salaire$', 'salaire', name='salaire'),
59 url(r'^salaire/(.*)/(.*)/(.*)$', 'salaire', name='salaire'),
60 url(r'^coefficient$', 'coefficient', name='dae_coefficient'),
61 url(r'^liste_valeurs_point$', 'liste_valeurs_point',
62 name='liste_valeurs_point'),
63 url(r'^liste_postes$', 'liste_postes', name='liste_postes'),
64 url(r'^devise$', 'devise', name='dae_devise'),
65 url(r'^devises$', 'devises', name='devises'),
66 url(r'^devise/code$', 'devise_code', name='dae_devise_code'),
67 url(r'^add-remun$', 'add_remun', name='add_remun'),
68 url(r'^add-remun/(?P<dossier>.*)/(?P<type_remun>.*)$', 'add_remun',
69 name='add_remun'),
70 )