From abf919058a77cb423400789e9a02f5e8040fd20e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Caissy Date: Thu, 2 Feb 2012 18:02:49 -0600 Subject: [PATCH] WIP, Modification des apercus --- project/rh/models.py | 3 + project/rh/templates/admin/rh/employe/apercu.html | 4 +- project/rh/templates/admin/rh/poste/apercu.html | 3 +- project/rh/templates/rh/include/employe.html | 66 ++++++++++++++++++++- project/rh/templates/rh/include/imprimer.html | 25 +++++++- project/rh/templates/rh/include/pieces.html | 2 +- project/rh/templates/rh/include/poste.html | 12 ++-- project/rh/views.py | 4 +- 8 files changed, 105 insertions(+), 14 deletions(-) diff --git a/project/rh/models.py b/project/rh/models.py index 6457aa5..0c47dfe 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -249,6 +249,9 @@ class PosteFinancement_(models.Model): def __unicode__(self): return u'%s : %s %%' % (self.type, self.pourcentage) + def choix(self): + return u"%s" % dict(POSTE_FINANCEMENT_CHOICES)[self.type] + class PosteFinancement(PosteFinancement_): pass diff --git a/project/rh/templates/admin/rh/employe/apercu.html b/project/rh/templates/admin/rh/employe/apercu.html index e1b4c5c..c7fa621 100644 --- a/project/rh/templates/admin/rh/employe/apercu.html +++ b/project/rh/templates/admin/rh/employe/apercu.html @@ -11,11 +11,11 @@ {% endif %}{% endblock %} {% block content %} -

{{ employe }}

+

Fiche employé

{% include "rh/include/imprimer.html" %} {% include "rh/include/employe.html" %} - +

{% for dossier in dossiers %} {% include "rh/include/dossier.html" %}
diff --git a/project/rh/templates/admin/rh/poste/apercu.html b/project/rh/templates/admin/rh/poste/apercu.html index b8aec4d..18de6a8 100644 --- a/project/rh/templates/admin/rh/poste/apercu.html +++ b/project/rh/templates/admin/rh/poste/apercu.html @@ -11,7 +11,8 @@ {% endif %}{% endblock %} {% block content %} -

Aperçu du poste {{ poste }}

+

Fiche de poste

+

{{ poste }}

{% include "rh/include/imprimer.html" %} {% include "rh/include/poste.html" %} diff --git a/project/rh/templates/rh/include/employe.html b/project/rh/templates/rh/include/employe.html index 3d095b9..ddf897b 100644 --- a/project/rh/templates/rh/include/employe.html +++ b/project/rh/templates/rh/include/employe.html @@ -1,2 +1,64 @@ -

Employé

-

{{ employe.nom|title }} {{employe.prenom|title }}

+

{{ employe.nom|title }} {{employe.prenom|title }}

+

Identification

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nom{{ employe.nom }}
Prénom{{ employe.prenom }}
Nom d'affichage{{ employe.nom_affichage|default:"" }}
Nationalité{{ employe.nationalite }}
Date de naissance{{ employe.date_naissance }}
Situation familiale{{ employe.situation_famille.nom }}
Date d'entrée à l'AUF{{ employe.date_entree }}
+ +

Coordonnées

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Adresse{{ employe.adresse }}
Ville{{ employe.ville }}
Code postal{{ employe.code_postal }}
Province{{ employe.province }}
Pays{{ employe.pays }}
Tél. domicile{{ employe.tel_domicile }}
Tél. mobile{{ employe.tel_cellulaire }}
diff --git a/project/rh/templates/rh/include/imprimer.html b/project/rh/templates/rh/include/imprimer.html index 70b23cc..6edfcd6 100644 --- a/project/rh/templates/rh/include/imprimer.html +++ b/project/rh/templates/rh/include/imprimer.html @@ -1,8 +1,31 @@ +