Allowing export for reports

This commit is contained in:
Marc Ducobu
2015-02-17 15:11:42 +01:00
parent 897a0361a8
commit 6ec0892ac6
5 changed files with 183 additions and 18 deletions

View 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 %}