Global • Dropdowns rather than autocomplete for all entity reference fields

This commit is contained in:
naomi 2022-04-20 14:30:38 +01:00
parent a2aff386da
commit b66aafa5e7
9 changed files with 25 additions and 96 deletions

View File

@ -11,16 +11,6 @@ targetEntityType: oc_activity
bundle: phone_call bundle: phone_call
mode: default mode: default
content: content:
client:
type: entity_reference_autocomplete
weight: 2
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
name: name:
type: string_textfield type: string_textfield
weight: 0 weight: 0
@ -31,7 +21,7 @@ content:
third_party_settings: { } third_party_settings: { }
revision_log: revision_log:
type: hide_revision_field_log_widget type: hide_revision_field_log_widget
weight: 80 weight: 2
region: content region: content
settings: settings:
rows: 5 rows: 5
@ -50,6 +40,7 @@ content:
third_party_settings: { } third_party_settings: { }
hidden: hidden:
activity_date_time: true activity_date_time: true
client: true
description: true description: true
oc_provider: true oc_provider: true
oc_target: true oc_target: true

View File

@ -94,14 +94,10 @@ content:
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
oc_provider: oc_provider:
type: entity_reference_autocomplete type: options_select
weight: 0 weight: 0
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
revision_log: revision_log:
type: hide_revision_field_log_widget type: hide_revision_field_log_widget

View File

@ -53,14 +53,10 @@ content:
default_paragraph_type: _none default_paragraph_type: _none
third_party_settings: { } third_party_settings: { }
field_delivery_partners: field_delivery_partners:
type: entity_reference_autocomplete type: options_select
weight: 7 weight: 7
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
field_emergency_contact: field_emergency_contact:
type: entity_reference_paragraphs type: entity_reference_paragraphs

View File

@ -18,14 +18,10 @@ bundle: project
mode: default mode: default
content: content:
client: client:
type: entity_reference_autocomplete type: options_select
weight: 0 weight: 0
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
field_contract_signed_date: field_contract_signed_date:
type: datetime_default type: datetime_default

View File

@ -25,14 +25,10 @@ bundle: training
mode: default mode: default
content: content:
client: client:
type: entity_reference_autocomplete type: options_select
weight: 0 weight: 0
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
field_date_of_training: field_date_of_training:
type: datetime_default type: datetime_default
@ -41,14 +37,10 @@ content:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
field_project: field_project:
type: entity_reference_autocomplete type: options_select
weight: 1 weight: 1
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
field_social_media: field_social_media:
type: boolean_checkbox type: boolean_checkbox

View File

@ -5,8 +5,6 @@ dependencies:
config: config:
- field.field.oc_case_fee.project_fee.feeds_item - field.field.oc_case_fee.project_fee.feeds_item
- opencase_cases.oc_case_fee_type.project_fee - opencase_cases.oc_case_fee_type.project_fee
module:
- hide_revision_field
id: oc_case_fee.project_fee.default id: oc_case_fee.project_fee.default
targetEntityType: oc_case_fee targetEntityType: oc_case_fee
bundle: project_fee bundle: project_fee
@ -20,30 +18,15 @@ content:
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
oc_fee_category: oc_fee_category:
type: entity_reference_autocomplete type: options_select
weight: 0 weight: 0
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
revision_log:
type: hide_revision_field_log_widget
weight: 80
region: content
settings:
rows: 5
placeholder: ''
show: false
default: ''
permission_based: false
allow_user_settings: false
third_party_settings: { } third_party_settings: { }
hidden: hidden:
feeds_item: true feeds_item: true
name: true name: true
oc_case: true oc_case: true
revision_log: true
status: true status: true
user_id: true user_id: true

View File

@ -27,16 +27,6 @@ content:
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
oc_case:
type: entity_reference_autocomplete
weight: 4
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
oc_case_provider_role: oc_case_provider_role:
type: options_select type: options_select
weight: 1 weight: 1
@ -44,18 +34,14 @@ content:
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
oc_provider: oc_provider:
type: entity_reference_autocomplete type: options_select
weight: 0 weight: 0
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
revision_log: revision_log:
type: hide_revision_field_log_widget type: hide_revision_field_log_widget
weight: 80 weight: 4
region: content region: content
settings: settings:
rows: 5 rows: 5
@ -68,5 +54,6 @@ content:
hidden: hidden:
feeds_item: true feeds_item: true
name: true name: true
oc_case: true
status: true status: true
user_id: true user_id: true

View File

@ -95,24 +95,16 @@ content:
placeholder: '' placeholder: ''
third_party_settings: { } third_party_settings: { }
field_tags: field_tags:
type: entity_reference_autocomplete type: options_select
weight: 11 weight: 11
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
field_umbrella_client: field_umbrella_client:
type: entity_reference_autocomplete type: options_select
weight: 6 weight: 6
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
name: name:
type: string_textfield type: string_textfield

View File

@ -18,14 +18,10 @@ bundle: umbrella_client
mode: default mode: default
content: content:
field_tags: field_tags:
type: entity_reference_autocomplete type: options_select
weight: 2 weight: 2
region: content region: content
settings: settings: { }
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { } third_party_settings: { }
field_type_of_umbrella_client: field_type_of_umbrella_client:
type: options_select type: options_select