Skip to content

Commit

Permalink
VATEAM-90628: Add Identification Information Paragraph type (#19190)
Browse files Browse the repository at this point in the history
* Add OMB info fields to Digital Form (#19078)

* Add Identification Information pattern

* Add OMB Info to digital-forms script

* Add Identification Information to digital-forms script
  • Loading branch information
derekhouck authored Sep 17, 2024
1 parent 892ca0c commit e6c77f1
Show file tree
Hide file tree
Showing 22 changed files with 434 additions and 25 deletions.
41 changes: 38 additions & 3 deletions config/sync/core.entity_form_display.node.digital_form.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ dependencies:
config:
- field.field.node.digital_form.field_administration
- field.field.node.digital_form.field_chapters
- field.field.node.digital_form.field_expiration_date
- field.field.node.digital_form.field_last_saved_by_an_editor
- field.field.node.digital_form.field_meta_tags
- field.field.node.digital_form.field_omb_number
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
- workflows.workflow.editorial
module:
- change_labels
- content_moderation
- datetime
- field_group
- limited_field_widgets
- no_table_drag
Expand All @@ -29,7 +32,7 @@ third_party_settings:
label: 'Editorial Workflow'
region: content
parent_name: ''
weight: 6
weight: 7
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -38,14 +41,33 @@ third_party_settings:
description: ''
required_fields: true
description_display: after
group_omb_info:
children:
- field_respondent_burden
- field_omb_number
- field_expiration_date
label: 'OMB info'
region: content
parent_name: ''
weight: 4
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
description: 'Text required by the Office of Management and Budget (OMB) to be present on all forms.'
required_fields: true
open: true
description_display: after
id: node.digital_form.default
targetEntityType: node
bundle: digital_form
mode: default
content:
field_chapters:
type: paragraphs_browser
weight: 5
weight: 6
region: content
settings:
title: Step
Expand Down Expand Up @@ -78,6 +100,12 @@ content:
add_another: ''
no_table_drag:
no_table_drag: false
field_expiration_date:
type: datetime_default
weight: 9
region: content
settings: { }
third_party_settings: { }
field_last_saved_by_an_editor:
type: datetime_timestamp
weight: 2
Expand All @@ -86,12 +114,19 @@ content:
third_party_settings: { }
field_omb_number:
type: string_textfield
weight: 4
weight: 8
region: content
settings:
size: 9
placeholder: XXXX-XXXX
third_party_settings: { }
field_respondent_burden:
type: number
weight: 7
region: content
settings:
placeholder: ''
third_party_settings: { }
field_va_form_number:
type: string_textfield
weight: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
uuid: f6c77a23-cd2f-4a5b-9589-4a3ab27cab26
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.digital_form_identification_info.field_include_veteran_s_service
- field.field.paragraph.digital_form_identification_info.field_title
- paragraphs.paragraphs_type.digital_form_identification_info
module:
- textfield_counter
id: paragraph.digital_form_identification_info.default
targetEntityType: paragraph
bundle: digital_form_identification_info
mode: default
content:
field_include_veteran_s_service:
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
47 changes: 44 additions & 3 deletions config/sync/core.entity_view_display.node.digital_form.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,37 @@ dependencies:
config:
- field.field.node.digital_form.field_administration
- field.field.node.digital_form.field_chapters
- field.field.node.digital_form.field_expiration_date
- field.field.node.digital_form.field_last_saved_by_an_editor
- field.field.node.digital_form.field_meta_tags
- field.field.node.digital_form.field_omb_number
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
module:
- datetime
- entity_reference_revisions
- field_group
- user
third_party_settings:
field_group:
group_omb_info:
children:
- field_respondent_burden
- field_omb_number
- field_expiration_date
label: 'OMB info'
parent_name: ''
region: content
weight: 1
format_type: details
format_settings:
classes: ''
show_empty_fields: false
id: ''
label_as_html: false
open: true
description: ''
id: node.digital_form.default
targetEntityType: node
bundle: digital_form
Expand All @@ -25,15 +48,33 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 2
weight: 3
region: content
field_expiration_date:
type: datetime_default
label: inline
settings:
timezone_override: ''
format_type: short_date_no_time
third_party_settings: { }
weight: 7
region: content
field_omb_number:
type: string
label: above
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
weight: 6
region: content
field_respondent_burden:
type: number_integer
label: inline
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 5
region: content
field_va_form_number:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ dependencies:
- core.entity_view_mode.node.external_content
- field.field.node.digital_form.field_administration
- field.field.node.digital_form.field_chapters
- field.field.node.digital_form.field_expiration_date
- field.field.node.digital_form.field_last_saved_by_an_editor
- field.field.node.digital_form.field_meta_tags
- field.field.node.digital_form.field_omb_number
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
module:
Expand Down Expand Up @@ -52,8 +54,10 @@ content:
hidden:
field_administration: true
field_chapters: true
field_expiration_date: true
field_last_saved_by_an_editor: true
field_meta_tags: true
field_omb_number: true
field_respondent_burden: true
langcode: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.field.node.digital_form.field_administration
- field.field.node.digital_form.field_chapters
- field.field.node.digital_form.field_expiration_date
- field.field.node.digital_form.field_last_saved_by_an_editor
- field.field.node.digital_form.field_meta_tags
- field.field.node.digital_form.field_omb_number
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
module:
Expand Down Expand Up @@ -44,9 +46,11 @@ content:
hidden:
field_administration: true
field_chapters: true
field_expiration_date: true
field_last_saved_by_an_editor: true
field_meta_tags: true
field_omb_number: true
field_respondent_burden: true
field_va_form_number: true
langcode: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: ee8a8314-d05e-41c9-a1d4-8f79e7f32a0c
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.digital_form_identification_info.field_include_veteran_s_service
- field.field.paragraph.digital_form_identification_info.field_title
- paragraphs.paragraphs_type.digital_form_identification_info
id: paragraph.digital_form_identification_info.default
targetEntityType: paragraph
bundle: digital_form_identification_info
mode: default
content:
field_include_veteran_s_service:
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: b90e31e0-3a2b-41b1-84c8-77f99240339b
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.user_guides
- field.field.paragraph.digital_form_identification_info.field_include_veteran_s_service
- field.field.paragraph.digital_form_identification_info.field_title
- paragraphs.paragraphs_type.digital_form_identification_info
id: paragraph.digital_form_identification_info.user_guides
targetEntityType: paragraph
bundle: digital_form_identification_info
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_include_veteran_s_service: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ content:
weight: 0
region: content
hidden:
breadcrumbs: true
search_api_excerpt: true
31 changes: 18 additions & 13 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_identification_info
- paragraphs.paragraphs_type.digital_form_name_and_date_of_bi
module:
- entity_reference_revisions
Expand All @@ -27,46 +28,50 @@ settings:
handler_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
negate: 0
target_bundles_drag_drop:
address:
weight: -95
weight: -93
enabled: false
alert:
weight: -94
weight: -92
enabled: false
alert_single:
weight: -93
weight: -91
enabled: false
audience_topics:
weight: -92
weight: -90
enabled: false
basic_accordion:
weight: -91
weight: -89
enabled: false
button:
weight: -90
weight: -88
enabled: false
centralized_content_descriptor:
weight: -89
weight: -87
enabled: false
checklist:
weight: -88
weight: -86
enabled: false
checklist_item:
weight: -87
weight: -85
enabled: false
collapsible_panel:
weight: -86
weight: -84
enabled: false
collapsible_panel_item:
weight: -85
weight: -83
enabled: false
contact_information:
weight: -84
weight: -82
enabled: false
digital_form_identification_info:
weight: -94
enabled: true
digital_form_name_and_date_of_bi:
weight: -82
weight: -95
enabled: true
downloadable_file:
weight: -81
Expand Down
Loading

0 comments on commit e6c77f1

Please sign in to comment.