Rapport masse salariale: ajout de formattage pour les chiffres
[auf_rh_dae.git] / project / rh / templates / rh / rapports / masse_salariale.html
CommitLineData
df37184c 1{% extends 'rh/rapports/base.html' %}
3244a3c2 2{% load adminmedia rapports i18n l10n %}
df37184c 3
e90b19fd
OL
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 %}
df37184c 6
57e2b793
JPC
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>
e90b19fd
OL
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>
57e2b793
JPC
21{% endblock %}
22
df37184c 23{% block contentrapport %}
e90b19fd
OL
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>
df37184c 34</div>
e90b19fd
OL
35<div class="clear"></div>
36
37
57e2b793
JPC
38<script type="text/javascript">
39 jQuery(document).ready(function(){
40 $("#result_list").stickyTableHeaders();
41 });
42</script>
df37184c
JPC
43<table id="result_list" class="results">
44<thead>
45<tr>
46 {% table_header headers %}
47</tr>
48</thead>
3244a3c2 49{% localize on %}
57e2b793
JPC
50{% spaceless %}
51{% for row in rapport %}
52 <tr class="{% cycle 'row1' 'row2' %}">
53 {% for column in header_keys %}
3244a3c2
JPC
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 %}
57e2b793
JPC
59 {% endfor %}
60 </tr>
df37184c 61{% endfor %}{% endspaceless %}
778fb9d6
JPC
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>
df37184c 69</table>
3244a3c2 70{% endlocalize %}
df37184c 71{% endblock %}