</tr>
<tr>
<th>Nationalité :</th>
- <td>{{ employe.nationalite }}</td>
+ <td>{{ employe.nationalite.nom }}</td>
</tr>
<tr>
<th>Situation familiale :</th>
- <td>{{ employe.situation_familiale }}</td>
+ <td>{{ employe.get_situation_famille_display }}</td>
</tr>
</tbody>
</table>
</table>
</div>
<div class="clear contenu">
- <h2>Dépendants (ayant-droits)</h2>
+ <h2>
+ Dépendant{{ employe.ayantdroits.all|pluralize }}
+ (ayant{{ employe.ayantdroits.all|pluralize }}-droit)
+ ({{ employe.ayantdroits.count }})
+ </h2>
{% if employe.ayantdroits.all %}
- <ul>
- {% for ad in employe.ayantdroits.all %}
- <li>{{ ad }}</li>
- {% endfor %}
- </ul>
+ <table>
+ <thead>
+ <tr>
+ <th>Nom</th>
+ <th>Nationalité</th>
+ <th>Date de naissance</th>
+ <th>Genre</th>
+ <th>Lien de parenté</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for personne in employe.ayantdroits.all %}
+ <tr>
+ <td>{{ personne.get_nom }}</td>
+ <td>{{ personne.nationalite.nom }}</td>
+ <td class="date">{{ personne.date_naissance }}</td>
+ <td>{{ personne.get_genre_display }}</td>
+ <td>{{ personne.lien_parente }}</td>
+ {% endfor %}
+ </tbody>
+ </table>
{% else %}
<p>Aucun dépendant.</p>
{% endif %}
<hr />
<div id="postes" class="contenu">
- <h2>Poste{{ employe.dossiers_encours|pluralize }} en cours</h2>
+ <h2>Poste{{ employe.dossiers_encours|pluralize }} en cours ({{ employe.dossiers_encours.count }})</h2>
{% for d in employe.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>
</table>
<h3>Rémunération</h3>
- {{ d.classement }}<br />
+ <table>
+ <tr>
+ <th>Classification :</th>
+ <td>{{ d.classement.type }}.{{ d.classement.echelon }}.{{ d.classement.degre }}</td>
+ <th>Salaire de base théorique :</th>
+ <td>
+ {{ d.salaire_theorique.montant }} {{ d.salaire_theorique.devise.code }}
+ </td>
+ </tr>
+ </table>
+ <table>
+ <thead>
+ <tr>
+ <th></th>
+ <th>Montant</th>
+ <th>Devise</th>
+ <th>Type</th>
+ <th>Type revalorisation</th>
+ <th>Valide du</th>
+ <th>au</th>
+ <th>Commentaire</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for r in d.remunerations %}
+ <tr>
+ <td>{{ r.id }}</td>
+ <td class="nombre">{{ r.montant|default_if_none:"?" }}</td>
+ <td>{{ r.devise.code }}</td>
+ <td>{{ r.type }}</td>
+ <td>{{ r.type_revalorisation|default_if_none:"" }}</td>
+ <td class="date">{{ r.date_debut|default_if_none:"(inconnu)" }}</td>
+ <td class="date">{{ r.date_fin|default_if_none:"(indéterminé)" }}</td>
+ <td>{{ r.commentaire|default_if_none:"" }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
- <h3>Contrats</h3>
- {{ d.contrats }}
+ <h3>Contrat{{ d.contrats|pluralize }} ({{ d.contrats.count }})</h3>
+ <table>
+ {% for c in d.contrats.all %}
+ <tr>
+ <td>{{ c.type_contrat }}</td>
+ <td>du</td>
+ <td>{{ c.date_debut }}</td>
+ <td>au</td>
+ <td>{{ c.date_fin|default_if_none:"(non déterminé)" }}</td>
+ </tr>
+ {% endfor %}
+ </table>
{% endfor %}
</div>