Skip to content

Commit

Permalink
Normalize first_name & last_name display
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Oct 16, 2024
1 parent b3105c4 commit 0a6f3dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "layout/base_email_text_body.txt" %}
{% block body %}
{% if job_application.sender.title %}Bonjour {{ job_application.sender.get_title_display }} {{ job_application.sender.last_name }},{% else %}Bonjour {{ job_application.sender.get_full_name }},{% endif %}
{% if job_application.sender.title %}Bonjour {{ job_application.sender.get_title_display }} {{ job_application.sender.last_name|upper }},{% else %}Bonjour {{ job_application.sender.get_full_name }},{% endif %}

{% block header %}L’entreprise {{ job_application.to_company.display_name }} vous propose d’utiliser Diagoriente pour valoriser les expériences de votre candidat : {{ job_application.job_seeker.get_full_name }}.
Vous pourrez lui créer un compte en cliquant sur ce lien : https://diagoriente.beta.gouv.fr/services/plateforme?utm_source=emploi-inclusion-employeur{% endblock header %}
Expand Down
2 changes: 1 addition & 1 deletion itou/templates/apply/includes/job_seeker_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3 class="mb-0">Informations personnelles</h3>
<ul class="list-data list-data__two-column-md mb-3">
<li>
<small>Prénom</small>
<strong>{{ job_seeker.first_name|mask_unless:can_view_personal_information }}</strong>
<strong>{{ job_seeker.first_name|title|mask_unless:can_view_personal_information }}</strong>
</li>
{% if can_view_personal_information %}
<li>
Expand Down
4 changes: 2 additions & 2 deletions itou/templates/users/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ <h2>Données administratives</h2>
<ul class="list-data">
<li>
<small>Prénom</small>
<strong>{{ beneficiary.first_name }}</strong>
<strong>{{ beneficiary.first_name|title }}</strong>
</li>
<li>
<small>Nom</small>
<strong>{{ beneficiary.last_name }}</strong>
<strong>{{ beneficiary.last_name|upper }}</strong>
</li>
<li>
<small>Date de naissance</small>
Expand Down
2 changes: 1 addition & 1 deletion tests/gps/__snapshots__/test_views.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</li>
<li>
<small>Nom</small>
<strong>Doe</strong>
<strong>DOE</strong>
</li>
<li>
<small>Date de naissance</small>
Expand Down

0 comments on commit 0a6f3dc

Please sign in to comment.