Rapport employés sans contrats
[auf_rh_dae.git] / project / rh / templates / rh / rapports / postes.html
1 {% extends 'rh/rapports/base.html' %}
2 {% load adminmedia rapports i18n %}
3
4 {% block nomrapport %}Rapport Postes{% endblock %}
5 {% block count_elements %}<h2>{{ count }} postes</h2>{% endblock %}
6
7 {% block contentrapport %}
8 <div id="changelist-filter">
9 <h2>{% trans 'Filter' %}</h2>
10 {% filter_region %}
11 {% filter_implantation %}
12 {% filter_comble %}
13 </div>
14
15 <table id="result_list" class="results">
16 <thead>
17 <tr>
18 {% table_header headers %}
19 </tr>
20 </thead>
21 {% spaceless %}{% for poste in postes %}
22 <tr class="{% cycle 'row1' 'row2' %}">
23 <td style="text-align:right"><a href="{% url admin:rh_poste_change poste.id %}">{{ poste.id }}</td>
24 <td><a href="{% url admin:rh_poste_change poste.id %}">{{ poste.nom|upper }}</a></td>
25 <td>{{ poste.implantation }}</td>
26 <td>
27 {% if poste.employes %}
28 {% if poste.employes|length > 1 %}
29 <ul>
30 {% for e in poste.employes %}
31 <li><a href="{% url admin:rh_employe_change e.id %}">[{{ e.id }}] {{ e.nom|upper }} {{ e.prenom }}</a></li>
32 {% endfor %}
33 </ul>
34 {% else %}
35 {% for e in poste.employes %}
36 <a href="{% url admin:rh_employe_change e.id %}">[{{ e.id }}] {{ e.nom|upper }} {{ e.prenom }}</a>
37 {% endfor %}
38 {% endif %}
39 {% else %}
40 Vacant
41 {% endif %}
42 </td>
43 </tr>
44 {% endfor %}{% endspaceless %}
45 </table>
46
47 {% endblock %}