wip
[auf_rh_dae.git] / project / rh / lib.py
CommitLineData
6e7c919b
NC
1# -*- encoding: utf-8 -*-
2
3from django.contrib import admin
4
5
6class CommentaireAdmin(admin.ModelAdmin):
7 pass
8
9
10class 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
44class PosteFinancementAdmin(admin.ModelAdmin):
45 pass
46
0bdb773b 47
6e7c919b
NC
48class PostePieceAdmin(admin.ModelAdmin):
49 pass
50
0bdb773b 51
6e7c919b
NC
52class PosteCommentaireAdmin(admin.ModelAdmin):
53 pass
54
0bdb773b 55
6e7c919b
NC
56class EmployeAdmin(admin.ModelAdmin):
57 pass
58
0bdb773b 59
6e7c919b
NC
60class EmployePieceAdmin(admin.ModelAdmin):
61 pass
62
0bdb773b 63
6e7c919b
NC
64class EmployeCommentaireAdmin(admin.ModelAdmin):
65 pass
66
0bdb773b 67
6e7c919b
NC
68class AyantDroitAdmin(admin.ModelAdmin):
69 pass
70
0bdb773b 71
6e7c919b
NC
72class AyantDroitCommentaireAdmin(admin.ModelAdmin):
73 pass
74
0bdb773b 75
6e7c919b 76class DossierAdmin(admin.ModelAdmin):
0bdb773b
NC
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
6e7c919b
NC
87
88class DossierPieceAdmin(admin.ModelAdmin):
89 pass
90
0bdb773b 91
6e7c919b
NC
92class DossierCommentaireAdmin(admin.ModelAdmin):
93 pass
94
0bdb773b 95
6e7c919b
NC
96class RemunerationAdmin(admin.ModelAdmin):
97 pass
98
0bdb773b 99
6e7c919b
NC
100class ContratAdmin(admin.ModelAdmin):
101 pass
102
0bdb773b 103
6e7c919b
NC
104class EvenementAdmin(admin.ModelAdmin):
105 pass
106
0bdb773b 107
6e7c919b
NC
108class EvenementRemunerationAdmin(admin.ModelAdmin):
109 pass
110
0bdb773b 111
6e7c919b
NC
112class FamilleEmploiAdmin(admin.ModelAdmin):
113 pass
114
0bdb773b 115
6e7c919b
NC
116class TypePosteAdmin(admin.ModelAdmin):
117 pass
118
0bdb773b 119
6e7c919b
NC
120class TypeRemunerationAdmin(admin.ModelAdmin):
121 pass
122
0bdb773b 123
6e7c919b
NC
124class TypeRevalorisationAdmin(admin.ModelAdmin):
125 pass
126
0bdb773b 127
6e7c919b
NC
128class ServiceAdmin(admin.ModelAdmin):
129 pass
130
0bdb773b 131
6e7c919b
NC
132class OrganismeBstgAdmin(admin.ModelAdmin):
133 pass
134
0bdb773b 135
6e7c919b
NC
136class StatutAdmin(admin.ModelAdmin):
137 pass
138
0bdb773b 139
6e7c919b
NC
140class ClassementAdmin(admin.ModelAdmin):
141 pass
142
0bdb773b 143
6e7c919b
NC
144class TauxChangeAdmin(admin.ModelAdmin):
145 pass
146
0bdb773b 147
6e7c919b
NC
148class ValeurPointAdmin(admin.ModelAdmin):
149 pass
150
0bdb773b 151
6e7c919b
NC
152class DeviseAdmin(admin.ModelAdmin):
153 pass
154
0bdb773b 155
6e7c919b
NC
156class TypeContratAdmin(admin.ModelAdmin):
157 pass
0bdb773b
NC
158
159
160class ResponsableImplantationAdmin(admin.ModelAdmin):
161 pass