Skip to content

Commit

Permalink
VACMS-17962: Adds the form upload field to VA Forms. (#18096)
Browse files Browse the repository at this point in the history
* VACMS-17962: Adds the form upload field to VA Forms.

* VACMS-17962: Restore revision log to VA Form.
  • Loading branch information
dsasser committed May 14, 2024
1 parent 851592e commit 2e19c43
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 10 deletions.
28 changes: 18 additions & 10 deletions config/sync/core.entity_form_display.node.va_form.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies:
- field.field.node.va_form.field_va_form_tool_intro
- field.field.node.va_form.field_va_form_tool_url
- field.field.node.va_form.field_va_form_type
- field.field.node.va_form.field_va_form_upload
- field.field.node.va_form.field_va_form_url
- field.field.node.va_form.field_va_form_usage
- node.type.va_form
Expand All @@ -46,7 +47,7 @@ third_party_settings:
label: 'Section settings'
region: content
parent_name: ''
weight: 9
weight: 10
format_type: details_sidebar
format_settings:
classes: ''
Expand All @@ -62,7 +63,7 @@ third_party_settings:
label: 'Online tool'
region: content
parent_name: ''
weight: 6
weight: 7
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -91,7 +92,7 @@ third_party_settings:
label: 'Editorial workflow'
region: content
parent_name: ''
weight: 10
weight: 11
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -169,7 +170,7 @@ content:
third_party_settings: { }
field_last_saved_by_an_editor:
type: datetime_timestamp
weight: 28
weight: 14
region: content
settings: { }
third_party_settings: { }
Expand Down Expand Up @@ -206,7 +207,7 @@ content:
third_party_settings: { }
field_va_form_link_teasers:
type: entity_reference_paragraphs
weight: 8
weight: 9
region: content
settings:
title: Paragraph
Expand Down Expand Up @@ -241,7 +242,7 @@ content:
third_party_settings: { }
field_va_form_related_forms:
type: entity_reference_autocomplete
weight: 7
weight: 8
region: content
settings:
match_operator: CONTAINS
Expand Down Expand Up @@ -272,7 +273,7 @@ content:
third_party_settings: { }
field_va_form_tool_intro:
type: string_textarea
weight: 11
weight: 12
region: content
settings:
rows: 5
Expand All @@ -294,6 +295,13 @@ content:
region: content
settings: { }
third_party_settings: { }
field_va_form_upload:
type: boolean_checkbox
weight: 6
region: content
settings:
display_label: true
third_party_settings: { }
field_va_form_url:
type: linkit
weight: 19
Expand All @@ -313,7 +321,7 @@ content:
placeholder: ''
third_party_settings: { }
flag:
weight: 7
weight: 8
region: content
settings: { }
third_party_settings: { }
Expand All @@ -325,7 +333,7 @@ content:
third_party_settings: { }
path:
type: path
weight: 11
weight: 12
region: content
settings: { }
third_party_settings: { }
Expand All @@ -338,7 +346,7 @@ content:
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 12
weight: 13
region: content
settings: { }
third_party_settings: { }
Expand Down
11 changes: 11 additions & 0 deletions config/sync/core.entity_view_display.node.va_form.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies:
- field.field.node.va_form.field_va_form_tool_intro
- field.field.node.va_form.field_va_form_tool_url
- field.field.node.va_form.field_va_form_type
- field.field.node.va_form.field_va_form_upload
- field.field.node.va_form.field_va_form_url
- field.field.node.va_form.field_va_form_usage
- node.type.va_form
Expand Down Expand Up @@ -171,6 +172,16 @@ content:
third_party_settings: { }
weight: 17
region: content
field_va_form_upload:
type: boolean
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 19
region: content
field_va_form_usage:
type: text_default
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies:
- field.field.node.va_form.field_va_form_tool_intro
- field.field.node.va_form.field_va_form_tool_url
- field.field.node.va_form.field_va_form_type
- field.field.node.va_form.field_va_form_upload
- field.field.node.va_form.field_va_form_url
- field.field.node.va_form.field_va_form_usage
- node.type.va_form
Expand Down Expand Up @@ -172,6 +173,7 @@ hidden:
field_va_form_tool_intro: true
field_va_form_tool_url: true
field_va_form_type: true
field_va_form_upload: true
field_va_form_usage: true
flag_changed_filename: true
flag_changed_title: true
Expand Down
2 changes: 2 additions & 0 deletions config/sync/core.entity_view_display.node.va_form.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies:
- field.field.node.va_form.field_va_form_tool_intro
- field.field.node.va_form.field_va_form_tool_url
- field.field.node.va_form.field_va_form_type
- field.field.node.va_form.field_va_form_upload
- field.field.node.va_form.field_va_form_url
- field.field.node.va_form.field_va_form_usage
- node.type.va_form
Expand Down Expand Up @@ -64,6 +65,7 @@ hidden:
field_va_form_tool_intro: true
field_va_form_tool_url: true
field_va_form_type: true
field_va_form_upload: true
field_va_form_url: true
field_va_form_usage: true
flag_changed_filename: true
Expand Down
26 changes: 26 additions & 0 deletions config/sync/field.field.node.va_form.field_va_form_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 448512af-8f93-4853-90bd-3a8fd05351c6
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_va_form_upload
- node.type.va_form
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.va_form.field_va_form_upload
field_name: field_va_form_upload
entity_type: node
bundle: va_form
label: 'Form Upload'
description: 'Indicates that there is a form upload widget for this form.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
on_label: 'Yes'
off_label: 'No'
field_type: boolean
18 changes: 18 additions & 0 deletions config/sync/field.storage.node.field_va_form_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 69fd82a5-8019-43d7-95e8-aedcf0857321
langcode: en
status: true
dependencies:
module:
- node
id: node.field_va_form_upload
field_name: field_va_form_upload
entity_type: node
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit 2e19c43

Please sign in to comment.