From ce740bb5d01b6ec128df2adc21854f742b4e0250 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Larchev=C3=AAque?= Date: Thu, 29 Mar 2012 16:43:51 -0400 Subject: [PATCH] employe apercu --- project/rh/models.py | 2 +- project/rh/templates/admin/rh/employe/apercu.html | 26 ++++--- project/rh/templates/rh/include/commentaires.html | 46 ++++++------ project/rh/templates/rh/include/dossier.html | 5 +- project/rh/templates/rh/include/employe.html | 83 +++++---------------- project/rh/templates/rh/include/pieces.html | 2 +- project/rh/templates/rh/include/poste.html | 4 +- project/rh/views.py | 1 + 8 files changed, 66 insertions(+), 103 deletions(-) diff --git a/project/rh/models.py b/project/rh/models.py index 15a8ad7..290ba51 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -248,7 +248,7 @@ class Poste_(AUFMetadata): return [self.implantation.region] def get_devise(self): - return ValeurPoint.objects.filter(implantation=self.implantation).order_by('annee')[0].devise + return ValeurPoint.objects.filter(implantation=self.implantation, devise__archive=False).order_by('annee')[0].devise class Poste(Poste_): __doc__ = Poste_.__doc__ diff --git a/project/rh/templates/admin/rh/employe/apercu.html b/project/rh/templates/admin/rh/employe/apercu.html index 46c3d9d..55bd720 100644 --- a/project/rh/templates/admin/rh/employe/apercu.html +++ b/project/rh/templates/admin/rh/employe/apercu.html @@ -1,6 +1,13 @@ {% extends 'admin/change_form.html' %} + {% load i18n admin_modify adminmedia %} +{% block extrahead %} + {{ block.super }} + + +{% endblock %} + {% block breadcrumbs %}{% if not is_popup %}