+{% load l10n %}
+{% load dae %}
+
{% for f in remunForm.management_form %}
{{ f }}
{% endfor %}
<tr>
<th>Type</th>
<th>Devise locale</th>
- <th>Annuel</th>
- <th>Annuel Euros</th>
+ <th>Annuel<br/>(visé)</th>
+ <th>Annuel Euros<br/>(visé)</th>
+ {% if remunForm.read_only %}
+ <th>Annuel Euros<br/>(ajusté par période)</th>
+ {% endif %}
<th>Précision</th>
{% if not remunForm.read_only %}
<th>Supprimer</th>
</tr>
{% for group in remunForm.group_list %}
{% if group.key != 'RAS' %}
+{% if group.key == 'Charges' %}
+<tr class="total-row">
+ <th><strong>Total employé</strong></th>
+ <th><!-- Laisser ce td pour que le javascript fonctionne bien. --></th>
+ <th class="total"></th>
+ <th class="total"></th>
+ {% if remunForm.read_only %}
+ <th class="total"></th>
+ {% endif %}
+ <th> </th>
+ {% if not remunForm.read_only %}
+ <th> </th>
+ {% endif %}
+</tr>
+{% endif %}
+<tr>
+
+</tr>
<tr>
<th colspan="6">{{ group.name }}</th>
</tr>
{% for f in group.forms %}
<tr class="calculable remunform">
{{ f.id }}
- <td class="spaced">{{ f.type.errors }} {{ f.type }}</td>
+ <td class="spaced">{{ f.type.errors }} {{ f.type }}
+ {% if f.instance.date_debut or f.instance.date_fin %}
+ {% if f.instance.date_debut or f.instance.date_fin %}({% endif %}
+ {% if f.instance.date_debut %}{{f.instance.date_debut}}{% endif %}
+ -
+ {% if f.instance.date_fin %}{{f.instance.date_fin}}{% endif %}
+ {% if f.instance.date_debut or f.instance.date_fin %}){% endif %}
+ {% endif %}
+ </td>
<td>{{ f.devise.errors }} {{ f.devise }}</td>
<td class="monnaie cumulable">{{ f.montant.errors }} {{ f.montant }}</td>
<td class="euro cumulable" id="id_{{ f.prefix }}-montant_annuel_euros"></td>
+ <!-- <td class="euro-ajuste cumulable" id="id_{{ f.prefix }}-montant_annuel_euros_ajuste">{{ f.instance.montant_ajuste_euros|stringformat:".2f" }}</td> -->
+ {% if remunForm.read_only %}
+ <td class="euro-ajuste cumulable" id="id_{{ f.prefix }}-montant_annuel_euros_ajuste">
+ {% remun_ajuste f.instance annee_remun %}
+ </td>
+ {% endif %}
<td>{{ f.commentaire.errors }} {{ f.commentaire }}</td>
{% if not remunForm.read_only %}
<td>{{ f.DELETE }}</td>
<td><!-- Laisser ce td pour que le javascript fonctionne bien. --></td>
<td class="sous-total"></td>
<td class="sous-total"></td>
+ {% if remunForm.read_only %}
+ <td class="sous-total"></td>
+ {% endif %}
<td> </td>
{% if not remunForm.read_only %}
<td> </td>
{% endif %}
{% endfor %}
<tr class="total-row">
- <th><strong>Total</strong></th>
+ <th><strong>Total AUF</strong></th>
<th><!-- Laisser ce td pour que le javascript fonctionne bien. --></th>
<th class="total"></th>
<th class="total"></th>
+ {% if remunForm.read_only %}
+ <th class="total"></th>
+ {% endif %}
<th> </th>
{% if not remunForm.read_only %}
<th> </th>
<th><!-- Laisser ce td pour que le javascript fonctionne bien. --></th>
<th></th>
<th></th>
+ {% if remunForm.read_only %}
+ <th></th>
+ {% endif %}
<th> </th>
{% if not remunForm.read_only %}
<th> </th>
<td>{{ f.devise.errors }} {{ f.devise }}</td>
<td class="monnaie cumulable">{{ f.montant.errors }} {{ f.montant }}</td>
<td class="euro cumulable" id="id_{{ f.prefix }}-montant_annuel_euros"></td>
+ {% if remunForm.read_only %}
+ <td class="euro-ajuste cumulable" id="id_{{ f.prefix }}-montant_annuel_euros_ajuste">
+ {% remun_ajuste f.instance annee_remun %}
+ </td>
+ {% endif %}
<td>{{ f.commentaire.errors }} {{ f.commentaire }}</td>
{% if not remunForm.read_only %}
<td>{{ f.DELETE }}</td>
<td><!-- Laisser ce td pour que le javascript fonctionne bien. --></td>
<td class="sous-total"></td>
<td class="sous-total"></td>
+ {% if remunForm.read_only %}
+ <td class="sous-total"></td>
+ {% endif %}
<td> </td>
{% if not remunForm.read_only %}
<td> </td>