Added remunform to consulter view
[auf_rh_dae.git] / project / dae / views.py
index 53eeb99..c1bfa11 100644 (file)
@@ -31,7 +31,7 @@ from project.dae.forms import \
         EmployeForm, DossierForm, DossierPieceForm, \
         DossierComparaisonFormSet, RemunForm, ContratForm, DAENumeriseeForm, \
         label_poste_display, DAEFinaliseesSearchForm, \
-        remun_formset_factory, ReadOnlyRemunForm
+        remun_formset_factory, ReadOnlyRemunFormSet
 from project.dae.mail import send_drh_finalisation_mail
 from project.dae.workflow import \
         DOSSIER_ETAT_FINALISE, DOSSIER_ETAT_REGION_FINALISATION, \
@@ -356,11 +356,14 @@ def embauche_consulter(request, dossier_id):
                 request.user
             )
     comparaisons = dossier.dae_comparaisons.ma_region_ou_service(request.user)
+    remunForm = ReadOnlyRemunFormSet(instance=dossier)
     return render(request, 'dae/embauche_consulter.html', {
         'dossier': dossier,
+        'devises': devises(),
         'validationForm': validationForm,
         'comparaisons_internes': comparaisons_internes,
         'comparaisons': comparaisons,
+        'remunForm': remunForm,
         'importer': request.user.is_superuser,
     })