<th>Supprimer</th>
</tr>
{% for group in remunForm.group_list %}
+{% if group.name != 'RAS' %}
<tr>
<th colspan="6">{{ group.name }}</th>
</tr>
<td class="sous-total"></td>
<td colspan="2"></td>
</tr>
+{% endif %}
{% endfor %}
-<tr>
+<tr class="total-row">
<th><strong>Total</strong></th>
<th><!-- Laisser ce td pour que le javascript fonctionne bien. --></th>
<th class="total"></th>
<th class="total"></th>
<th colspan="2"></th>
</tr>
-</table>
-
-{% comment %}
-<table>
-<tr>
- <th>Type</th>
- <th>Devise locale</th>
- <th>Mensuel</th>
- <th>Annuel</th>
- <th colspan="2">Conversion en Euros</th>
- <th>Précision</th>
-</tr>
<tr>
- <th colspan="5">Coûts AUF</th>
- <th id="sous-total-cout" class="montant"></th>
- <th>EUR</th>
+ <th><strong>Rémunération autre source</strong></th>
+ <th><!-- Laisser ce td pour que le javascript fonctionne bien. --></th>
+ <th></th>
+ <th></th>
+ <th colspan="2"></th>
</tr>
-
-{% for remun in dossier.get_couts_auf %}
- <tr class="cout">
- <td>{{ remun.type }}</td>
- <td>
- {{ remun.devise }}
- <input type="hidden" id="taux_devise-{{ remun.id }}"
- name="taux_devise-{{ remun.id }}"
- value="{{ remun.taux_devise }}" />
- </td>
- <td>
- <input type="text" id="montant_mois-{{ remun.id }}"
- name="montant_mois-{{ remun.id }}"
- value="{{ remun.montant_mois }}" />
- </td>
- <td><input type="text" id="montant-{{ remun.id }}"
- name="cg-montant-{{ remun.id }}"
- value="{{ remun.montant|default_if_none:'' }}" />
- </td>
- <td id="montant_euro_mois-{{ remun.id }}" class="montant">
- {{ remun.montant_euro_mois }}</td>
- <td id="montant_euro-{{ remun.id }}" class="montant cumulable">{{ remun.montant_euros }}</td>
- <td><input type="text" name="cg-precision-{{ remun.id }}"
- value="{{ remun.precision|default_if_none:'' }}" /></td>
- </tr>
-{% empty %}
- <tr>
- <td colspan="6">
- Aucun coût au registre
- </td>
- </tr>
-{% endfor %}
-
-
-<tr>
- <th colspan="5">BSTG - Salaire de mise à disposition</th>
- <th id="sous-total-aide" class="montant"></th>
- <th>EUR</th>
+{% for f in remunForm.groups.RAS.forms %}
+<tr class="calculable">
+ {{ f.id }}
+ <td>{{ f.type.errors }} {{ f.type }}</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>{{ f.commentaire.errors }} {{ f.commentaire }}</td>
+ <td>{{ f.DELETE }}</td>
</tr>
-
-{% for remun in dossier.get_aides_auf %}
- <tr class="aide">
- <td>{{ remun.type }}</td>
- <td>
- {{ remun.devise }}
- <input type="hidden" id="taux_devise-{{ remun.id }}"
- name="taux_devise-{{ remun.id }}"
- value="{{ remun.taux_devise }}" />
- </td>
- <td>
- <input type="text" id="montant_mois-{{ remun.id }}"
- name="montant_mois-{{ remun.id }}"
- value="{{ remun.montant_mois }}" />
- </td>
- <td><input type="text" id="montant-{{ remun.id }}"
- name="cg-montant-{{ remun.id }}"
- value="{{ remun.montant|default_if_none:'' }}" />
- </td>
- <td id="montant_euro_mois-{{ remun.id }}" class="montant">
- {{ remun.montant_euro_mois }}</td>
- <td id="montant_euro-{{ remun.id }}" class="montant cumulable">{{ remun.montant_euros }}</td>
- <td><input type="text" name="cg-precision-{{ remun.id }}"
- value="{{ remun.precision|default_if_none:'' }}" /></td>
- </tr>
-{% empty %}
- <tr>
- <td colspan="6">
- Aucun coût au registre
- </td>
- </tr>
{% endfor %}
-
-<tr>
- <th colspan="5">TOTAL</th>
- <th id="remun-total" class="montant"></th>
- <th>EUR</th>
+<tr class="sous-totaux">
+ <td>Sous-total</td>
+ <td><!-- Laisser ce td pour que le javascript fonctionne bien. --></td>
+ <td class="sous-total"></td>
+ <td class="sous-total"></td>
+ <td colspan="2"></td>
</tr>
-{% endcomment %}
+</table>