Code & config for logged-in trainer being automatically added to debrief.
This commit is contained in:
@@ -3,7 +3,6 @@ langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.oc_activity.field_trainer
|
||||
- opencase_entities.oc_activity_type.trainer_debrief
|
||||
- system.menu.opencase
|
||||
- user.role.gno_admin_user
|
||||
@@ -19,59 +18,12 @@ base_table: oc_activity_field_data
|
||||
base_field: id
|
||||
display:
|
||||
default:
|
||||
display_plugin: default
|
||||
id: default
|
||||
display_title: Master
|
||||
display_plugin: default
|
||||
position: 0
|
||||
display_options:
|
||||
access:
|
||||
type: role
|
||||
options:
|
||||
role:
|
||||
gno_admin_user: gno_admin_user
|
||||
cache:
|
||||
type: tag
|
||||
options: { }
|
||||
query:
|
||||
type: views_query
|
||||
options:
|
||||
disable_sql_rewrite: false
|
||||
distinct: false
|
||||
replica: false
|
||||
query_comment: ''
|
||||
query_tags: { }
|
||||
exposed_form:
|
||||
type: basic
|
||||
options:
|
||||
submit_button: Apply
|
||||
reset_button: true
|
||||
reset_button_label: Reset
|
||||
exposed_sorts_label: 'Sort by'
|
||||
expose_sort_order: true
|
||||
sort_asc_label: Asc
|
||||
sort_desc_label: Desc
|
||||
pager:
|
||||
type: mini
|
||||
options:
|
||||
items_per_page: 50
|
||||
offset: 0
|
||||
id: 0
|
||||
total_pages: null
|
||||
expose:
|
||||
items_per_page: false
|
||||
items_per_page_label: 'Items per page'
|
||||
items_per_page_options: '5, 10, 25, 50'
|
||||
items_per_page_options_all: false
|
||||
items_per_page_options_all_label: '- All -'
|
||||
offset: false
|
||||
offset_label: Offset
|
||||
tags:
|
||||
previous: ‹‹
|
||||
next: ››
|
||||
style:
|
||||
type: table
|
||||
row:
|
||||
type: fields
|
||||
title: 'Debrief Report'
|
||||
fields:
|
||||
created:
|
||||
id: created
|
||||
@@ -80,6 +32,9 @@ display:
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: oc_activity
|
||||
entity_field: created
|
||||
plugin_id: field
|
||||
label: 'Date submitted'
|
||||
exclude: false
|
||||
alter:
|
||||
@@ -137,72 +92,6 @@ display:
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
entity_type: oc_activity
|
||||
entity_field: created
|
||||
plugin_id: field
|
||||
field_trainer:
|
||||
id: field_trainer
|
||||
table: oc_activity__field_trainer
|
||||
field: field_trainer
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: Trainer
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: true
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: target_id
|
||||
type: entity_reference_label
|
||||
settings:
|
||||
link: true
|
||||
group_column: target_id
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
plugin_id: field
|
||||
oc_case:
|
||||
id: oc_case
|
||||
table: oc_activity_field_data
|
||||
@@ -210,6 +99,9 @@ display:
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: oc_activity
|
||||
entity_field: oc_case
|
||||
plugin_id: field
|
||||
label: Training
|
||||
exclude: false
|
||||
alter:
|
||||
@@ -265,19 +157,131 @@ display:
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
oc_provider:
|
||||
id: oc_provider
|
||||
table: oc_activity_field_data
|
||||
field: oc_provider
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: oc_activity
|
||||
entity_field: oc_case
|
||||
entity_field: oc_provider
|
||||
plugin_id: field
|
||||
label: Trainer
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: true
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: target_id
|
||||
type: entity_reference_label
|
||||
settings:
|
||||
link: true
|
||||
group_column: target_id
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
pager:
|
||||
type: mini
|
||||
options:
|
||||
offset: 0
|
||||
items_per_page: 50
|
||||
total_pages: null
|
||||
id: 0
|
||||
tags:
|
||||
next: ››
|
||||
previous: ‹‹
|
||||
expose:
|
||||
items_per_page: false
|
||||
items_per_page_label: 'Items per page'
|
||||
items_per_page_options: '5, 10, 25, 50'
|
||||
items_per_page_options_all: false
|
||||
items_per_page_options_all_label: '- All -'
|
||||
offset: false
|
||||
offset_label: Offset
|
||||
exposed_form:
|
||||
type: basic
|
||||
options:
|
||||
submit_button: Apply
|
||||
reset_button: true
|
||||
reset_button_label: Reset
|
||||
exposed_sorts_label: 'Sort by'
|
||||
expose_sort_order: true
|
||||
sort_asc_label: Asc
|
||||
sort_desc_label: Desc
|
||||
access:
|
||||
type: role
|
||||
options:
|
||||
role:
|
||||
gno_admin_user: gno_admin_user
|
||||
cache:
|
||||
type: tag
|
||||
options: { }
|
||||
empty:
|
||||
area_text_custom:
|
||||
id: area_text_custom
|
||||
table: views
|
||||
field: area_text_custom
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
plugin_id: text_custom
|
||||
empty: true
|
||||
content: 'None found'
|
||||
tokenize: false
|
||||
sorts: { }
|
||||
arguments: { }
|
||||
filters:
|
||||
type:
|
||||
id: type
|
||||
table: oc_activity_field_data
|
||||
field: type
|
||||
value:
|
||||
trainer_debrief: trainer_debrief
|
||||
entity_type: oc_activity
|
||||
entity_field: type
|
||||
plugin_id: bundle
|
||||
value:
|
||||
trainer_debrief: trainer_debrief
|
||||
expose:
|
||||
operator_limit_selection: false
|
||||
operator_list: { }
|
||||
@@ -288,6 +292,9 @@ display:
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: oc_activity
|
||||
entity_field: created
|
||||
plugin_id: date
|
||||
operator: between
|
||||
value:
|
||||
min: ''
|
||||
@@ -315,9 +322,9 @@ display:
|
||||
gno_admin_user: '0'
|
||||
follow_up_alerts: '0'
|
||||
newly_accredited_alerts: '0'
|
||||
placeholder: ''
|
||||
min_placeholder: ''
|
||||
max_placeholder: ''
|
||||
placeholder: ''
|
||||
is_grouped: false
|
||||
group_info:
|
||||
label: ''
|
||||
@@ -330,27 +337,21 @@ display:
|
||||
default_group: All
|
||||
default_group_multiple: { }
|
||||
group_items: { }
|
||||
entity_type: oc_activity
|
||||
entity_field: created
|
||||
plugin_id: date
|
||||
sorts: { }
|
||||
title: 'Debrief Report'
|
||||
style:
|
||||
type: table
|
||||
row:
|
||||
type: fields
|
||||
query:
|
||||
type: views_query
|
||||
options:
|
||||
query_comment: ''
|
||||
disable_sql_rewrite: false
|
||||
distinct: false
|
||||
replica: false
|
||||
query_tags: { }
|
||||
relationships: { }
|
||||
header: { }
|
||||
footer: { }
|
||||
empty:
|
||||
area_text_custom:
|
||||
id: area_text_custom
|
||||
table: views
|
||||
field: area_text_custom
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
empty: true
|
||||
tokenize: false
|
||||
content: 'None found'
|
||||
plugin_id: text_custom
|
||||
relationships: { }
|
||||
arguments: { }
|
||||
display_extenders: { }
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
@@ -360,26 +361,25 @@ display:
|
||||
- url
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags:
|
||||
- 'config:field.storage.oc_activity.field_trainer'
|
||||
tags: { }
|
||||
page_1:
|
||||
display_plugin: page
|
||||
id: page_1
|
||||
display_title: Page
|
||||
display_plugin: page
|
||||
position: 1
|
||||
display_options:
|
||||
exposed_block: true
|
||||
display_extenders: { }
|
||||
path: debrief-report
|
||||
menu:
|
||||
type: normal
|
||||
title: 'Debrief Report'
|
||||
description: ''
|
||||
expanded: false
|
||||
parent: opencase.reporting
|
||||
weight: 0
|
||||
context: '0'
|
||||
expanded: false
|
||||
menu_name: opencase
|
||||
exposed_block: true
|
||||
parent: opencase.reporting
|
||||
context: '0'
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
contexts:
|
||||
@@ -388,5 +388,4 @@ display:
|
||||
- url
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags:
|
||||
- 'config:field.storage.oc_activity.field_trainer'
|
||||
tags: { }
|
||||
|
||||
Reference in New Issue
Block a user