mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Allowing export for reports
This commit is contained in:
23
Resources/views/Report/export.csv.twig
Normal file
23
Resources/views/Report/export.csv.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
"{{ 'Person'|trans }}",{#
|
||||
#}"{{ 'Date'|trans }}",{#
|
||||
#}"{{ 'User'|trans }}",{#
|
||||
#}"{{ 'Report type'|trans }}",{#
|
||||
#}{% for customField in cf_group.customFields %}{#
|
||||
#}"{{ chill_custom_field_label(customField) }}"{% if not loop.last %},{% endif %}{#
|
||||
#}{% endfor %}
|
||||
|
||||
{% for report in reports %}{#
|
||||
#}"{{ report.person }}",{#
|
||||
#}"{{ report.date|localizeddate('long', 'none') }}",{#
|
||||
#}"{{ report.user }}",{#
|
||||
#}"{{ report.cFGroup.getName(app.request.locale) }}",{#
|
||||
#}{% for customField in report.cFGroup.customFields %}{#
|
||||
#}{% if customField.type == 'title' %}{#
|
||||
#}""{#
|
||||
#}{% else %}{#
|
||||
#}"{{ chill_custom_field_widget(report.cFData , customField, 'csv') }}"{#
|
||||
#}{% endif %}{#
|
||||
#}{% if not loop.last %},{% endif %}{#
|
||||
#}{% endfor %}
|
||||
|
||||
{% endfor %}
|
Reference in New Issue
Block a user