Masse salariale: BSTG
[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 4{% block nomrapport %}Rapport de masse salariale{% endblock %}
ed4650ea 5{% block count_elements %}<h2>Rapport année {{ request.GET.annee }}</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 11
e90b19fd
OL
12<style>
13 #changelist .actions .filter {width: auto; float: left;}
14 #changelist .actions .filter h3 {font-size: 11px; margin-left: 0.5em;}
15</style>
57e2b793
JPC
16{% endblock %}
17
df37184c 18{% block contentrapport %}
eabb27fd
JPC
19{% if url_ods %}
20<ul class="object-tools">
21 <li>
22 <a href="{{ url_ods }}">Exporter en ods</a>
23 </li>
24</ul>
25{% endif %}
48c0abfe 26<form method="GET">
05a54dd7 27 <input type="hidden" name="ne_pas_grouper" value="True" />
48c0abfe
JPC
28 <div class="actions">
29 <div class="filter">
30 <h3>Region</h3>
31 {{ form.region }}
32 </div>
33 <div class="filter">
34 <h3>Implantation</h3>
35 {{ form.implantation }}
36 </div>
37 <div class="filter">
38 <h3>Année</h3>
444f3223 39 {{ form.annee }}
48c0abfe
JPC
40 </div>
41 <div class="filter" style="margin-left:20px">
42 <h3>&nbsp;</h3>
43 <button type="submit" class="button" title="Exécuter l'action sélectionnée">Rechercher</button>
44 </div>
45 <div class="clear"></div>
46 {% comment %}
47 <label>Plage de dates:
48 {{ form.date_debut }} au {{ form.date_fin }}
49 </label>
50 {% endcomment %}
51 </div>
52</form>
e90b19fd
OL
53<div class="clear"></div>
54
55
57e2b793
JPC
56<script type="text/javascript">
57 jQuery(document).ready(function(){
58 $("#result_list").stickyTableHeaders();
59 });
60</script>
df37184c
JPC
61<table id="result_list" class="results">
62<thead>
63<tr>
64 {% table_header headers %}
65</tr>
66</thead>
3244a3c2 67{% localize on %}
57e2b793
JPC
68{% spaceless %}
69{% for row in rapport %}
70 <tr class="{% cycle 'row1' 'row2' %}">
71 {% for column in header_keys %}
cdfa1b63
JPC
72 {% if column == 'sep' %}
73 <td style="background:gray;">&nbsp;</td>
3244a3c2 74 {% else %}
cdfa1b63 75 {% if row|hash:column|is_float %}
9fd09bdc
JPC
76 <td>
77 {% comment %}
78 {% if options.backgroundcolor %}
79 style="background-color:{{ options.backgroundcolor }}"
80 {% endif %}
81 {% endcomment %}
82 {{ row|hash:column|floatformat:2|localize }}
a6927189 83 {% if forloop.last or column|contains:"euro" %}
cb9cce2b
JPC
84 EUR
85 {% else %}
86 {{ row.devise }}
87 {% endif %}
88 </td>
cdfa1b63
JPC
89 {% else %}
90 <td>{{ row|hash:column|default:"" }}</td>
91 {% endif %}
3244a3c2 92 {% endif %}
57e2b793
JPC
93 {% endfor %}
94 </tr>
df37184c 95{% endfor %}{% endspaceless %}
778fb9d6
JPC
96 <tr>
97 <td colspan="{{ colspan }}" style="text-align:right;font-weight:bold;">
98 TOTAL :
99 </td>
778fb9d6
JPC
100 <td>{{ total_euro }}</td>
101 </tr>
df37184c 102</table>
3244a3c2 103{% endlocalize %}
df37184c 104{% endblock %}