Fix django ajax selects
[auf_rh_dae.git] / project / rh / templates / rh / rapports / contrats.html
CommitLineData
f2d65e83 1{% extends 'rh/rapports/base.html' %}
f0f6b03e
OL
2{% load adminmedia rapports i18n change_list %}
3
4{% block extrastyle %}
dd18f6e3
DB
5 {{ block.super }}
6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/css/admin_custom.css">
58348377
EMS
7{% endblock %}
8
9{% block extrahead %}
dd18f6e3
DB
10 <script type="text/javascript" src="/admin/jsi18n"></script>
11 <script type="text/javascript" src="{{ STATIC_URL }}/admin/js/core.js"></script>
12 {{ block.super }}
f0f6b03e 13{% endblock %}
f2d65e83 14
dd18f6e3
DB
15{% block nomrapport %}
16 Rapport Contrats
17{% endblock %}
f2d65e83 18
dd18f6e3
DB
19{% block count_elements %}
20 <h2>{{ contrats.count }} contrats pour {{ count_employe }} employés</h2>
21{% endblock %}
8ee135b7 22
f2d65e83 23{% block contentrapport %}
f2d65e83 24<div id="changelist-filter">
dd18f6e3
DB
25 <h2>{% trans 'Filter' %}</h2>
26
27 {% filter_region_contrat %}
28 {% filter_implantation_contrat %}
29 {% filter_type_contrat %}
30 {% filter_echeance_contrat %}
31 {% filter_debut_contrat %}
32 {% filter_a_venir %}
f2d65e83
PP
33</div>
34
f0f6b03e
OL
35{% recherche_par_annees cl %}
36
5e46aab8 37<table id="result_list" class="results">
dd18f6e3
DB
38 <thead>
39 <tr>{% table_header headers %}</tr>
40 </thead>
41 {% spaceless %}
42 {% for contrat in contrats %}
43 <tr class="{% cycle 'row1' 'row2' %}">
44 <td style="text-align:right">
45 {{ contrat.dossier.employe.id }}
46 </td>
47 <td>{{ contrat.dossier.employe.nom|upper }} {{ contrat.dossier.employe.prenom|title }}</td>
d50a5e5d 48 <td>
dd18f6e3
DB
49 <a href="{% url admin:rh_dossier_change contrat.dossier.id %}">
50 Dossier
51 </a>
52 : {{ contrat.dossier.poste.nom }}
53 </td>
54 <td>
55 {% if contrat.fichier %}
56 <a href="{{ contrat.fichier.url }}">{{ contrat.type_contrat.nom }}</a>
57 {% else %}
58 {{ contrat.type_contrat.nom }}
59 {% endif %}
d50a5e5d
OL
60 </td>
61 <td>{{ contrat.date_debut }}</td>
62 <td>{{ contrat.date_fin|default:'' }}</td>
dd18f6e3
DB
63 <td>{{ contrat.dossier.get_statut_residence_display }}</td>
64 <td>{{ contrat.dossier.poste.implantation.region.nom }}</td>
65 <td>{{ contrat.dossier.poste.implantation.nom }}</td>
66 </tr>
67 {% endfor %}
68 {% endspaceless %}
f2d65e83 69</table>
f2d65e83 70{% endblock %}