Routeur: Ajout temporaire des modules workflow et dae en écriture
[auf_rh_dae.git] / project / rh / templates / rh / rapports / contrats.html
1 {% extends 'rh/rapports/base.html' %}
2 {% load adminmedia rapports i18n change_list %}
3
4 {% block extrastyle %}
5 {{ block.super }}
6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/css/admin_custom.css">
7 {% endblock %}
8
9 {% block extrahead %}
10 <script type="text/javascript" src="/admin/jsi18n"></script>
11 <script type="text/javascript" src="{{ STATIC_URL }}/admin/js/core.js"></script>
12 <script type="text/javascript" src="{{ STATIC_URL }}admin/js/admin/RelatedObjectLookups.js"></script>
13 {{ block.super }}
14 {% endblock %}
15
16 {% block nomrapport %}
17 Rapport Contrats
18 {% endblock %}
19
20 {% block count_elements %}
21 <h2>{{ contrats.count }} contrats pour {{ count_employe }} employés</h2>
22 {% endblock %}
23
24 {% block contentrapport %}
25 <div id="changelist-filter">
26 <h2>{% trans 'Filter' %}</h2>
27
28 {% filter_zone_administrative_contrat %}
29 {% filter_implantation_contrat %}
30 {% filter_type_contrat %}
31 {% filter_echeance_contrat %}
32 {% filter_debut_contrat %}
33 {% filter_a_venir %}
34 </div>
35
36 {% recherche_par_annees cl %}
37
38 <table id="result_list" class="results">
39 <thead>
40 <tr>{% table_header headers %}</tr>
41 </thead>
42 {% spaceless %}
43 {% for contrat in contrats %}
44 <tr class="{% cycle 'row1' 'row2' %}">
45 <td style="text-align:right">
46 {{ contrat.dossier.employe.id|stringformat:"d" }}
47 </td>
48 <td>{{ contrat.dossier.employe.nom|upper }} {{ contrat.dossier.employe.prenom|title }}</td>
49 <td>
50 {% with contrat.dossier as d %}
51 {% include 'rh/include/rapports_dossier_poste.html' %}
52 {% endwith %}
53 </td>
54 <td>
55 {% include 'rh/include/rapports_contrat.html' %}
56 </td>
57 <td>{{ contrat.date_debut }}</td>
58 <td>{{ contrat.date_fin|default:'' }}</td>
59 <td>{{ contrat.dossier.get_statut_residence_display }}</td>
60 <td>{{ contrat.dossier.poste.implantation.zone_administrative.nom }}</td>
61 <td>{{ contrat.dossier.poste.implantation.nom }}</td>
62 </tr>
63 {% endfor %}
64 {% endspaceless %}
65 </table>
66 {% endblock %}