added fieldsets to the rh.Poste admin
[auf_rh_dae.git] / project / rh / admin.py
1 # -*- encoding: utf-8 -*-
2
3 from models import *
4 from django.contrib import admin
5
6
7 class CommentaireAdmin(admin.ModelAdmin):
8 pass
9
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 pass
71
72 class DossierPieceAdmin(admin.ModelAdmin):
73 pass
74
75 class DossierCommentaireAdmin(admin.ModelAdmin):
76 pass
77
78 class RemunerationAdmin(admin.ModelAdmin):
79 pass
80
81 class ContratAdmin(admin.ModelAdmin):
82 pass
83
84 class EvenementAdmin(admin.ModelAdmin):
85 pass
86
87 class EvenementRemunerationAdmin(admin.ModelAdmin):
88 pass
89
90 class FamilleEmploiAdmin(admin.ModelAdmin):
91 pass
92
93 class TypePosteAdmin(admin.ModelAdmin):
94 pass
95
96 class TypeRemunerationAdmin(admin.ModelAdmin):
97 pass
98
99 class TypeRevalorisationAdmin(admin.ModelAdmin):
100 pass
101
102 class ServiceAdmin(admin.ModelAdmin):
103 pass
104
105 class OrganismeBstgAdmin(admin.ModelAdmin):
106 pass
107
108 class StatutAdmin(admin.ModelAdmin):
109 pass
110
111 class ClassementAdmin(admin.ModelAdmin):
112 pass
113
114 class TauxChangeAdmin(admin.ModelAdmin):
115 pass
116
117 class ValeurPointAdmin(admin.ModelAdmin):
118 pass
119
120 class DeviseAdmin(admin.ModelAdmin):
121 pass
122
123 class TypeContratAdmin(admin.ModelAdmin):
124 pass
125
126
127 admin.site.register(Commentaire, CommentaireAdmin)
128 admin.site.register(Poste, PosteAdmin)
129 admin.site.register(PosteFinancement, PosteFinancementAdmin)
130 admin.site.register(PostePiece, PostePieceAdmin)
131 admin.site.register(PosteCommentaire, PosteCommentaireAdmin)
132 admin.site.register(Employe, EmployeAdmin)
133 admin.site.register(EmployePiece, EmployePieceAdmin)
134 admin.site.register(EmployeCommentaire, EmployeCommentaireAdmin)
135 admin.site.register(AyantDroit, AyantDroitAdmin)
136 admin.site.register(AyantDroitCommentaire, AyantDroitCommentaireAdmin)
137 admin.site.register(Dossier, DossierAdmin)
138 admin.site.register(DossierPiece, DossierPieceAdmin)
139 admin.site.register(DossierCommentaire, DossierCommentaireAdmin)
140 admin.site.register(Remuneration, RemunerationAdmin)
141 admin.site.register(Contrat, ContratAdmin)
142 admin.site.register(Evenement, EvenementAdmin)
143 admin.site.register(EvenementRemuneration, EvenementRemunerationAdmin)
144 admin.site.register(FamilleEmploi, FamilleEmploiAdmin)
145 admin.site.register(TypePoste, TypePosteAdmin)
146 admin.site.register(TypeRemuneration, TypeRemunerationAdmin)
147 admin.site.register(TypeRevalorisation, TypeRevalorisationAdmin)
148 admin.site.register(Service, ServiceAdmin)
149 admin.site.register(OrganismeBstg, OrganismeBstgAdmin)
150 admin.site.register(Statut, StatutAdmin)
151 admin.site.register(Classement, ClassementAdmin)
152 admin.site.register(TauxChange, TauxChangeAdmin)
153 admin.site.register(ValeurPoint, ValeurPointAdmin)
154 admin.site.register(Devise, DeviseAdmin)
155 admin.site.register(TypeContrat, TypeContratAdmin)