Rapports: trie par colonne, filtres rajoutés, modification du visuel
[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">
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.employe_id %}
28 <ul>
29 {% for e in poste.employe_id|split:'|' %}
30 <li><a href="{% url admin:rh_employe_change e %}">{{ e }}</a></li>
31 {% endfor %}
32 </ul>
33 {% else %}
34 Vacant
35 {% endif %}
36 </td>
37 <td>
38 {% if poste.employe_nom %}
39 <ul>
40 {% for e in poste.employe_nom|split:'|' %}
41 <li>{{ e }}</li>
42 {% endfor %}
43 </ul>
44 {% endif %}
45 </td>
46
47 <td>
48 {% if poste.employe_prenom %}
49 <ul>
50 {% for e in poste.employe_prenom|split:'|' %}
51 <li>{{ e }}</li>
52 {% endfor %}
53 </ul>
54 {% endif %}
55 </td>
56 </tr>
57 {% endfor %}{% endspaceless %}
58 </table>
59
60 {% endblock %}