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,...)
This commit is contained in:
Julie Lenaerts 2024-07-04 13:28:54 +02:00
parent e38d47ec5e
commit 724b98e8c5

View File

@ -258,7 +258,8 @@
{% if d is null %} {% if d is null %}
<dd>{{ null|chill_print_or_message("Aucun document") }}</dd> <dd>{{ null|chill_print_or_message("Aucun document") }}</dd>
{% else %} {% else %}
<dd>{{ d.title }} {{ d|chill_document_button_group(d.title, is_granted('CHILL_PERSON_UPDATE', person), {small: true}) }}</dd> {% set title = person.lastname ~ ' ' ~ person.firstname ~ ', ' ~ r[0] %}
<dd>{{ d|chill_document_button_group(title, is_granted('CHILL_PERSON_UPDATE', person), {small: true}) }}</dd>
{% endif %} {% endif %}
{% endfor %} {% endfor %}