fields on actor form and view displays

This commit is contained in:
naomi 2022-05-12 18:14:10 +01:00
parent 95c1d4970e
commit 44598d7a19
4 changed files with 159 additions and 84 deletions

View File

@ -0,0 +1,79 @@
uuid: 56d178c9-a69d-42a7-8235-6ecce238a904
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.staff_member
id: oc_actor.staff_member.default
targetEntityType: oc_actor
bundle: staff_member
mode: default
content:
email:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
first_name:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
last_name:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
middle_names:
type: string_textfield
weight: 3
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
phone:
type: string_textfield
weight: 4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
phone2:
type: string_textfield
weight: 5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
post_code:
type: string_textfield
weight: 7
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
postal_address:
type: string_textarea
weight: 6
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
hidden:
revision_log: true
status: true
user_id: true

View File

@ -10,8 +10,6 @@ dependencies:
- field.field.oc_actor.volunteer.field_osic_level
- field.field.oc_actor.volunteer.field_skills
- opencase_entities.oc_actor_type.volunteer
module:
- hide_revision_field
id: oc_actor.volunteer.default
targetEntityType: oc_actor
bundle: volunteer
@ -19,15 +17,7 @@ mode: default
content:
email:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_ethnic_o:
type: string_textfield
weight: 81
weight: 2
region: content
settings:
size: 60
@ -35,7 +25,7 @@ content:
third_party_settings: { }
field_general_noes:
type: string_textarea
weight: 5
weight: 10
region: content
settings:
rows: 5
@ -43,25 +33,19 @@ content:
third_party_settings: { }
field_languages_spoken:
type: options_select
weight: 2
region: content
settings: { }
third_party_settings: { }
field_nationalities:
type: options_select
weight: 1
weight: 7
region: content
settings: { }
third_party_settings: { }
field_osic_level:
type: options_select
weight: 3
weight: 8
region: content
settings: { }
third_party_settings: { }
field_skills:
type: string_textarea
weight: 4
weight: 9
region: content
settings:
rows: 5
@ -69,7 +53,7 @@ content:
third_party_settings: { }
first_name:
type: string_textfield
weight: -100
weight: 0
region: content
settings:
size: 60
@ -77,15 +61,7 @@ content:
third_party_settings: { }
last_name:
type: string_textfield
weight: -98
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
middle_names:
type: string_textfield
weight: -99
weight: 1
region: content
settings:
size: 60
@ -101,7 +77,7 @@ content:
third_party_settings: { }
phone:
type: string_textfield
weight: -4
weight: 3
region: content
settings:
size: 60
@ -109,7 +85,7 @@ content:
third_party_settings: { }
phone2:
type: string_textfield
weight: -3
weight: 4
region: content
settings:
size: 60
@ -117,7 +93,7 @@ content:
third_party_settings: { }
post_code:
type: string_textfield
weight: -1
weight: 6
region: content
settings:
size: 60
@ -125,34 +101,17 @@ content:
third_party_settings: { }
postal_address:
type: string_textarea
weight: -2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
revision_log:
type: hide_revision_field_log_widget
weight: 80
region: content
settings:
rows: 5
placeholder: ''
show: true
default: ''
permission_based: false
allow_user_settings: true
third_party_settings: { }
user_id:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
rows: 5
placeholder: ''
third_party_settings: { }
hidden:
field_ethnic_o: true
field_nationalities: true
middle_names: true
revision_log: true
status: true
user_id: true
user_login: true

View File

@ -0,0 +1,58 @@
uuid: 67d86fb5-981d-4e62-866b-16921b71fa17
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.staff_member
id: oc_actor.staff_member.default
targetEntityType: oc_actor
bundle: staff_member
mode: default
content:
email:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
phone:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
phone2:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
post_code:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
postal_address:
type: basic_string
label: above
settings: { }
third_party_settings: { }
weight: 3
region: content
hidden:
first_name: true
last_name: true
middle_names: true
search_api_excerpt: true
status: true
total_cases: true
user_id: true

View File

@ -25,29 +25,14 @@ content:
third_party_settings: { }
weight: 0
region: content
field_ethnic_o:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 10
region: content
field_general_noes:
type: basic_string
label: above
settings: { }
third_party_settings: { }
weight: 9
weight: 8
region: content
field_languages_spoken:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 6
region: content
field_nationalities:
type: list_default
label: above
settings: { }
@ -59,7 +44,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 7
weight: 6
region: content
field_sdfdsfds:
type: text_default
@ -73,7 +58,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 8
weight: 7
region: content
name:
type: string
@ -114,19 +99,13 @@ content:
third_party_settings: { }
weight: 3
region: content
total_cases:
type: number_integer
label: above
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 11
region: content
hidden:
field_ethnic_o: true
field_nationalities: true
first_name: true
last_name: true
middle_names: true
search_api_excerpt: true
status: true
total_cases: true
user_id: true