<div id="identification">
<div class="gauche50">
<h2>{{ employe.civilite }} {{ employe }}</h2>
+
{% for d in dossiers_encours %}
<p>
{% if employe.genre.upper == 'F' %}
{% endfor %}
</div>
<div class="gauche50">
+ {{ employe.photo }}
+ {% comment %}
<img src="{{ employe.photo }}" alt="Photo" width="150" height="200" />
+ {% endcomment %}
</div>
</div>
<hr class="clear" />
-<div>
- <h2>Dépendants (ayant-droits)</h2>
- {% if employe.ayantdroits.all %}
- <ul>
- {% for ad in employe.ayantdroits.all %}
- <li>{{ ad }}</li>
- {% endfor %}
- </ul>
- {% else %}
- Aucun dépendant.
- {% endif %}
-</div>
-
-<div id="infos" class="gauche50">
- <h2>Informations professionnelles AUF</h2>
- <table>
- <tbody>
- <tr>
- <th>Date d'entrée :</th>
- <td>{{ employe.date_entree }}</td>
- </tr>
- </tbody>
- </table>
-
-</div>
<div id="infos_perso" class="gauche50">
<h2>Informations personnelles</h2>
<table>
<tbody>
- {% comment %}
+ {% if employe.nom_affichage %}
<tr>
<th>Nom d'affichage :</th>
<td>{{ employe.nom_affichage }}</td>
</tr>
- {% endcomment %}
+ {% endif %}
<tr>
<th>Date de naissance :</th>
<td>{{ employe.date_naissance }}</td>
</tbody>
</table>
</div>
-
-<div id="coord" class="clear gauche50">
- <h2>Coordonnées professionnelles AUF</h2>
+<div id="infos" class="gauche50">
+ <h2>Informations professionnelles AUF</h2>
<table>
<tbody>
<tr>
- <th>Courriel :</th>
- <td>{{ employe.courriel }}</td>
- </tr>
- <tr>
- <th>Téléphone IP :</th>
- <td>{{ employe.champ }}</td>
- </tr>
- <tr>
- <th>Téléphone :</th>
- <td>{{ employe.champ }}</td>
- </tr>
- <tr>
- <th>Télécopie :</th>
- <td>{{ employe.champ }}</td>
- </tr>
- <tr>
- <th>Adresse postale :</th>
- <td>
- </td>
+ <th>Date d'entrée :</th>
+ <td>{{ employe.date_entree }}</td>
</tr>
</tbody>
</table>
</div>
-<div id="coord_perso" class="gauche50">
+
+<div id="coord_perso" class="clear gauche50">
<h2>Coordonnées personnelles</h2>
<table>
<tbody>
<td>
{{ employe.adresse }}<br />
{% if employe.ville or employe.province %}
- {{ employe.ville }}
- {% if employe.ville and employe.province %}, {% endif %}
+ {{ employe.ville }}{% if employe.ville and employe.province %}, {% endif %}
{{ employe.province }}
<br />
{% endif %}
</tbody>
</table>
</div>
-
-<div id="postes" class="clear">
- <h2>Poste{{ dossiers_encours|pluralize }}</h2>
- Globalement, mettre les infos du poste pertinente (n'en a pas beaucoup)...
- ... mais surtout les infos du dossier (le fait que cette personne occupe ce poste).
- {% for d in dossiers_encours %}
+<div id="coord" class="gauche50">
+ <h2>Coordonnées professionnelles AUF</h2>
<table>
<tbody>
<tr>
- <th>Nom :</th>
- <td>{{ d.poste.nom }}</td>
- </tr>
- <tr>
- <th>Implantation :</th>
- <td>{{ d.poste.implantation }}</td>
- </tr>
- <tr>
- <th>Type de poste :</th>
- <td>{{ d.poste.type_poste }}</td>
+ <th>Courriel :</th>
+ <td>{{ employe.courriel }}</td>
</tr>
<tr>
- <th>Service :</th>
- <td>{{ d.poste.service }}</td>
+ <th>Téléphone IP :</th>
+ <td>{{ employe.tel_pro_ip|default_if_none:"" }}</td>
</tr>
<tr>
- <th>Poste du responsable :</th>
- <td>{{ d.poste.responsable }}</td>
+ <th>Téléphone :</th>
+ <td>
+ {% for d in dossiers_encours %}
+ {% if d.poste.implantation.telephone_interne %}
+ {{ d.poste.implantation.telephone_interne }}
+ {% else %}
+ {{ d.poste.implantation.telephone|default_if_none:"" }}
+ {% endif %}
+ {% if employe.tel_pro_poste %}
+ <br />#{{ employe.tel_pro_poste }}
+ {% endif %}
+ {% endfor %}
+ </td>
</tr>
<tr>
- <th>Régime de travail :</th>
- <td>{{ d.poste.regime_travail }}</td>
+ <th>Télécopie :</th>
+ <td>
+ {% for d in dossiers_encours %}
+ {% if d.poste.implantation.fax_interne %}
+ {{ d.poste.implantation.fax_interne }}
+ {% else %}
+ {{ d.poste.implantation.fax|default_if_none:"" }}
+ {% endif %}
+ {% endfor %}
+ </td>
</tr>
<tr>
- <th>Nombre d'heures par semaine :</th>
- <td>{{ d.poste.regime_travail_nb_heure_semaine }}</td>
+ <th>Adresse postale :</th>
+ <td>
+ {% for d in dossiers_encours %}
+ {% comment %}
+ Formattage identique à annuaire intranet.
+ {% endcomment %}
+ {% with d.poste.implantation as i %}
+ {% if i.adresse_postale_precision_avant %}
+ {{ i.adresse_postale_precision_avant }}<br />
+ {% endif %}
+ {% if i.adresse_postale_no %}
+ {{ i.adresse_postale_no }},
+ {% endif %}
+ {% if i.adresse_postale_rue %}
+ {{ i.adresse_postale_rue }}<br />
+ {% endif %}
+ {% if i.adresse_postale_bureau %}
+ {{ i.adresse_postale_bureau }}
+ {% endif %}
+ {% if i.adresse_postale_precision %}
+ {{ i.adresse_postale_precision }}<br />
+ {% endif %}
+ {% if i.adresse_postale_boite_postale %}
+ {{ i.adresse_postale_boite_postale }}<br />
+ {% endif %}
+ {% if i.adresse_postale_code_postal_avant_ville %}
+ {% if i.adresse_postale_code_postal %}
+ {{ i.adresse_postale_code_postal }}
+ {% endif %}
+ {{ i.adresse_postale_ville }}{% if i.adresse_postale_ville and i.adresse_postale_region %}, {% endif %}
+ {% if i.adresse_postale_region %}
+ ({{ i.adresse_postale_region }})<br />
+ {% endif %}
+ {% else %}
+ {{ i.adresse_postale_ville }}{% if i.adresse_postale_ville and i.adresse_postale_region %}, {% endif %}
+ {% if i.adresse_postale_region %}
+ ({{ i.adresse_postale_region }})
+ {% endif %}
+ {% if i.adresse_postale_code_postal %}
+ {{ i.adresse_postale_code_postal }}<br />
+ {% endif %}
+ {% endif %}
+ {{ i.adresse_postale_pays.nom }}
+ {% endwith %}
+ {% endfor %}
+ </td>
</tr>
</tbody>
</table>
+</div>
+<div class="clear">
+ <h2>Dépendants (ayant-droits)</h2>
+ {% if employe.ayantdroits.all %}
+ <ul>
+ {% for ad in employe.ayantdroits.all %}
+ <li>{{ ad }}</li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>Aucun dépendant.</p>
+ {% endif %}
+</div>
+<hr />
+
+<div id="postes">
+ <h2>Poste{{ dossiers_encours|pluralize }} en cours</h2>
+
+ {% for d in dossiers_encours %}
+ <h3>{{ d.poste.nom }}</h3>
+ <p>
+ {{ d.poste.service }}<br />
+ {{ d.poste.implantation.nom }}<br />
+ {{ d.poste.implantation.adresse_physique_ville }}
+ </p>
+ <table>
+ <tbody>
+ <tr>
+ <th>Type de poste :</th>
+ <td>{{ d.poste.type_poste }}</td>
+ <th>Sous la responsabilité du poste :</th>
+ <td>{{ d.poste.responsable }}</td>
+ </tr>
+ <tr>
+ <th>Statut</th>
+ <td>{{ d.statut }}</td>
+ <th>Organisation d'origine</th>
+ <td>{{ d.organisme_bstg|default_if_none:"Non applicable" }}</td>
+ </tr>
+ <tr>
+ <th>En remplacement sur ce poste ?</th>
+ <td>{{ d.remplacement|yesno:"oui, non" }}</td>
+ <th></th>
+ <td></td>
+ </tr>
+ <tr>
+ <th>Statut résidence</th>
+ <td>{{ d.statut_residence }}</td>
+ <th></th>
+ <td></td>
+ </tr>
+ <tr>
+ <th>Régime de travail (prévu)</th>
+ <td>{{ d.poste.regime_travail }}</td>
+ <th>Nombre d'heures par semaine (prévu) :</th>
+ <td>{{ d.poste.regime_travail_nb_heure_semaine }}</td>
+ </tr>
+ <tr>
+ <th>Régime de travail (réel)</th>
+ <td>
+ {% if d.regime_travail %}
+ {{ d.regime_travail }} % du temps complet
+ {% endif %}
+ </td>
+ <th>Nombre d'heures par semaine (réel)</th>
+ <td>{{ d.regime_travail_nb_heure_semaine }}</td>
+ </tr>
+ <tr>
+ <th>Début d'occupation</th>
+ <td>{{ d.date_debut }}</td>
+ <th>Fin d'occupation</th>
+ <td>{{ d.date_fin|default_if_none:"Non définie" }}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h3>Rémunération</h3>
+ {{ d.classement }}<br />
+
+ <h3>Contrats</h3>
+ {{ d.contrats }}
+
{% endfor %}
</div>
+<hr />
<div id="dossiers">
- <h2>Dossier{{ dossiers|pluralize }}</h2>
+ <h2>Ancien{{ dossiers|pluralize }} poste{{ dossiers|pluralize }}</h2>
<table>
- <thead>
- <tr>
- <th></th>
- <th>Poste</th>
- <th>Début</th>
- <th>Fin</th>
- <th>Contrat(s)</th>
- <th>Début</th>
- <th>Fin</th>
- </tr>
- </thead>
<tbody>
- {% for d in dossiers_encours %}
- {% include "rh/include/dossier.html" %}
- {% endfor %}
{% for d in dossiers_passes %}
{% include "rh/include/dossier.html" %}
{% endfor %}