Ajustement pied de page confirmation MSP

This commit is contained in:
Claude Paroz 2026-02-06 08:47:15 +01:00
parent 4a8150af7c
commit f7cb4f155a
3 changed files with 10 additions and 6 deletions

View file

@ -51,8 +51,16 @@ class ConfirmationView(CandidateConfirmationView):
candidate = Candidate.objects.get(pk=self.kwargs['pk'])
to = [candidate.email]
msg_context = {
"candidate": candidate,
"sender": self.request.user,
}
if candidate.section in {'EDE', 'MSP'}:
src_email = 'email/candidate_confirm_EDE.txt'
if candidate.section == "EDE":
msg_context["nom_filiere"] = "Éducation de lenfance, dipl. ES"
else:
msg_context["nom_filiere"] = "Maîtrise socioprofessionnelle"
elif candidate.section == 'EDS':
src_email = 'email/candidate_confirm_EDS.txt'
elif candidate.section in {'ASA', 'ASE', 'ASSC'}:
@ -62,10 +70,6 @@ class ConfirmationView(CandidateConfirmationView):
if candidate.instructor and candidate.instructor.email:
to.append(candidate.instructor.email)
msg_context = {
'candidate': candidate,
'sender': self.request.user,
}
initial.update({
'cci': self.request.user.email,
'to': '; '.join(to),