Rapport masse salariale: ajout de formattage pour les chiffres
[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 <label>Plage de dates:
31 {{ form.date_debut }} au {{ form.date_fin }}
32 </label>
33 <a href="{{ request.url }}?{{ query_string }}" id="plage_date_rechercher" class="button">Rechercher</a>
34 </div>
35 <div class="clear"></div>
36
37
38 <script type="text/javascript">
39 jQuery(document).ready(function(){
40 $("#result_list").stickyTableHeaders();
41 });
42 </script>
43 <table id="result_list" class="results">
44 <thead>
45 <tr>
46 {% table_header headers %}
47 </tr>
48 </thead>
49 {% localize on %}
50 {% spaceless %}
51 {% for row in rapport %}
52 <tr class="{% cycle 'row1' 'row2' %}">
53 {% for column in header_keys %}
54 {% if row|hash:column|is_float %}
55 <td>{{ row|hash:column|floatformat:2|localize }}</td>
56 {% else %}
57 <td>{{ row|hash:column|default:"" }}</td>
58 {% endif %}
59 {% endfor %}
60 </tr>
61 {% endfor %}{% endspaceless %}
62 <tr>
63 <td colspan="{{ colspan }}" style="text-align:right;font-weight:bold;">
64 TOTAL :
65 </td>
66 <td>{{ total }}</td>
67 <td>{{ total_euro }}</td>
68 </tr>
69 </table>
70 {% endlocalize %}
71 {% endblock %}