Skip to content

Commit

Permalink
VACMS-15977: Adds accordion to VBA Facility Prepare for your visit (#…
Browse files Browse the repository at this point in the history
…16161)

* VACMS-15977: Makes prepare for visit config changes

* VACMS-15977: Makes node:view better match node:edit

---------

Co-authored-by: Steve Wirt <[email protected]>
  • Loading branch information
omahane and swirtSJW authored Nov 19, 2023
1 parent 24c79bd commit c9d4c09
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 45 deletions.
54 changes: 34 additions & 20 deletions config/sync/core.entity_form_display.node.vba_facility.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies:
- field.field.node.vba_facility.field_geolocation
- field.field.node.vba_facility.field_intro_text
- field.field.node.vba_facility.field_last_saved_by_an_editor
- field.field.node.vba_facility.field_location_services
- field.field.node.vba_facility.field_media
- field.field.node.vba_facility.field_non_va_location_url
- field.field.node.vba_facility.field_non_va_official_name
Expand All @@ -27,6 +26,7 @@ dependencies:
- field.field.node.vba_facility.field_operating_status_facility
- field.field.node.vba_facility.field_operating_status_more_info
- field.field.node.vba_facility.field_phone_number
- field.field.node.vba_facility.field_prepare_for_visit
- field.field.node.vba_facility.field_shared_vha_location
- field.field.node.vba_facility.field_table_of_contents
- field.field.node.vba_facility.field_timezone
Expand All @@ -45,6 +45,7 @@ dependencies:
- media_library
- office_hours
- paragraphs
- paragraphs_features
- telephone
- textfield_counter
- tzfield
Expand Down Expand Up @@ -159,19 +160,20 @@ third_party_settings:
description_display: after
group_prepare_for_your_visit:
children:
- field_location_services
- field_prepare_for_visit
label: 'Prepare for your visit'
region: content
parent_name: ''
weight: 7
format_type: details
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: true
id: prepare-for-your-visit
open: true
description: 'Add location services available at this facility such as transportation, parking, visiting hours, lodging options, food options, etc. Do not use this for benefit services.'
required_fields: true
open: true
description_display: after
group_benefit_office_overview:
children:
- field_cc_vba_facility_overview
Expand Down Expand Up @@ -417,22 +419,6 @@ content:
region: content
settings: { }
third_party_settings: { }
field_location_services:
type: entity_reference_paragraphs
weight: 5
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: closed
add_mode: button
form_display_mode: default
default_paragraph_type: _none
third_party_settings:
limited_field_widgets:
limit_values: '0'
change_labels:
add_another: ''
field_media:
type: media_library_widget
weight: 4
Expand Down Expand Up @@ -496,6 +482,34 @@ content:
settings:
placeholder: ''
third_party_settings: { }
field_prepare_for_visit:
type: paragraphs
weight: 27
region: content
settings:
title: accordion
title_plural: accordions
edit_mode: closed
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: button
form_display_mode: default
default_paragraph_type: _none
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
duplicate: '0'
third_party_settings:
paragraphs_features:
add_in_between: false
add_in_between_link_count: 3
delete_confirmation: false
show_drag_and_drop: true
limited_field_widgets:
limit_values: '0'
change_labels:
add_another: ''
field_shared_vha_location:
type: entity_reference_autocomplete
weight: 17
Expand Down
34 changes: 24 additions & 10 deletions config/sync/core.entity_view_display.node.vba_facility.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies:
- field.field.node.vba_facility.field_geolocation
- field.field.node.vba_facility.field_intro_text
- field.field.node.vba_facility.field_last_saved_by_an_editor
- field.field.node.vba_facility.field_location_services
- field.field.node.vba_facility.field_media
- field.field.node.vba_facility.field_non_va_location_url
- field.field.node.vba_facility.field_non_va_official_name
Expand All @@ -27,6 +26,7 @@ dependencies:
- field.field.node.vba_facility.field_operating_status_facility
- field.field.node.vba_facility.field_operating_status_more_info
- field.field.node.vba_facility.field_phone_number
- field.field.node.vba_facility.field_prepare_for_visit
- field.field.node.vba_facility.field_shared_vha_location
- field.field.node.vba_facility.field_table_of_contents
- field.field.node.vba_facility.field_timezone
Expand Down Expand Up @@ -247,6 +247,20 @@ third_party_settings:
tooltip_description: "Why can’t I edit this? \r\nNational editors keep this content standardized to provide consistent messaging for facilities nationwide."
open: false
required_fields: false
group_prepare_for_your_visit:
children:
- field_prepare_for_visit
label: 'Prepare for your visit'
parent_name: ''
region: content
weight: 6
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
description: ''
description_display: after
id: node.vba_facility.default
targetEntityType: node
bundle: vba_facility
Expand Down Expand Up @@ -330,15 +344,6 @@ content:
third_party_settings: { }
weight: 14
region: content
field_location_services:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 6
region: content
field_media:
type: entity_reference_entity_view
label: above
Expand Down Expand Up @@ -431,6 +436,15 @@ content:
third_party_settings: { }
weight: 5
region: content
field_prepare_for_visit:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 17
region: content
field_shared_vha_location:
type: entity_reference_label
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dependencies:
- field.field.node.vba_facility.field_geolocation
- field.field.node.vba_facility.field_intro_text
- field.field.node.vba_facility.field_last_saved_by_an_editor
- field.field.node.vba_facility.field_location_services
- field.field.node.vba_facility.field_media
- field.field.node.vba_facility.field_non_va_location_url
- field.field.node.vba_facility.field_non_va_official_name
Expand All @@ -28,6 +27,7 @@ dependencies:
- field.field.node.vba_facility.field_operating_status_facility
- field.field.node.vba_facility.field_operating_status_more_info
- field.field.node.vba_facility.field_phone_number
- field.field.node.vba_facility.field_prepare_for_visit
- field.field.node.vba_facility.field_shared_vha_location
- field.field.node.vba_facility.field_table_of_contents
- field.field.node.vba_facility.field_timezone
Expand Down Expand Up @@ -253,10 +253,10 @@ hidden:
field_cc_vba_facility_overview: true
field_intro_text: true
field_last_saved_by_an_editor: true
field_location_services: true
field_media: true
field_operating_status_facility: true
field_operating_status_more_info: true
field_prepare_for_visit: true
field_table_of_contents: true
flag_awaiting_csv: true
flag_awaiting_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dependencies:
- field.field.node.vba_facility.field_geolocation
- field.field.node.vba_facility.field_intro_text
- field.field.node.vba_facility.field_last_saved_by_an_editor
- field.field.node.vba_facility.field_location_services
- field.field.node.vba_facility.field_media
- field.field.node.vba_facility.field_non_va_location_url
- field.field.node.vba_facility.field_non_va_official_name
Expand All @@ -28,6 +27,7 @@ dependencies:
- field.field.node.vba_facility.field_operating_status_facility
- field.field.node.vba_facility.field_operating_status_more_info
- field.field.node.vba_facility.field_phone_number
- field.field.node.vba_facility.field_prepare_for_visit
- field.field.node.vba_facility.field_shared_vha_location
- field.field.node.vba_facility.field_table_of_contents
- field.field.node.vba_facility.field_timezone
Expand Down Expand Up @@ -188,11 +188,11 @@ hidden:
field_geolocation: true
field_intro_text: true
field_last_saved_by_an_editor: true
field_location_services: true
field_media: true
field_non_va_location_url: true
field_non_va_official_name: true
field_office: true
field_prepare_for_visit: true
field_shared_vha_location: true
field_table_of_contents: true
field_timezone: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dependencies:
- field.field.node.vba_facility.field_geolocation
- field.field.node.vba_facility.field_intro_text
- field.field.node.vba_facility.field_last_saved_by_an_editor
- field.field.node.vba_facility.field_location_services
- field.field.node.vba_facility.field_media
- field.field.node.vba_facility.field_non_va_location_url
- field.field.node.vba_facility.field_non_va_official_name
Expand All @@ -28,6 +27,7 @@ dependencies:
- field.field.node.vba_facility.field_operating_status_facility
- field.field.node.vba_facility.field_operating_status_more_info
- field.field.node.vba_facility.field_phone_number
- field.field.node.vba_facility.field_prepare_for_visit
- field.field.node.vba_facility.field_shared_vha_location
- field.field.node.vba_facility.field_table_of_contents
- field.field.node.vba_facility.field_timezone
Expand Down Expand Up @@ -66,7 +66,6 @@ hidden:
field_geolocation: true
field_intro_text: true
field_last_saved_by_an_editor: true
field_location_services: true
field_media: true
field_non_va_location_url: true
field_non_va_official_name: true
Expand All @@ -75,6 +74,7 @@ hidden:
field_operating_status_facility: true
field_operating_status_more_info: true
field_phone_number: true
field_prepare_for_visit: true
field_shared_vha_location: true
field_table_of_contents: true
field_timezone: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
uuid: 03737c7e-c4fb-4fd1-b2c8-c6d825f17780
uuid: 2a9fff3f-dea4-411f-8daa-cc8ad1d5cd4c
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_location_services
- field.storage.node.field_prepare_for_visit
- node.type.vba_facility
- paragraphs.paragraphs_type.health_care_local_facility_servi
- paragraphs.paragraphs_type.basic_accordion
module:
- entity_reference_revisions
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.vba_facility.field_location_services
field_name: field_location_services
id: node.vba_facility.field_prepare_for_visit
field_name: field_prepare_for_visit
entity_type: node
bundle: vba_facility
label: 'Location services'
label: 'Prepare for your visit accordions'
description: ''
required: false
translatable: true
Expand All @@ -26,7 +26,7 @@ settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
health_care_local_facility_servi: health_care_local_facility_servi
basic_accordion: basic_accordion
negate: 0
target_bundles_drag_drop:
address:
Expand All @@ -43,7 +43,7 @@ settings:
enabled: false
basic_accordion:
weight: 50
enabled: false
enabled: true
button:
weight: 51
enabled: false
Expand Down Expand Up @@ -82,7 +82,7 @@ settings:
enabled: false
health_care_local_facility_servi:
weight: 63
enabled: true
enabled: false
link_teaser:
weight: 64
enabled: false
Expand Down

0 comments on commit c9d4c09

Please sign in to comment.