Merge branch 'master' into recrutement
[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 {{ block.super }}
13 {% endblock %}
14
15 {% block nomrapport %}
16 Rapport Contrats
17 {% endblock %}
18
19 {% block count_elements %}
20 <h2>{{ contrats.count }} contrats pour {{ count_employe }} employés</h2>
21 {% endblock %}
22
23 {% block contentrapport %}
24 <div id="changelist-filter">
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 %}
33 </div>
34
35 {% recherche_par_annees cl %}
36
37 <table id="result_list" class="results">
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>
48 <td>
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 %}
60 </td>
61 <td>{{ contrat.date_debut }}</td>
62 <td>{{ contrat.date_fin|default:'' }}</td>
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 %}
69 </table>
70 {% endblock %}