<h3>Proposition de classement</h3>
</td>
</tr>
- {% comment %}
- <tr>
- <td colspan="7">
- Davin Baragiotta -
- <span id="info_employe" class="info">Nom du poste visé</span>
- </td>
- </tr>
- {% endcomment %}
<tr>
<th>{{ form.classement.label_tag }}</th>
<th colspan="3">{{ form.salaire.label_tag }}</th>
</tr>
<tr>
<td>{{ form.classement }}<br />{{ form.classement.errors }}</td>
- <td>{{ form.salaire }} {{ form.devise }}
+ <td>{{ form.salaire.errors }} {{ form.salaire }} {{ form.devise }}
<span class="info">(fourchette du poste : {{ poste.salaire_min }} {{ poste.devise_min.code }}
- {{ poste.salaire_max }} {{ poste.devise_max.code }})</span>
</td>
{% endblock %}
{% block main %}
+
<h1>Demandes d'autorisation d'engagement de personnel</h1>
<form action="" method="post" enctype="multipart/form-data">
{% if step == 'poste' %}
{% endfor %}
<tr><td colspan=2>Rechercher (personne, poste) : {{ f.recherche }}</td></tr>
- <tr><th>{{ f.implantation.label }}</th><td>{{ f.implantation }}</td></tr>
- <tr><th>{{ f.poste.label }}</th><td>{{ f.poste }}</td></tr>
- <tr><th>{{ f.personne.label }}</th><td>{{ f.personne }}</td></tr>
- <tr><th>{{ f.montant.label }} ({{f.devise.label }})</th><td>{{ f.montant }} {{f.devise }} ({{ f.montant_euros }} EUR)</td></tr>
+ <tr><th>{{ f.implantation.label }}</th><td>{{ f.implantation.errors }} {{ f.implantation }}</td></tr>
+ <tr><th>{{ f.poste.label }}</th><td>{{ f.poste.errors }} {{ f.poste }}</td></tr>
+ <tr><th>{{ f.personne.label }}</th><td>{{ f.personne.errors }} {{ f.personne }}</td></tr>
+ <tr><th>{{ f.montant.label }} ({{f.devise.label }})</th><td>{{ f.montant.errors }} {{ f.montant }} {{ f.devise.errors }} {{f.devise }} ({{ f.montant_euros.errors }} {{ f.montant_euros }} EUR)</td></tr>
</table>
{% endfor %}
</fieldset>
<fieldset>
- {% if new %}
+ {% if dossier.id == None %}
<p>
Vous devez enregister ce dossier avant de pouvoir détailler le
coût global.
justificationsAutreForm = JustificationAutreEmployeForm(request.POST, instance=dossier)
dossiersComparaisonsForm = DossierComparaisonForm(request.POST, instance=dossier)
- if dossier_form.is_valid() and piecesForm.is_valid() and justificationsNouveauForm.is_valid() and justificationsAutreForm.is_valid():
+ if dossier_form.is_valid() and piecesForm.is_valid() and justificationsNouveauForm.is_valid() and justificationsAutreForm.is_valid() and dossiersComparaisonsForm.is_valid():
dossier = dossier_form.save()
piecesForm.instance = dossier
piecesForm.save()
/* Ajouter une ligne aux couts globals */
$('#type-remun').change(function() {
+ var dossier_id = $('#dossier').attr('dossier');
if ($(this).val() != '') {
$('#global-cost').html('<tr><td>Chargement...</td></tr>')
.load('/dae/add-remun/' +
- $('#dossier').val() + '/' +
+ dossier_id + '/' +
$(this).val(), function() {
$('#type-remun').val('');
});