Masse salariale: ajout de couleur pour les tableaux
[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 %}
444f3223 5{% block count_elements %}<h2>Rapport pour {{ 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 %}
e90b19fd 19
48c0abfe
JPC
20<form method="GET">
21 <div class="actions">
22 <div class="filter">
23 <h3>Region</h3>
24 {{ form.region }}
25 </div>
26 <div class="filter">
27 <h3>Implantation</h3>
28 {{ form.implantation }}
29 </div>
30 <div class="filter">
31 <h3>Année</h3>
444f3223 32 {{ form.annee }}
48c0abfe
JPC
33 </div>
34 <div class="filter" style="margin-left:20px">
35 <h3>&nbsp;</h3>
36 <button type="submit" class="button" title="Exécuter l'action sélectionnée">Rechercher</button>
37 </div>
38 <div class="clear"></div>
39 {% comment %}
40 <label>Plage de dates:
41 {{ form.date_debut }} au {{ form.date_fin }}
42 </label>
43 {% endcomment %}
44 </div>
45</form>
e90b19fd
OL
46<div class="clear"></div>
47
48
57e2b793
JPC
49<script type="text/javascript">
50 jQuery(document).ready(function(){
51 $("#result_list").stickyTableHeaders();
52 });
53</script>
df37184c
JPC
54<table id="result_list" class="results">
55<thead>
56<tr>
57 {% table_header headers %}
58</tr>
59</thead>
3244a3c2 60{% localize on %}
57e2b793
JPC
61{% spaceless %}
62{% for row in rapport %}
63 <tr class="{% cycle 'row1' 'row2' %}">
64 {% for column in header_keys %}
cdfa1b63
JPC
65 {% if column == 'sep' %}
66 <td style="background:gray;">&nbsp;</td>
3244a3c2 67 {% else %}
cdfa1b63 68 {% if row|hash:column|is_float %}
9fd09bdc
JPC
69 <td>
70 {% comment %}
71 {% if options.backgroundcolor %}
72 style="background-color:{{ options.backgroundcolor }}"
73 {% endif %}
74 {% endcomment %}
75 {{ row|hash:column|floatformat:2|localize }}
cb9cce2b
JPC
76 {% if forloop.last %}
77 EUR
78 {% else %}
79 {{ row.devise }}
80 {% endif %}
81 </td>
cdfa1b63
JPC
82 {% else %}
83 <td>{{ row|hash:column|default:"" }}</td>
84 {% endif %}
3244a3c2 85 {% endif %}
57e2b793
JPC
86 {% endfor %}
87 </tr>
df37184c 88{% endfor %}{% endspaceless %}
778fb9d6
JPC
89 <tr>
90 <td colspan="{{ colspan }}" style="text-align:right;font-weight:bold;">
91 TOTAL :
92 </td>
93 <td>{{ total }}</td>
94 <td>{{ total_euro }}</td>
95 </tr>
df37184c 96</table>
3244a3c2 97{% endlocalize %}
df37184c 98{% endblock %}