Modified views to add owner to asset & asset to user

This commit is contained in:
Jotham Gates 2022-02-26 00:52:56 +11:00
parent 76cce7d908
commit e539bfb7f8
2 changed files with 235 additions and 0 deletions

View File

@ -478,6 +478,71 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
owner_target_id:
id: owner_target_id
table: asset__owner
field: owner_target_id
relationship: none
group_type: group
admin_label: ''
entity_type: asset
entity_field: owner
plugin_id: field
label: 'Assigned to'
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
location:
id: location
table: asset
@ -1593,6 +1658,78 @@ display:
- url.query_args
- user.permissions
tags: { }
page_1:
id: page_1
display_title: 'Assigned (page)'
display_plugin: page
position: 7
display_options:
arguments:
owner_target_id:
id: owner_target_id
table: asset__owner
field: owner_target_id
relationship: none
group_type: group
admin_label: ''
entity_type: asset
entity_field: owner
plugin_id: numeric
default_action: 'not found'
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: true
validate:
type: 'entity:user'
fail: 'not found'
validate_options:
access: false
operation: view
multiple: 0
restrict_roles: false
roles: { }
break_phrase: false
not: false
defaults:
arguments: false
display_description: ''
display_extenders: { }
path: user/%user/assets
menu:
type: tab
title: Assets
description: ''
weight: 0
expanded: false
menu_name: account
parent: ''
context: '0'
cache_metadata:
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user.permissions
tags: { }
page_children:
id: page_children
display_title: 'Children (page)'

View File

@ -437,6 +437,55 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: false
nothing_1:
id: nothing_1
table: views
field: nothing
relationship: none
group_type: group
admin_label: ''
plugin_id: custom
label: 'Assigned assets'
exclude: false
alter:
alter_text: true
text: 'Assigned assets'
make_link: true
path: 'user/{{ uid }}/assets'
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: false
pager:
type: full
options:
@ -703,6 +752,55 @@ display:
header: { }
footer: { }
display_extenders: { }
nothing:
id: nothing
table: views
field: nothing
relationship: none
group_type: group
admin_label: ''
plugin_id: custom
label: 'Assigned assets'
exclude: false
alter:
alter_text: true
text: 'Assigned assets'
make_link: true
path: 'user/{{ uid }}/assets'
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: false
cache_metadata:
max-age: -1
contexts: