mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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:
parent
e38d47ec5e
commit
724b98e8c5
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user