Added csv download option to reports.

This commit is contained in:
2022-04-21 13:48:35 +01:00
parent c1a79f6747
commit 917161c3e6
8 changed files with 1272 additions and 828 deletions

View File

@ -14,6 +14,7 @@ module:
contact: 0
content_as_config: 0
contextual: 0
csv_serialization: 0
ctools: 0
date_popup: 0
datetime: 0
@ -78,6 +79,7 @@ module:
user: 0
views_aggregator: 0
views_autosubmit: 0
views_data_export: 0
views_summarize: 0
views_ui: 0
hide_revision_field: 1

View File

@ -15,12 +15,16 @@ dependencies:
- taxonomy.vocabulary.tags
- user.role.gno_admin_user
module:
- csv_serialization
- datetime
- opencase_cases
- opencase_entities
- options
- rest
- serialization
- taxonomy
- user
- views_data_export
- views_summarize
id: case_fees_report
label: 'Case Fees Report'
@ -1162,6 +1166,55 @@ display:
- user
- user.roles
tags: { }
data_export_1:
id: data_export_1
display_title: 'Data export'
display_plugin: data_export
position: 3
display_options:
style:
type: data_export
options:
formats:
csv: csv
csv_settings:
delimiter: ','
enclosure: '"'
escape_char: \
strip_tags: true
trim: true
encoding: utf8
utf8_bom: '0'
use_serializer_encode_only: false
display_extenders: { }
path: case_fees_report/download
auth:
- cookie
displays:
page_1: page_1
default: '0'
filename: '[view:label]-[date:short] '
automatic_download: false
store_in_public_file_directory: null
custom_redirect_path: false
redirect_to_display: none
include_query_params: false
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- request_format
- url
- user
- user.roles
tags:
- 'config:field.storage.oc_case.field_contract_signed_date'
- 'config:field.storage.oc_organisation.field_client_subtype'
- 'config:field.storage.oc_organisation.field_client_type'
- 'config:field.storage.oc_organisation.field_tags'
- 'config:field.storage.oc_organisation.field_type_of_umbrella_client'
- 'config:field.storage.oc_organisation.field_umbrella_client'
page_1:
id: page_1
display_title: Page

View File

@ -8,10 +8,14 @@ dependencies:
- system.menu.opencase
- user.role.gno_admin_user
module:
- csv_serialization
- opencase_cases
- opencase_entities
- options
- rest
- serialization
- user
- views_data_export
id: case_provision_report
label: 'Case provision report'
module: views
@ -693,6 +697,50 @@ display:
tags:
- 'config:field.storage.oc_case_provision.field_rate'
- 'config:field.storage.oc_case_provision.field_rate_type'
data_export_1:
id: data_export_1
display_title: 'Data export'
display_plugin: data_export
position: 2
display_options:
style:
type: data_export
options:
formats:
csv: csv
csv_settings:
delimiter: ','
enclosure: '"'
escape_char: \
strip_tags: true
trim: true
encoding: utf8
utf8_bom: '0'
use_serializer_encode_only: false
display_extenders: { }
path: case_provision_report/download
auth:
- cookie
displays:
page_1: page_1
default: '0'
filename: 'Trainer-report-[date:short] '
automatic_download: false
store_in_public_file_directory: null
custom_redirect_path: false
redirect_to_display: none
include_query_params: false
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- request_format
- url
- user.roles
tags:
- 'config:field.storage.oc_case_provision.field_rate'
- 'config:field.storage.oc_case_provision.field_rate_type'
page_1:
id: page_1
display_title: Page

View File

@ -21,11 +21,15 @@ dependencies:
- user.role.gno_admin_user
module:
- better_exposed_filters
- csv_serialization
- datetime
- opencase_entities
- options
- rest
- serialization
- taxonomy
- user
- views_data_export
id: client_report
label: 'Client Report'
module: views
@ -1256,6 +1260,57 @@ display:
- 'config:field.storage.oc_organisation.field_tags'
- 'config:field.storage.oc_organisation.field_type_of_umbrella_client'
- 'config:field.storage.oc_organisation.field_umbrella_client'
data_export_1:
id: data_export_1
display_title: 'Data export'
display_plugin: data_export
position: 2
display_options:
style:
type: data_export
options:
formats:
csv: csv
csv_settings:
delimiter: ','
enclosure: '"'
escape_char: \
strip_tags: true
trim: true
encoding: utf8
utf8_bom: '0'
use_serializer_encode_only: false
display_extenders: { }
path: client-report/download
auth:
- cookie
displays:
page_1: page_1
default: '0'
filename: '[view:label]-[date:short]'
automatic_download: false
store_in_public_file_directory: null
custom_redirect_path: false
redirect_to_display: none
include_query_params: false
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- request_format
- url
- user
- user.roles
tags:
- 'config:field.storage.oc_organisation.field_accreditation_date'
- 'config:field.storage.oc_organisation.field_client_status'
- 'config:field.storage.oc_organisation.field_client_substatus'
- 'config:field.storage.oc_organisation.field_client_subtype'
- 'config:field.storage.oc_organisation.field_client_type'
- 'config:field.storage.oc_organisation.field_tags'
- 'config:field.storage.oc_organisation.field_type_of_umbrella_client'
- 'config:field.storage.oc_organisation.field_umbrella_client'
page_1:
id: page_1
display_title: Page

View File

@ -8,7 +8,10 @@ dependencies:
- user.role.gno_admin_user
module:
- opencase_entities
- rest
- serialization
- user
- views_data_export
id: debrief_report
label: 'Debrief Report'
module: views
@ -362,6 +365,34 @@ display:
- url.query_args
- user.roles
tags: { }
data_export_1:
id: data_export_1
display_title: 'Data export'
display_plugin: data_export
position: 2
display_options:
display_extenders: { }
path: debrief-report/download
auth:
- cookie
displays:
page_1: page_1
default: '0'
filename: '[view:label]-[date:short]'
automatic_download: false
store_in_public_file_directory: null
custom_redirect_path: false
redirect_to_display: none
include_query_params: false
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- request_format
- url
- user.roles
tags: { }
page_1:
id: page_1
display_title: Page

File diff suppressed because it is too large Load Diff