Skip to content

Commit

Permalink
VATEAM-90650: Create Address Digital Form Pattern (#19331)
Browse files Browse the repository at this point in the history
Creates a Paragraph type in Drupal for the "Address" pattern. The Paragraph type includes an "Include military address checkbox?" boolean field. Adds the new Paragraph type to the list of available Paragraph types in the "Steps" field of the Digital Form content type.
  • Loading branch information
derekhouck authored Oct 1, 2024
1 parent f67e650 commit e045b44
Show file tree
Hide file tree
Showing 13 changed files with 257 additions and 53 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
uuid: 8dd7010f-395f-49c2-b8d4-4a1bca25e802
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.digital_form_address.field_military_address_checkbox
- field.field.paragraph.digital_form_address.field_title
- paragraphs.paragraphs_type.digital_form_address
module:
- textfield_counter
id: paragraph.digital_form_address.default
targetEntityType: paragraph
bundle: digital_form_address
mode: default
content:
field_military_address_checkbox:
type: boolean_checkbox
weight: 2
region: content
settings:
display_label: true
third_party_settings: { }
field_title:
type: string_textfield_with_counter
weight: 1
region: content
settings:
size: 60
placeholder: ''
use_field_maxlength: false
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: true
textcount_status_message: 'Maxlength: <span class="maxlength_count">@maxlength</span><br />Used: <span class="current_count">@current_length</span><br />Remaining: <span class="remaining_count">@remaining_count</span>'
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: b42c50ad-a478-44d3-a17b-3f6e8eee7106
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.digital_form_address.field_military_address_checkbox
- field.field.paragraph.digital_form_address.field_title
- paragraphs.paragraphs_type.digital_form_address
id: paragraph.digital_form_address.default
targetEntityType: paragraph
bundle: digital_form_address
mode: default
content:
field_military_address_checkbox:
type: boolean
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 1
region: content
field_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
breadcrumbs: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 9c0520b1-d6ae-4f32-a85e-154212709a0e
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.user_guides
- field.field.paragraph.digital_form_address.field_military_address_checkbox
- field.field.paragraph.digital_form_address.field_title
- paragraphs.paragraphs_type.digital_form_address
id: paragraph.digital_form_address.user_guides
targetEntityType: paragraph
bundle: digital_form_address
mode: user_guides
content:
field_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
breadcrumbs: true
field_military_address_checkbox: true
search_api_excerpt: true
99 changes: 52 additions & 47 deletions config/sync/field.field.node.digital_form.field_chapters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- field.storage.node.field_chapters
- node.type.digital_form
- paragraphs.paragraphs_type.digital_form_address
- paragraphs.paragraphs_type.digital_form_identification_info
- paragraphs.paragraphs_type.digital_form_name_and_date_of_bi
module:
Expand All @@ -29,147 +30,151 @@ settings:
target_bundles:
digital_form_name_and_date_of_bi: digital_form_name_and_date_of_bi
digital_form_identification_info: digital_form_identification_info
digital_form_address: digital_form_address
negate: 0
target_bundles_drag_drop:
address:
weight: -93
weight: -94
enabled: false
alert:
weight: -92
weight: -93
enabled: false
alert_single:
weight: -91
weight: -92
enabled: false
audience_topics:
weight: -90
weight: -91
enabled: false
basic_accordion:
weight: -89
weight: -90
enabled: false
button:
weight: -88
weight: -89
enabled: false
centralized_content_descriptor:
weight: -87
weight: -88
enabled: false
checklist:
weight: -86
weight: -87
enabled: false
checklist_item:
weight: -85
weight: -86
enabled: false
collapsible_panel:
weight: -84
weight: -85
enabled: false
collapsible_panel_item:
weight: -83
weight: -84
enabled: false
contact_information:
weight: -82
weight: -83
enabled: false
digital_form_address:
weight: -95
enabled: true
digital_form_identification_info:
weight: -94
weight: -96
enabled: true
digital_form_name_and_date_of_bi:
weight: -95
weight: -97
enabled: true
downloadable_file:
weight: -81
weight: -82
enabled: false
email_contact:
weight: -80
weight: -81
enabled: false
embedded_video:
weight: -79
weight: -80
enabled: false
expandable_text:
weight: -78
weight: -79
enabled: false
featured_content:
weight: -77
weight: -78
enabled: false
health_care_local_facility_servi:
weight: -76
weight: -77
enabled: false
link_teaser:
weight: -75
weight: -76
enabled: false
link_teaser_with_image:
weight: -74
weight: -75
enabled: false
list_of_link_teasers:
weight: -71
weight: -72
enabled: false
list_of_links:
weight: -72
weight: -73
enabled: false
lists_of_links:
weight: -73
weight: -74
enabled: false
magichead_group:
weight: -70
weight: -71
enabled: false
media:
weight: -69
weight: -70
enabled: false
media_list_images:
weight: -68
weight: -69
enabled: false
media_list_videos:
weight: -67
weight: -68
enabled: false
non_reusable_alert:
weight: -66
weight: -67
enabled: false
number_callout:
weight: -65
weight: -66
enabled: false
phone_number:
weight: -64
weight: -65
enabled: false
process:
weight: -63
weight: -64
enabled: false
q_a:
weight: -62
weight: -63
enabled: false
q_a_group:
weight: -61
weight: -62
enabled: false
q_a_section:
weight: -60
weight: -61
enabled: false
react_widget:
weight: -59
weight: -60
enabled: false
rich_text_char_limit_1000:
weight: -58
weight: -59
enabled: false
service_location:
weight: -57
weight: -58
enabled: false
service_location_address:
weight: -56
weight: -57
enabled: false
situation_update:
weight: -55
weight: -56
enabled: false
spanish_translation_summary:
weight: -54
weight: -55
enabled: false
staff_profile:
weight: -53
weight: -54
enabled: false
step:
weight: -52
weight: -53
enabled: false
step_by_step:
weight: -51
weight: -52
enabled: false
table:
weight: -50
weight: -51
enabled: false
wysiwyg:
weight: -49
weight: -50
enabled: false
field_type: entity_reference_revisions
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: 0be9e21a-1d09-4660-aadc-57c066a5ca98
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_military_address_checkbox
- paragraphs.paragraphs_type.digital_form_address
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: paragraph.digital_form_address.field_military_address_checkbox
field_name: field_military_address_checkbox
entity_type: paragraph
bundle: digital_form_address
label: 'Include military address checkbox?'
description: ''
required: false
translatable: false
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'Yes'
off_label: 'No'
field_type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 80947280-85ad-4b2b-acde-489f5c8b4472
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_title
- paragraphs.paragraphs_type.digital_form_address
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: paragraph.digital_form_address.field_title
field_name: field_title
entity_type: paragraph
bundle: digital_form_address
label: Title
description: ''
required: true
translatable: false
default_value:
-
value: 'Mailing address'
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: bfc7d4f4-d480-43e3-aa05-9e4c68313553
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_military_address_checkbox
field_name: field_military_address_checkbox
entity_type: paragraph
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading

0 comments on commit e045b44

Please sign in to comment.