MAsse salariale, filtre par année
[auf_rh_dae.git] / project / rh / templates / rh / rapports / masse_salariale.html
1 {% extends 'rh/rapports/base.html' %}
2 {% load adminmedia rapports i18n l10n %}
3
4 {% block nomrapport %}Rapport de masse salariale{% endblock %}
5 {% block count_elements %}<h2>Rapport du {{ request.GET.date_debut }} au {{ request.GET.date_fin }}</h2>{% endblock %}
6
7 {% block extrastyle %}
8 {{ block.super }}
9 <script type="text/javascript" src="{{ STATIC_URL }}js/jquery-1.5.1.min.js"></script>
10 <script type="text/javascript" src="{% admin_media_prefix %}js/jquery-stickytableheaders.js"></script>
11
12 {% comment %} datepicker dates selections {% endcomment %}
13 <script type="text/javascript" src="/admin/jsi18n"></script>
14 <script type="text/javascript" src="{{ STATIC_URL }}/admin/js/core.js"></script>
15 {{ form.media }}
16 {% include "admin/rh/annee_select.js" %}
17 <style>
18 #changelist .actions .filter {width: auto; float: left;}
19 #changelist .actions .filter h3 {font-size: 11px; margin-left: 0.5em;}
20 </style>
21 {% endblock %}
22
23 {% block contentrapport %}
24
25 <div class="actions">
26
27 <div class="filter">{% filter_region "dossier__poste__" %}</div>
28 <div class="filter">{% filter_implantation "dossier__poste__" %}</div>
29 <div class="clear"></div>
30 {% comment %}
31 <label>Plage de dates:
32 {{ form.date_debut }} au {{ form.date_fin }}
33 </label>
34 {% endcomment %}
35 <label>Année
36 {{ form.date_debut }}
37 </label>
38 <a href="{{ request.url }}?{{ query_string }}" id="plage_date_rechercher" class="button">Rechercher</a>
39 </div>
40 <div class="clear"></div>
41
42
43 <script type="text/javascript">
44 jQuery(document).ready(function(){
45 $("#result_list").stickyTableHeaders();
46 });
47 </script>
48 <table id="result_list" class="results">
49 <thead>
50 <tr>
51 {% table_header headers %}
52 </tr>
53 </thead>
54 {% localize on %}
55 {% spaceless %}
56 {% for row in rapport %}
57 <tr class="{% cycle 'row1' 'row2' %}">
58 {% for column in header_keys %}
59 {% if row|hash:column|is_float %}
60 <td>{{ row|hash:column|floatformat:2|localize }}</td>
61 {% else %}
62 <td>{{ row|hash:column|default:"" }}</td>
63 {% endif %}
64 {% endfor %}
65 </tr>
66 {% endfor %}{% endspaceless %}
67 <tr>
68 <td colspan="{{ colspan }}" style="text-align:right;font-weight:bold;">
69 TOTAL :
70 </td>
71 <td>{{ total }}</td>
72 <td>{{ total_euro }}</td>
73 </tr>
74 </table>
75 {% endlocalize %}
76 {% endblock %}