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