fusionné rh, corrigé des bugs et ajouté des ModelAdmin
[auf_rh_dae.git] / project / rh / lib.py
1 # -*- encoding: utf-8 -*-
2
3 from django.contrib import admin
4
5
6 class CommentaireAdmin(admin.ModelAdmin):
7 pass
8
9
10 class PosteAdmin(admin.ModelAdmin):
11 fieldsets = (
12 (None, {
13 'fields': ('nom', 'nom_feminin', 'implantation', 'type_poste',
14 'service', 'responsable')
15 }),
16 ('Contrat', {
17 'fields': ('regime_travail', 'regime_travail_nb_heure_semaine')
18 }),
19 ('Recrutement', {
20 'fields': ('local', 'expatrie', 'mise_a_disposition', 'appel')
21 }),
22 ('Rémunération', {
23 'fields': ('classement_min', 'classement_max', 'valeur_point_min',
24 'valeur_point_max', 'devise_min', 'devise_max',
25 'salaire_min', 'salaire_max', 'indemn_min',
26 'indemn_max', 'autre_min', 'autre_max')
27 }),
28 ('Comparatifs de rémunération', {
29 'fields': ('devise_comparaison', 'comp_locale_min',
30 'comp_locale_max', 'comp_universite_min',
31 'comp_universite_max', 'comp_fonctionpub_min',
32 'comp_fonctionpub_max', 'comp_ong_min', 'comp_ong_max',
33 'comp_autre_min', 'comp_autre_max')
34 }),
35 ('Justification', {
36 'fields': ('justification',)
37 }),
38 ('Autres Metadata', {
39 'fields': ('date_validation', 'date_debut', 'date_fin')
40 }),
41 )
42
43
44 class PosteFinancementAdmin(admin.ModelAdmin):
45 pass
46
47
48 class PostePieceAdmin(admin.ModelAdmin):
49 pass
50
51
52 class PosteCommentaireAdmin(admin.ModelAdmin):
53 pass
54
55
56 class EmployeAdmin(admin.ModelAdmin):
57 pass
58
59
60 class EmployePieceAdmin(admin.ModelAdmin):
61 pass
62
63
64 class EmployeCommentaireAdmin(admin.ModelAdmin):
65 pass
66
67
68 class AyantDroitAdmin(admin.ModelAdmin):
69 pass
70
71
72 class AyantDroitCommentaireAdmin(admin.ModelAdmin):
73 pass
74
75
76 class DossierAdmin(admin.ModelAdmin):
77 list_display = ('_employe', '_poste')
78
79 def _poste(self, dossier):
80 return unicode(dossier.poste.nom)
81 _poste.short_description = u'Poste'
82
83 def _employe(self, dossier):
84 return unicode(dossier.employe)
85 _employe.short_description = u'Employé'
86
87
88 class DossierPieceAdmin(admin.ModelAdmin):
89 pass
90
91
92 class DossierCommentaireAdmin(admin.ModelAdmin):
93 pass
94
95
96 class RemunerationAdmin(admin.ModelAdmin):
97 pass
98
99
100 class ContratAdmin(admin.ModelAdmin):
101 pass
102
103
104 class EvenementAdmin(admin.ModelAdmin):
105 pass
106
107
108 class EvenementRemunerationAdmin(admin.ModelAdmin):
109 pass
110
111
112 class FamilleEmploiAdmin(admin.ModelAdmin):
113 pass
114
115
116 class TypePosteAdmin(admin.ModelAdmin):
117 pass
118
119
120 class TypeRemunerationAdmin(admin.ModelAdmin):
121 pass
122
123
124 class TypeRevalorisationAdmin(admin.ModelAdmin):
125 pass
126
127
128 class ServiceAdmin(admin.ModelAdmin):
129 pass
130
131
132 class OrganismeBstgAdmin(admin.ModelAdmin):
133 pass
134
135
136 class StatutAdmin(admin.ModelAdmin):
137 pass
138
139
140 class ClassementAdmin(admin.ModelAdmin):
141 pass
142
143
144 class TauxChangeAdmin(admin.ModelAdmin):
145 pass
146
147
148 class ValeurPointAdmin(admin.ModelAdmin):
149 pass
150
151
152 class DeviseAdmin(admin.ModelAdmin):
153 pass
154
155
156 class TypeContratAdmin(admin.ModelAdmin):
157 pass
158
159
160 class ResponsableImplantationAdmin(admin.ModelAdmin):
161 pass