Skip to content

Commit

Permalink
improve wording based on job seeker nb
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Jan 10, 2025
1 parent d03fbe7 commit 1d915a7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
20 changes: 13 additions & 7 deletions itou/templates/apply/process_refuse.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 class="mb-1 mb-md-0 me-3">
{% if wizard.steps.current == RefuseViewStep.REASON %}
<strong>Étape {{ wizard.steps.step1 }}</strong>/{{ wizard.steps.count }} : Choix du motif de refus
{% elif wizard.steps.current == RefuseViewStep.JOB_SEEKER_ANSWER %}
<strong>Étape {{ wizard.steps.step1 }}</strong>/{{ wizard.steps.count }} : Message au candidat
<strong>Étape {{ wizard.steps.step1 }}</strong>/{{ wizard.steps.count }} : Message {{ job_seeker_nb|pluralizefr:"au candidat,aux candidats" }}
{% elif wizard.steps.current == RefuseViewStep.PRESCRIBER_ANSWER %}
<strong>Étape {{ wizard.steps.step1 }}</strong>/{{ wizard.steps.count }} : Message {{ to_prescriber }}
{% endif %}
Expand All @@ -45,13 +45,13 @@ <h1 class="mb-1 mb-md-0 me-3">
<h2 class="mb-3 mb-md-4">Choix du motif de refus</h2>
<p class="mb-3 mb-md-4">
{% if job_application.sender_kind == SenderKind.PRESCRIBER %}
Dans le cadre d’un parcours IAE, la transparence sur les motifs de refus est importante pour le candidat comme pour {{ the_prescriber }}. Nous vous encourageons à répondre à chacune des parties.
Dans le cadre d’un parcours IAE, la transparence sur les motifs de refus est importante pour {{ job_seeker_nb|pluralizefr:"le candidat,les candidats" }} comme pour {{ the_prescriber }}. Nous vous encourageons à répondre à chacune des parties.
{% else %}
Dans le cadre d’un parcours IAE, la transparence sur les motifs de refus est importante pour le candidat.
Dans le cadre d’un parcours IAE, la transparence sur les motifs de refus est importante pour {{ job_seeker_nb|pluralizefr:"le candidat,les candidats" }}.
{% endif %}
</p>
{% elif wizard.steps.current == RefuseViewStep.JOB_SEEKER_ANSWER %}
<h2 class="mb-3 mb-md-4">Réponse au candidat</h2>
<h2 class="mb-3 mb-md-4">Réponse {{ job_seeker_nb|pluralizefr:"au candidat,aux candidats" }}</h2>
<p class="mb-3 mb-md-4">
{% if job_application.sender_kind == SenderKind.PRESCRIBER %}
Une copie de ce message sera adressée {{ to_prescriber }}.
Expand All @@ -62,7 +62,9 @@ <h2 class="mb-3 mb-md-4">Réponse au candidat</h2>
<p class="mb-3 mb-md-4">
<strong>Motif de refus :</strong>
{{ refusal_reason_label }}
{% if not refusal_reason_shared_with_job_seeker %}<em>(Motif non communiqué au candidat)</em>{% endif %}
{% if not refusal_reason_shared_with_job_seeker %}
<em>(Motif non communiqué {{ job_seeker_nb|pluralizefr:"au candidat,aux candidats" }})</em>
{% endif %}
</p>
{% elif wizard.steps.current == RefuseViewStep.PRESCRIBER_ANSWER %}
<h2 class="mb-3 mb-md-4">Réponse {{ to_prescriber }}</h2>
Expand All @@ -72,7 +74,9 @@ <h2 class="mb-3 mb-md-4">Réponse {{ to_prescriber }}</h2>
<p class="mb-3 mb-md-4">
<strong>Motif de refus :</strong>
{{ refusal_reason_label }}
{% if not refusal_reason_shared_with_job_seeker %}<em>(Motif non communiqué au candidat)</em>{% endif %}
{% if not refusal_reason_shared_with_job_seeker %}
<em>(Motif non communiqué {{ job_seeker_nb|pluralizefr:"au candidat,aux candidats" }})</em>
{% endif %}
</p>
{% endif %}

Expand Down Expand Up @@ -122,7 +126,9 @@ <h2 class="mb-3 mb-md-4">Réponse {{ to_prescriber }}</h2>
</fieldset>
<fieldset>
<div class="form-group">
<legend class="fs-base fw-bold">Partager ce motif de refus au candidat ?</legend>
<legend class="fs-base fw-bold">
Partager ce motif de refus {{ job_seeker_nb|pluralizefr:"au candidat,aux candidats" }} ?
</legend>
{% bootstrap_field form.refusal_reason_shared_with_job_seeker %}
</div>
</fieldset>
Expand Down
1 change: 1 addition & 0 deletions itou/www/apply/views/batch_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def get_context_data(self, **kwargs):
"RefuseViewStep": RefuseViewStep,
"to_prescriber": to_prescriber,
"the_prescriber": the_prescriber,
"job_seeker_nb": len(set(job_application.job_seeker_id for job_application in self.applications)),
}
if self.step != RefuseViewStep.REASON:
reason_data = self.wizard_session.get("data", {}).get(RefuseViewStep.REASON, {})
Expand Down
1 change: 1 addition & 0 deletions itou/www/apply/views/process_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def get_context_data(self, **kwargs):
"the_prescriber": (
"le prescripteur" if self.job_application.is_sent_by_authorized_prescriber else "l’orienteur"
),
"job_seeker_nb": 1,
}

def get_form_kwargs(self, step=None):
Expand Down

0 comments on commit 1d915a7

Please sign in to comment.