plug recherche temporelle dans rapport contrats
[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 <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 %}<h2>{{ count }} contrats pour {{ count_employe }} employés</h2>{% endblock %}
13
14 {% block contentrapport %}
15
16 <div id="changelist-filter">
17 <h2>{% trans 'Filter' %}</h2>
18 {% filter_region_contrat %}
19 {% filter_implantation_contrat %}
20 {% filter_type_contrat %}
21 {% filter_echeance_contrat %}
22 {% filter_debut_contrat %}
23 {% filter_a_venir %}
24 </div>
25
26
27 {% recherche_par_annees cl %}
28
29 <table id="result_list" class="results">
30 <thead>
31 <tr>
32 {% table_header headers %}
33 </tr>
34 </thead>
35 {% spaceless %}{% for contrat in contrats %}
36 <tr class="{% cycle 'row1' 'row2' %}">
37 <td style="text-align:right"><a href="{% url admin:rh_employe_change contrat.dossier.employe.id %}">{{ contrat.dossier.employe.id }}</a></td>
38 <td><a href="{% url admin:rh_employe_change contrat.dossier.employe.id %}">{{ contrat.dossier.employe.nom|upper }}</a></td>
39 <td><a href="{% url admin:rh_employe_change contrat.dossier.employe.id %}">{{ contrat.dossier.employe.prenom }}</a></td>
40 <td><a href="{% url admin:rh_poste_change contrat.dossier.poste.id %}">{{ contrat.dossier.poste }}</a></td>
41 <td>{{ contrat.type_contrat.nom }}</td>
42 <td>{{ contrat.date_debut }}</td>
43 <td>{{ contrat.date_fin|default:'' }}</td>
44 </tr>
45 {% endfor %}{% endspaceless %}
46 </table>
47
48 {% endblock %}