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