{% block sous_titre %}Mon profil RH{% endblock %}
{% block main %}
-<div id="identification" class="contenu">
- <div class="gauche">
- <img src="{{ employe.url_photo }}" alt="Photo" class="bordure" />
- </div>
- <div class="gauche">
- <h1>{{ employe.civilite }} {{ employe }}</h1>
-
- {% for d in dossiers_encours %}
- <p>
- {% if employe.genre.upper == 'F' %}
- {{ d.poste.nom_feminin }}
- {% else %}
- {{ d.poste.nom }}
- {% endif %}
- </p>
- <p>
- {{ d.poste.service|default_if_none:"Service inconnu" }}<br />
- {{ d.poste.implantation.nom }}<br />
- {{ d.poste.implantation.adresse_physique_ville }}
- </p>
- {% endfor %}
- </div>
-</div>
+
+{% include "rh/include/employe.html" %}
<div id="infos_perso" class="clear gauche50 contenu">
<h2>Informations personnelles</h2>
<tr>
<th>Téléphone :</th>
<td>
- {% for d in dossiers_encours %}
+ {% for d in employe.dossiers_encours %}
{% if d.poste.implantation.telephone_interne %}
{{ d.poste.implantation.telephone_interne }}
{% else %}
<tr>
<th>Télécopie :</th>
<td>
- {% for d in dossiers_encours %}
+ {% for d in employe.dossiers_encours %}
{% if d.poste.implantation.fax_interne %}
{{ d.poste.implantation.fax_interne }}
{% else %}
<tr>
<th>Adresse postale :</th>
<td>
- {% for d in dossiers_encours %}
+ {% for d in employe.dossiers_encours %}
{% comment %}
Formattage identique à annuaire intranet.
{% endcomment %}
<hr />
<div id="postes" class="contenu">
- <h2>Poste{{ dossiers_encours|pluralize }} en cours</h2>
+ <h2>Poste{{ employe.dossiers_encours|pluralize }} en cours</h2>
- {% for d in dossiers_encours %}
+ {% for d in employe.dossiers_encours %}
<h3>{{ d.poste.nom }}</h3>
<p>
{{ d.poste.service }}<br />
<hr />
<div id="dossiers" class="contenu">
- <h2>Ancien{{ dossiers|pluralize }} poste{{ dossiers|pluralize }}</h2>
+ <h2>
+ Ancien{{ employe.dossiers.count|pluralize }} poste{{ employe.dossiers.count|pluralize }}
+ ({{ employe.dossiers.count }})
+ </h2>
<table>
<tbody>
- {% for d in dossiers_passes %}
+ {% for d in employe.dossiers_passes %}
{% include "rh/include/dossier.html" %}
{% endfor %}
</tbody>
{% endcomment %}
{% endblock %}
-