From d2b929cf7e57027222643e1756ff1eb86af36971 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Tue, 18 Aug 2015 09:41:31 +0200 Subject: [PATCH] Adding marital status to csv export --- Resources/views/Person/export.csv.twig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Resources/views/Person/export.csv.twig b/Resources/views/Person/export.csv.twig index d985f32a0..72917a7a2 100644 --- a/Resources/views/Person/export.csv.twig +++ b/Resources/views/Person/export.csv.twig @@ -8,6 +8,8 @@ #}"{{ '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 %}{# @@ -46,6 +48,14 @@ #}",{# #}"{{ 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' %}{#