[#3168] empl sans contrat affichage
[auf_rh_dae.git] / project / rh / templates / rh / rapports / employes_sans_contrat.html
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
12 {% block count_elements %}
13 <h2>{{ count }} employés sans contrat</h2>
14 {% endblock %}
15
16 {% block contentrapport %}
17 <div id="changelist-filter">
18 <h2>{% trans 'Filter' %}</h2>
19 {% filter_region_contrat %}
20 {% filter_implantation_contrat %}
21 </div>
22
23 <table id="result_list" class="results">
24 <thead>
25 <tr>{% table_header headers %}</tr>
26 </thead>
27 <tbody>
28 {% spaceless %}
29 {% for c in employes.values %}
30 <tr class="{% cycle 'row1' 'row2' %}">
31 <td>{{ c.employe.id }}</td>
32 <td>{{ c.employe.nom|upper }}</td>
33 <td>{{ c.employe.prenom }}</td>
34 <td>
35 {% if c.dossiers|length > 1 %}
36 <ul>
37 {% for d in c.dossiers %}
38 <li><a href="{% url admin:rh_dossier_change d.id %}">{{ d }}</a></li>
39 {% endfor %}
40 </ul>
41 {% else %}
42 {% for d in c.dossiers %}
43 <a href="{% url admin:rh_dossier_change d.id %}">{{ d }}</a>
44 {% endfor %}
45 {% endif %}
46 </td>
47 </tr>
48 {% endfor %}
49 {% endspaceless %}
50 </tbody>
51 </table>
52 {% endblock %}