4ff9be5430a0df1dee6613dbd55d2e0e37a40d80
[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>{{ row|hash:column|floatformat:2|localize }}
70 {% if forloop.last %}
71 EUR
72 {% else %}
73 {{ row.devise }}
74 {% endif %}
75 </td>
76 {% else %}
77 <td>{{ row|hash:column|default:"" }}</td>
78 {% endif %}
79 {% endif %}
80 {% endfor %}
81 </tr>
82 {% endfor %}{% endspaceless %}
83 <tr>
84 <td colspan="{{ colspan }}" style="text-align:right;font-weight:bold;">
85 TOTAL :
86 </td>
87 <td>{{ total }}</td>
88 <td>{{ total_euro }}</td>
89 </tr>
90 </table>
91 {% endlocalize %}
92 {% endblock %}