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