Rapports trie, WIP et optimisation de requete SQL
[auf_rh_dae.git] / project / rh / templates / rh / rapports / contrats.html
CommitLineData
f2d65e83
PP
1{% extends 'rh/rapports/base.html' %}
2{% load adminmedia rapports i18n %}
3
4{% block nomrapport %}Rapport Contrats{% endblock %}
5
8ee135b7
JPC
6{% block count_elements %}<h2>{{ count }} contrats pour {{ count_employe }} employés</h2>{% endblock %}
7
f2d65e83
PP
8{% block contentrapport %}
9
10<div id="changelist-filter">
11<h2>{% trans 'Filter' %}</h2>
23e749e1
PP
12{% filter_region_contrat %}
13{% filter_implantation_contrat %}
14{% filter_type_contrat %}
72ac5e55 15{% filter_echeance_contrat %}
eb204143 16{% filter_debut_contrat %}
35beb92c 17{% filter_a_venir %}
f2d65e83
PP
18</div>
19
20<table id="result_list">
21<thead>
22<tr>
65e02621 23 {% table_header headers %}
f2d65e83
PP
24</tr>
25</thead>
26{% spaceless %}{% for contrat in contrats %}
27<tr class="{% cycle 'row1' 'row2' %}">
28 <td>{{ contrat.dossier.employe.id }}</td>
29 <td>{{ contrat.dossier.employe.nom }}</td>
30 <td>{{ contrat.dossier.employe.prenom }}</td>
31 <td>{{ contrat.dossier.poste }}</td>
32 <td>{{ contrat.type_contrat.nom }}</td>
33 <td>{{ contrat.date_debut }}</td>
34 <td>{{ contrat.date_fin|default:'' }}</td>
35</tr>
36{% endfor %}{% endspaceless %}
37</table>
38
39{% endblock %}