3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add an "Asset reference (page)" display to farm_log View for logs that reference an asset.

This commit is contained in:
Michael Stenta 2021-04-23 12:28:17 -04:00
parent 16a64f9b4e
commit 8f5b1ec82d

View file

@ -1321,7 +1321,7 @@ display:
display_plugin: block
id: block_late
display_title: 'Late (block)'
position: 7
position: 6
display_options:
display_extenders: { }
display_description: ''
@ -2215,7 +2215,7 @@ display:
display_plugin: rest_export
id: csv
display_title: 'CSV export (rest)'
position: 8
position: 7
display_options:
display_extenders: { }
path: logs.csv
@ -2328,6 +2328,114 @@ display:
- user
- user.permissions
tags: { }
page_asset:
display_plugin: page
id: page_asset
display_title: 'Asset reference (page)'
position: 3
display_options:
display_extenders: { }
display_description: ''
path: asset/%asset/logs/%log_type
arguments:
asset_target_id:
id: asset_target_id
table: log__asset
field: asset_target_id
relationship: none
group_type: group
admin_label: ''
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
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: true
validate:
type: 'entity:asset'
fail: 'not found'
validate_options:
operation: view
multiple: 0
bundles: { }
access: false
break_phrase: false
not: false
entity_type: log
entity_field: asset
plugin_id: numeric
type:
id: type
table: log_field_data
field: type
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: all
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: true
validate:
type: 'entity:log_type'
fail: 'not found'
validate_options:
operation: view
multiple: 0
access: false
bundles: { }
glossary: false
limit: 0
case: none
path_case: none
transform_dash: false
break_phrase: false
entity_type: log
entity_field: type
plugin_id: string
defaults:
arguments: false
cache_metadata:
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user
- user.permissions
tags: { }
page_type:
display_plugin: page
id: page_type
@ -2401,7 +2509,7 @@ display:
display_plugin: page
id: page_user
display_title: 'Assigned (page)'
position: 3
position: 4
display_options:
display_extenders: { }
display_description: ''