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

VAGOV-TEAM-101555 add plain language title field to digital form content type #20830

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions config/sync/core.entity_form_display.node.digital_form.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- 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_plain_language_title
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
Expand Down Expand Up @@ -50,7 +51,7 @@ third_party_settings:
label: 'OMB info'
region: content
parent_name: ''
weight: 4
weight: 5
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -109,7 +110,7 @@ content:
third_party_settings: { }
field_last_saved_by_an_editor:
type: datetime_timestamp
weight: 2
weight: 3
region: content
settings: { }
third_party_settings: { }
Expand All @@ -128,6 +129,21 @@ content:
count_html_characters: true
textcount_status_message: 'Characters Remaining: <span class="remaining_count">@remaining_count</span>'
third_party_settings: { }
field_plain_language_title:
type: string_textfield_with_counter
weight: 1
region: content
settings:
size: 60
placeholder: ''
use_field_maxlength: true
maxlength: 0
counter_position: after
js_prevent_submit: true
count_only_mode: false
count_html_characters: true
textcount_status_message: 'Characters Remaining: <span class="remaining_count">@remaining_count</span>'
third_party_settings: { }
field_respondent_burden:
type: number
weight: 7
Expand All @@ -137,7 +153,7 @@ content:
third_party_settings: { }
field_va_form_number:
type: string_textfield_with_counter
weight: 1
weight: 2
region: content
settings:
size: 60
Expand All @@ -158,7 +174,7 @@ content:
third_party_settings: { }
path:
type: path
weight: 3
weight: 4
region: content
settings: { }
third_party_settings: { }
Expand Down
13 changes: 11 additions & 2 deletions config/sync/core.entity_view_display.node.digital_form.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- 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_plain_language_title
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
Expand All @@ -27,7 +28,7 @@ third_party_settings:
label: 'OMB info'
parent_name: ''
region: content
weight: 1
weight: 2
format_type: details
format_settings:
classes: ''
Expand Down Expand Up @@ -67,6 +68,14 @@ content:
third_party_settings: { }
weight: 6
region: content
field_plain_language_title:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
field_respondent_burden:
type: number_integer
label: inline
Expand All @@ -82,7 +91,7 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
weight: 1
region: content
hidden:
breadcrumbs: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- 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_plain_language_title
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
Expand Down Expand Up @@ -58,6 +59,7 @@ hidden:
field_last_saved_by_an_editor: true
field_meta_tags: true
field_omb_number: true
field_plain_language_title: true
field_respondent_burden: true
langcode: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- 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_plain_language_title
- field.field.node.digital_form.field_respondent_burden
- field.field.node.digital_form.field_va_form_number
- node.type.digital_form
Expand Down Expand Up @@ -50,6 +51,7 @@ hidden:
field_last_saved_by_an_editor: true
field_meta_tags: true
field_omb_number: true
field_plain_language_title: true
field_respondent_burden: true
field_va_form_number: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: c51b3c27-2cbb-43d9-8e93-97d4ca757367
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_plain_language_title
- node.type.digital_form
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.digital_form.field_plain_language_title
field_name: field_plain_language_title
entity_type: node
bundle: digital_form
label: "Plain language sentence of this form's purpose to use as a header on all pages"
description: 'Provide the header that tells the user what this form will do, such as: <i>Register for this program...</i> or <i>Provide your documentation</i>, etc.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
21 changes: 21 additions & 0 deletions config/sync/field.storage.node.field_plain_language_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 27c2a9e0-9566-4418-a24c-83cd27874ac4
langcode: en
status: true
dependencies:
module:
- node
id: node.field_plain_language_title
field_name: field_plain_language_title
entity_type: node
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
6 changes: 3 additions & 3 deletions config/sync/user.role.form_builder_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ dependencies:
- va_gov_form_builder
third_party_settings:
va_gov_backend:
vgb_description: "A user of the VA.gov Form Builder tool."
vgb_description: 'A user of the VA.gov Form Builder tool.'
id: form_builder_user
label: "Form Builder user"
label: 'Form Builder user'
weight: 14
is_admin: null
permissions:
- "access form builder"
- 'access form builder'
Loading