Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VACMS-19512: Drupal UX for phone numbers #19607

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_phone
label: 'Locations and contact information'
region: content
parent_name: ''
Expand Down Expand Up @@ -219,6 +218,23 @@ third_party_settings:
effect: none
speed: fast
required_fields: false
group_mental_health_phone_number:
children:
- field_mental_health_phone
- field_telephone
label: 'Mental health phone number'
region: content
parent_name: ''
weight: 2
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: true
id: ''
label_as_html: false
description: 'Enter the number Veterans should call to access mental health services at your facility. If your facility doesn''t offer these services, enter the most appropriate system number. This number will be displayed everywhere your facility appears across VA.gov. <a href="/help/va-medical-centers-vamcs/about-locations-content-for-vamcs/how-to-edit-a-vamc-facility" target="_blank">View guidelines for editing VAMC facilities (opens in a new tab)</a>'
required_fields: true
description_display: after
id: node.health_care_local_facility.default
targetEntityType: node
bundle: health_care_local_facility
Expand Down Expand Up @@ -307,7 +323,7 @@ content:
third_party_settings: { }
field_main_location:
type: boolean_checkbox
weight: 22
weight: 21
region: content
settings:
display_label: true
Expand Down Expand Up @@ -374,31 +390,17 @@ content:
settings: { }
third_party_settings: { }
field_telephone:
type: paragraphs
weight: 1
type: entity_reference_paragraphs
weight: 22
region: content
settings:
title: Paragraph
title_plural: Paragraphs
title: 'phone number'
title_plural: 'phone number'
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
add_mode: button
form_display_mode: default
default_paragraph_type: phone_number
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
convert: '0'
duplicate: duplicate
third_party_settings:
paragraphs_features:
add_in_between: false
add_in_between_link_count: 3
delete_confirmation: false
show_drag_and_drop: true
show_collapse_all: true
third_party_settings: { }
field_timezone:
type: tzfield_default
weight: 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,22 +258,16 @@ content:
placeholder: ''
third_party_settings: { }
field_telephone:
type: paragraphs
type: entity_reference_paragraphs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added entity reference paragraph

weight: 7
region: content
settings:
title: Paragraph
title_plural: Paragraphs
title: 'phone number'
title_plural: 'phone numbers'
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
add_mode: button
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
default_paragraph_type: _none
third_party_settings: { }
moderation_state:
type: moderation_state_default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,6 @@ third_party_settings:
description: ''
required_fields: false
formatter: closed
group_cashier_s_office:
children: { }
label: "Cashier's office"
region: content
parent_name: ''
weight: 7
format_type: details
format_settings:
classes: ''
show_empty_fields: true
id: ''
open: true
description: ''
required_fields: false
group_national_above_top_of_page:
children:
- field_cc_above_top_of_page
Expand Down Expand Up @@ -248,22 +234,16 @@ content:
placeholder: ''
third_party_settings: { }
field_telephone:
type: paragraphs
type: entity_reference_paragraphs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added entity reference paragraph

weight: 9
region: content
settings:
title: Paragraph
title_plural: Paragraphs
title: 'phone number'
title_plural: 'phone numbers'
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
add_mode: button
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
default_paragraph_type: phone_number
third_party_settings: { }
moderation_state:
type: moderation_state_default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ field_name: field_mental_health_phone
entity_type: node
bundle: health_care_local_facility
label: 'Mental health phone number'
description: 'Enter the number Veterans should call to access mental health services at your facility, for example 202-555-1234, ext. 23. If your facility doesn''t offer these services, enter the most appropriate system number. This number will be displayed everywhere your facility appears across VA.gov. <a href="/help/va-medical-centers-vamcs/about-locations-content-for-vamcs/how-to-edit-a-vamc-facility" target="_blank">View guidelines for editing VAMC facilities (opens in a new tab)</a>'
description: ''
required: false
translatable: false
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ field_name: field_telephone
entity_type: node
bundle: health_care_local_facility
label: 'Mental health phone number'
description: 'Enter the number Veterans should call to access mental health services at your facility. If your facility doesn''t offer these services, enter the most appropriate system number. This number will be displayed everywhere your facility appears across VA.gov. <a href="/help/va-medical-centers-vamcs/about-locations-content-for-vamcs/how-to-edit-a-vamc-facility" target="_blank">View guidelines for editing VAMC facilities (opens in a new tab)</a>'
description: ''
required: false
translatable: false
default_value: { }
Expand Down
Loading