Masse salariale: ajout de couleur pour les tableaux
[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 pour {{ request.GET.annee }}</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 <style>
13 #changelist .actions .filter {width: auto; float: left;}
14 #changelist .actions .filter h3 {font-size: 11px; margin-left: 0.5em;}
15 </style>
16 {% endblock %}
17
18 {% block contentrapport %}
19
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>
32 {{ form.annee }}
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>
46 <div class="clear"></div>
47
48
49 <script type="text/javascript">
50 jQuery(document).ready(function(){
51 $("#result_list").stickyTableHeaders();
52 });
53 </script>
54 <table id="result_list" class="results">
55 <thead>
56 <tr>
57 {% table_header headers %}
58 </tr>
59 </thead>
60 {% localize on %}
61 {% spaceless %}
62 {% for row in rapport %}
63 <tr class="{% cycle 'row1' 'row2' %}">
64 {% for column in header_keys %}
65 {% if column == 'sep' %}
66 <td style="background:gray;">&nbsp;</td>
67 {% else %}
68 {% if row|hash:column|is_float %}
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 }}
76 {% if forloop.last %}
77 EUR
78 {% else %}
79 {{ row.devise }}
80 {% endif %}
81 </td>
82 {% else %}
83 <td>{{ row|hash:column|default:"" }}</td>
84 {% endif %}
85 {% endif %}
86 {% endfor %}
87 </tr>
88 {% endfor %}{% endspaceless %}
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>
96 </table>
97 {% endlocalize %}
98 {% endblock %}