Skip to content

Commit

Permalink
job_seekers_views: better HTML rendering in the modal
Browse files Browse the repository at this point in the history
When finding a job seeker with their email address, and if the NIR was
filled in the previous step, a sentence is added to the "User found"
modal. This sentence is now better rendered (the final `.` was after a
newline, creating a space between the last word and the `.`).
  • Loading branch information
EwenKorr committed Feb 3, 2025
1 parent d5da897 commit 5d805b4
Showing 1 changed file with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,26 @@ <h3 class="modal-title" id="email-confirmation-label">Email existant</h3>
</p>
{% if can_add_nir %}
<p>
En cliquant sur « Continuer », <b>vous acceptez que le numéro de sécurité sociale {{ nir|format_nir }} soit associé à ce
{{ is_gps|default:False|yesno:"bénéficiaire,candidat" }}
.</b>
</p>
{% endif %}
</div>
<div class="modal-footer">
En cliquant sur « Continuer », <b>vous acceptez que le numéro de sécurité sociale {{ nir|format_nir }} soit associé à ce {{ is_gps|default:False|yesno:"bénéficiaire,candidat" }}.</b>
</p>
{% endif %}
</div>
<div class="modal-footer">

{# Reload this page with a new form. #}
{% if is_gps|default:False %}
{% bootstrap_button "Suivre un autre bénéficiaire" button_type="submit" button_class="btn btn-sm btn-outline-primary" name="cancel" value="1" %}
{% else %}
{% bootstrap_button "Ce n'est pas mon candidat" button_type="submit" button_class="btn btn-sm btn-outline-primary" name="cancel" value="1" %}
{% endif %}
{# Go to the next step. #}
{% bootstrap_button "Continuer" button_type="submit" button_class="btn btn-sm btn-primary" name="confirm" value="1" %}
{# Reload this page with a new form. #}
{% if is_gps|default:False %}
{% bootstrap_button "Suivre un autre bénéficiaire" button_type="submit" button_class="btn btn-sm btn-outline-primary" name="cancel" value="1" %}
{% else %}
{% bootstrap_button "Ce n'est pas mon candidat" button_type="submit" button_class="btn btn-sm btn-outline-primary" name="cancel" value="1" %}
{% endif %}
{# Go to the next step. #}
{% bootstrap_button "Continuer" button_type="submit" button_class="btn btn-sm btn-primary" name="confirm" value="1" %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
</form>
{% endif %}
</form>
{% endblock %}

{% block script %}
Expand Down

0 comments on commit 5d805b4

Please sign in to comment.