diff --git a/candidats/views.py b/candidats/views.py index fce51da..3bfbf4c 100644 --- a/candidats/views.py +++ b/candidats/views.py @@ -114,7 +114,7 @@ class ValidationView(CandidateConfirmationView): class ConvocationView(CandidateConfirmationView): success_message = "Le message de convocation a été envoyé pour le candidat {person}" candidate_date_field = 'convocation_date' - title = "Convocation aux examens d'admission EDE/EDS" + title = "Convocation aux examens d'admission EDE/EDS/MSP" def get(self, request, *args, **kwargs): candidate = Candidate.objects.get(pk=self.kwargs['pk']) @@ -148,10 +148,15 @@ class ConvocationView(CandidateConfirmationView): ]), } + fil_map = { + 'EDE': "filière Éducation de l’enfance", + 'EDS': "filière Éducation sociale", + 'MSP': "formation Maîtrise socioprofessionnelle", + } msg_context = { 'candidate': candidate, 'candidate_name': " ".join([candidate.civility, candidate.first_name, candidate.last_name]), - 'filiere': "Éducation de l’enfance" if candidate.section == 'EDE' else "Éducation sociale", + 'filiere': fil_map.get(candidate.section), 'date_lieu_examen': settings.DATE_LIEU_EXAMEN_EDE if candidate.section == 'EDE' else settings.DATE_LIEU_EXAMEN_EDS, 'duree_examen': '2h30' if candidate.section == 'EDE' else '3h00', 'date_entretien': candidate.interview.date_formatted, diff --git a/templates/email/candidate_convocation_EDE.txt b/templates/email/candidate_convocation_EDE.txt index fb100fb..50e6dc7 100644 --- a/templates/email/candidate_convocation_EDE.txt +++ b/templates/email/candidate_convocation_EDE.txt @@ -1,6 +1,6 @@ {{ candidate_name }}, -Nous vous adressons par la présente votre convocation personnelle à la procédure d’admission de la filière {{ filiere }}, dipl. ES. +Nous vous adressons par la présente votre convocation personnelle à la procédure d’admission de la {{ filiere }}, dipl. ES. Vous êtes attendu{% if candidate.gender == "F" %}e{% endif %} au CPNE - Pôle Santé et Social, rue Sophie-Mairet 29-31, à La Chaux-de-Fonds aux dates suivantes: @@ -15,7 +15,7 @@ Si vous rencontrez des difficultés d’apprentissage (dyslexie, dysorthographie {{ rappel }} Nous vous remercions de nous confirmer par retour de courriel que vous avez bien reçu ce message et dans l’attente du plaisir de vous rencontrer prochainement, nous vous prions d’agréer, {{ candidate.civility }}, nos salutations les meilleures. -Secrétariat de la filière {{ filiere }}, dipl. ES +Secrétariat de la {{ filiere }}, dipl. ES {{ sender_name }} {{ sender_email }} tél. 032 886 33 00