mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 00:04:26 +00:00
71 lines
2.5 KiB
Twig
71 lines
2.5 KiB
Twig
"{{ 'Person id'|trans }}",{#
|
|
#}"{{ 'First name'|trans }}",{#
|
|
#}"{{ 'Last name'|trans }}",{#
|
|
#}"{{ 'Gender'|trans }}",{#
|
|
#}"{{ 'Date of birth'|trans }}",{#
|
|
#}"{{ 'Place of birth'|trans }}",{#
|
|
#}"{{ 'Nationality'|trans }}",{#
|
|
#}"{{ 'Spoken languages'|trans }}",{#
|
|
#}"{{ 'Email'|trans }}",{#
|
|
#}"{{ 'Phonenumber'|trans }}",{#
|
|
#}"{{ 'Marital Status'|trans }}",{#
|
|
#}"{{ 'Center'|trans }}",{#
|
|
#}{% if cf_group %}{#
|
|
#}{% for customField in cf_group.customFields %}{#
|
|
#}"{{ chill_custom_field_label(customField) }}"{% if not loop.last %},{% endif %}{#
|
|
#}{% endfor %}{#
|
|
#}{% endif %}{#
|
|
|
|
#}{{ '\r\n'|raw }}{#
|
|
#}{% for person in persons %}{#
|
|
#}{{ person.id }},{#
|
|
#}"{{ person.firstName|csv_cell }}",{#
|
|
#}"{{ person.lastName|csv_cell }}",{#
|
|
#}"{{ person.gender|csv_cell }}",{#
|
|
#}"{{ person.birthdate|localizeddate('short', 'none') }}",{#
|
|
#}"{# countryOfBirth
|
|
#}{% if person.countryOfBirth is not null %}{#
|
|
#}{{ person.countryOfBirth.name|localize_translatable_string }}{#
|
|
#}{% else %}{#
|
|
#}{{ 'Unknown country of birth'|trans }}{#
|
|
#}{% endif %}{#
|
|
#}",{#
|
|
#}"{# nationality
|
|
#}{% if person.nationality is not null %}{#
|
|
#}{{ person.nationality.name|localize_translatable_string }}{#
|
|
#}{% else %}{#
|
|
#}{{ 'Without nationality'|trans }}{#
|
|
#}{% endif %}{#
|
|
#}",{#
|
|
#}"{# spokenLanguages
|
|
#}{% if person.spokenLanguages|length == 0 %}{#
|
|
#}{{ 'Unknown spoken languages'|trans }}{#
|
|
#}{% else %}{#
|
|
#}{% for lang in person.spokenLanguages %}{#
|
|
#}{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}{#
|
|
#}{% endfor %}{#
|
|
#}{% endif %}{#
|
|
#}",{#
|
|
#}"{{ person.email|csv_cell }}",{#
|
|
#}"{{ person.phonenumber|csv_cell }}",{#
|
|
#}"{# maritalStatus
|
|
#}{% if person.maritalStatus is not null %}{#
|
|
#}{{ person.maritalStatus.name|localize_translatable_string}}{#
|
|
#}{% else %}{#
|
|
#}{{ 'Unknown marital status'|trans }}{#
|
|
#}{% endif %}{#
|
|
#}",{#
|
|
#}"{{ person.center|csv_cell }}",{#
|
|
#}{% if cf_group %}{#
|
|
#}{% for customField in cf_group.customFields %}{#
|
|
#}{% if customField.type == 'title' %}{#
|
|
#}""{#
|
|
#}{% else %}{#
|
|
#}"{{ chill_custom_field_widget(person.cFData , customField, 'csv') }}"{#
|
|
#}{% endif %}{#
|
|
#}{% if not loop.last %},{% endif %}{#
|
|
#}{% endfor %}{#
|
|
#}{% endif %}{#
|
|
#}{{ '\r\n'|raw }}{#
|
|
|
|
#}{% endfor %} |