Fix django ajax selects
[auf_rh_dae.git] / project / rh / templates / rh / rapports / employes_sans_contrat.html
CommitLineData
c8b22fd1
JPC
1{% extends 'rh/rapports/base.html' %}
2{% load adminmedia rapports i18n change_list %}
3
4{% block extrastyle %}
5<script type="text/javascript" src="/admin/jsi18n"></script>
6<script type="text/javascript" src="{{ STATIC_URL }}/admin/js/core.js"></script>
7{{ block.super }}
8{% endblock %}
9
10{% block nomrapport %}Rapport Contrats{% endblock %}
11
6b7cf654 12{% block count_elements %}
1a7b9e36 13<h2>{{ employes.count }} employés sans contrat</h2>
6b7cf654 14{% endblock %}
c8b22fd1
JPC
15
16{% block contentrapport %}
c8b22fd1 17<div id="changelist-filter">
6b7cf654
DB
18 <h2>{% trans 'Filter' %}</h2>
19 {% filter_region_contrat %}
20 {% filter_implantation_contrat %}
c8b22fd1
JPC
21</div>
22
23<table id="result_list" class="results">
6b7cf654
DB
24 <thead>
25 <tr>{% table_header headers %}</tr>
26 </thead>
27 <tbody>
28 {% spaceless %}
1a7b9e36 29 {% for e in employes %}
6b7cf654 30 <tr class="{% cycle 'row1' 'row2' %}">
dd18f6e3 31 <td style="text-align:right">{{ e.id }}</td>
1a7b9e36 32 <td>{{ e.nom|upper }} {{ e.prenom }}</td>
6b7cf654 33 <td>
1a7b9e36
DB
34 {% for d in e.rh_dossiers.all %}
35 {% if d in dossiers_sans_contrat %}
36 <a href="{% url admin:rh_dossier_change d.id %}">Dossier</a> : {{ d.poste.nom }}
37 {% if not forloop.last %}<br />{% endif %}
38 {% endif %}
39 {% endfor %}
40 </td>
41 <td>
42 {% for d in e.rh_dossiers.all %}
43 {% if d in dossiers_sans_contrat %}
44 {{ d.date_debut|default_if_none:"" }}
45 {% if not forloop.last %}<br />{% endif %}
46 {% endif %}
47 {% endfor %}
48 </td>
49 <td>
50 {% for d in e.rh_dossiers.all %}
51 {% if d in dossiers_sans_contrat %}
52 {{ d.date_fin|default_if_none:"" }}
53 {% if not forloop.last %}<br />{% endif %}
54 {% endif %}
55 {% endfor %}
6b7cf654
DB
56 </td>
57 </tr>
58 {% endfor %}
59 {% endspaceless %}
60 </tbody>
c8b22fd1 61</table>
1a7b9e36 62
c8b22fd1 63{% endblock %}