fix conflict
[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 class CommentaireAdmin(admin.ModelAdmin):
9 pass
10
11 class PosteAdmin(admin.ModelAdmin):
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
44
45 class PosteFinancementAdmin(admin.ModelAdmin):
46 pass
47
48 class PostePieceAdmin(admin.ModelAdmin):
49 pass
50
51 class PosteCommentaireAdmin(admin.ModelAdmin):
52 pass
53
54 class EmployeAdmin(admin.ModelAdmin):
55 pass
56
57 class EmployePieceAdmin(admin.ModelAdmin):
58 pass
59
60 class EmployeCommentaireAdmin(admin.ModelAdmin):
61 pass
62
63 class AyantDroitAdmin(admin.ModelAdmin):
64 pass
65
66 class AyantDroitCommentaireAdmin(admin.ModelAdmin):
67 pass
68
69 class DossierAdmin(admin.ModelAdmin):
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
80 class DossierPieceAdmin(admin.ModelAdmin):
81 pass
82
83 class DossierCommentaireAdmin(admin.ModelAdmin):
84 pass
85
86 class RemunerationAdmin(admin.ModelAdmin):
87 pass
88
89 class ContratAdmin(admin.ModelAdmin):
90 pass
91
92 class EvenementAdmin(admin.ModelAdmin):
93 pass
94
95 class EvenementRemunerationAdmin(admin.ModelAdmin):
96 pass
97
98 class FamilleEmploiAdmin(admin.ModelAdmin):
99 pass
100
101 class TypePosteAdmin(admin.ModelAdmin):
102 pass
103
104 class TypeRemunerationAdmin(admin.ModelAdmin):
105 pass
106
107 class TypeRevalorisationAdmin(admin.ModelAdmin):
108 pass
109
110 class ServiceAdmin(admin.ModelAdmin):
111 pass
112
113 class OrganismeBstgAdmin(admin.ModelAdmin):
114 pass
115
116 class StatutAdmin(admin.ModelAdmin):
117 pass
118
119 class ClassementAdmin(admin.ModelAdmin):
120 pass
121
122 class TauxChangeAdmin(admin.ModelAdmin):
123 pass
124
125 class ValeurPointAdmin(admin.ModelAdmin):
126 pass
127
128 class DeviseAdmin(admin.ModelAdmin):
129 pass
130
131 class TypeContratAdmin(admin.ModelAdmin):
132 pass
133
134
135 admin.site.register(Commentaire, CommentaireAdmin)
136 admin.site.register(Poste, PosteAdmin)
137 admin.site.register(PosteFinancement, PosteFinancementAdmin)
138 admin.site.register(PostePiece, PostePieceAdmin)
139 admin.site.register(PosteCommentaire, PosteCommentaireAdmin)
140 admin.site.register(Employe, EmployeAdmin)
141 admin.site.register(EmployePiece, EmployePieceAdmin)
142 admin.site.register(EmployeCommentaire, EmployeCommentaireAdmin)
143 admin.site.register(AyantDroit, AyantDroitAdmin)
144 admin.site.register(AyantDroitCommentaire, AyantDroitCommentaireAdmin)
145 admin.site.register(Dossier, DossierAdmin)
146 admin.site.register(DossierPiece, DossierPieceAdmin)
147 admin.site.register(DossierCommentaire, DossierCommentaireAdmin)
148 admin.site.register(Remuneration, RemunerationAdmin)
149 admin.site.register(Contrat, ContratAdmin)
150 admin.site.register(Evenement, EvenementAdmin)
151 admin.site.register(EvenementRemuneration, EvenementRemunerationAdmin)
152 admin.site.register(FamilleEmploi, FamilleEmploiAdmin)
153 admin.site.register(TypePoste, TypePosteAdmin)
154 admin.site.register(TypeRemuneration, TypeRemunerationAdmin)
155 admin.site.register(TypeRevalorisation, TypeRevalorisationAdmin)
156 admin.site.register(Service, ServiceAdmin)
157 admin.site.register(OrganismeBstg, OrganismeBstgAdmin)
158 admin.site.register(Statut, StatutAdmin)
159 admin.site.register(Classement, ClassementAdmin)
160 admin.site.register(TauxChange, TauxChangeAdmin)
161 admin.site.register(ValeurPoint, ValeurPointAdmin)
162 admin.site.register(Devise, DeviseAdmin)
163 admin.site.register(TypeContrat, TypeContratAdmin)