Added case view with an all-cases page and a block that is shown on actor page
This commit is contained in:
parent
908f930e64
commit
5b10fb7328
29
config/optional/block.block.views_block__cases_block_1.yml
Normal file
29
config/optional/block.block.views_block__cases_block_1.yml
Normal file
@ -0,0 +1,29 @@
|
||||
uuid: 22782d1b-4b5d-422e-9609-96e63ffd39da
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- views.view.cases
|
||||
module:
|
||||
- route_condition
|
||||
- views
|
||||
theme:
|
||||
- bartik
|
||||
id: views_block__cases_block_1
|
||||
theme: bartik
|
||||
region: content
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: 'views_block:cases-block_1'
|
||||
settings:
|
||||
id: 'views_block:cases-block_1'
|
||||
label: ''
|
||||
label_display: visible
|
||||
provider: views
|
||||
views_label: ''
|
||||
items_per_page: none
|
||||
visibility:
|
||||
route:
|
||||
id: route
|
||||
negate: false
|
||||
routes: entity.oc_actor.canonical
|
@ -19,45 +19,53 @@ mode: default
|
||||
content:
|
||||
field_case_finance:
|
||||
type: options_select
|
||||
weight: 3
|
||||
weight: 4
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_fee_calculation:
|
||||
type: options_select
|
||||
weight: 5
|
||||
weight: 6
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_fee_or_equivalent_cost:
|
||||
type: number
|
||||
weight: 4
|
||||
weight: 5
|
||||
region: content
|
||||
settings:
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_outcome:
|
||||
type: options_select
|
||||
weight: 6
|
||||
weight: 7
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_type_of_acco:
|
||||
type: options_select
|
||||
weight: 2
|
||||
weight: 3
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
files:
|
||||
type: file_generic
|
||||
weight: 1
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
third_party_settings: { }
|
||||
name:
|
||||
type: string_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
oc_target:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 0
|
||||
weight: 1
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
@ -67,7 +75,7 @@ content:
|
||||
third_party_settings: { }
|
||||
revision_log:
|
||||
type: hide_revision_field_log_widget
|
||||
weight: 7
|
||||
weight: 8
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
@ -78,7 +86,6 @@ content:
|
||||
allow_user_settings: true
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
name: true
|
||||
notes: true
|
||||
status: true
|
||||
total_fee: true
|
||||
|
238
config/optional/views.view.cases.yml
Normal file
238
config/optional/views.view.cases.yml
Normal file
@ -0,0 +1,238 @@
|
||||
uuid: f9c4fcfe-3dd4-4afa-babc-31c03a9cf83f
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.opencase
|
||||
- user.role.authenticated
|
||||
module:
|
||||
- opencase_cases
|
||||
- user
|
||||
id: cases
|
||||
label: Cases
|
||||
module: views
|
||||
description: ''
|
||||
tag: ''
|
||||
base_table: oc_case_field_data
|
||||
base_field: id
|
||||
display:
|
||||
default:
|
||||
id: default
|
||||
display_title: Default
|
||||
display_plugin: default
|
||||
position: 0
|
||||
display_options:
|
||||
title: Cases
|
||||
fields:
|
||||
name:
|
||||
id: name
|
||||
table: oc_case_field_data
|
||||
field: name
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: null
|
||||
entity_field: name
|
||||
plugin_id: field
|
||||
label: Title
|
||||
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: value
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: true
|
||||
group_column: value
|
||||
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: 10
|
||||
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: false
|
||||
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:
|
||||
authenticated: authenticated
|
||||
cache:
|
||||
type: tag
|
||||
options: { }
|
||||
empty: { }
|
||||
sorts: { }
|
||||
arguments: { }
|
||||
filters: { }
|
||||
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: { }
|
||||
display_extenders: { }
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags: { }
|
||||
block_1:
|
||||
id: block_1
|
||||
display_title: Block
|
||||
display_plugin: block
|
||||
position: 2
|
||||
display_options:
|
||||
arguments:
|
||||
oc_target:
|
||||
id: oc_target
|
||||
table: oc_case_field_data
|
||||
field: oc_target
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
entity_type: oc_case
|
||||
entity_field: oc_target
|
||||
plugin_id: numeric
|
||||
default_action: default
|
||||
exception:
|
||||
value: all
|
||||
title_enable: false
|
||||
title: All
|
||||
title_enable: false
|
||||
title: ''
|
||||
default_argument_type: raw
|
||||
default_argument_options:
|
||||
index: 2
|
||||
use_alias: false
|
||||
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: false
|
||||
validate:
|
||||
type: none
|
||||
fail: 'not found'
|
||||
validate_options: { }
|
||||
break_phrase: false
|
||||
not: false
|
||||
defaults:
|
||||
arguments: false
|
||||
display_extenders: { }
|
||||
block_description: 'Cases: by target'
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags: { }
|
||||
page_1:
|
||||
id: page_1
|
||||
display_title: Page
|
||||
display_plugin: page
|
||||
position: 1
|
||||
display_options:
|
||||
display_extenders: { }
|
||||
path: cases/all
|
||||
menu:
|
||||
type: normal
|
||||
title: Cases
|
||||
description: ''
|
||||
weight: 0
|
||||
expanded: false
|
||||
menu_name: opencase
|
||||
parent: opencase.see_all
|
||||
context: '0'
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url.query_args
|
||||
- user.roles
|
||||
tags: { }
|
Reference in New Issue
Block a user