Masse salariale: BSTG
[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 année {{ 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 {% 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 %}
26 <form method="GET">
27 <input type="hidden" name="ne_pas_grouper" value="True" />
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>
39 {{ form.annee }}
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>
53 <div class="clear"></div>
54
55
56 <script type="text/javascript">
57 jQuery(document).ready(function(){
58 $("#result_list").stickyTableHeaders();
59 });
60 </script>
61 <table id="result_list" class="results">
62 <thead>
63 <tr>
64 {% table_header headers %}
65 </tr>
66 </thead>
67 {% localize on %}
68 {% spaceless %}
69 {% for row in rapport %}
70 <tr class="{% cycle 'row1' 'row2' %}">
71 {% for column in header_keys %}
72 {% if column == 'sep' %}
73 <td style="background:gray;">&nbsp;</td>
74 {% else %}
75 {% if row|hash:column|is_float %}
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 }}
83 {% if forloop.last or column|contains:"euro" %}
84 EUR
85 {% else %}
86 {{ row.devise }}
87 {% endif %}
88 </td>
89 {% else %}
90 <td>{{ row|hash:column|default:"" }}</td>
91 {% endif %}
92 {% endif %}
93 {% endfor %}
94 </tr>
95 {% endfor %}{% endspaceless %}
96 <tr>
97 <td colspan="{{ colspan }}" style="text-align:right;font-weight:bold;">
98 TOTAL :
99 </td>
100 <td>{{ total_euro }}</td>
101 </tr>
102 </table>
103 {% endlocalize %}
104 {% endblock %}