From 724b98e8c5e6c53ddfc3c3f611db5f0ade831d9c Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 4 Jul 2024 13:28:54 +0200 Subject: [PATCH] Improve naming of downloaded documents in job bundle When downloaded the title of the document was\ always set to 'Document', which gave little\ indication as to what the document was about.\ Now documents are titled with the name of the\ person and the type of document (CV, permis,...) --- .../Resources/views/CSPerson/personal_situation_view.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_view.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_view.html.twig index a1f5413bf..ed5e5e590 100644 --- a/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_view.html.twig +++ b/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_view.html.twig @@ -258,7 +258,8 @@ {% if d is null %}
{{ null|chill_print_or_message("Aucun document") }}
{% else %} -
{{ d.title }} {{ d|chill_document_button_group(d.title, is_granted('CHILL_PERSON_UPDATE', person), {small: true}) }}
+ {% set title = person.lastname ~ ' ' ~ person.firstname ~ ', ' ~ r[0] %} +
{{ d|chill_document_button_group(title, is_granted('CHILL_PERSON_UPDATE', person), {small: true}) }}
{% endif %} {% endfor %}