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

Integrate NVRF with state pages #914

Merged
merged 8 commits into from
Aug 26, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,34 @@ dependencies:
- block_content.type.registration_form_selector
- field.field.block_content.registration_form_selector.field_default_option_label
- field.field.block_content.registration_form_selector.field_description
- field.field.block_content.registration_form_selector.field_digital_form_link
- field.field.block_content.registration_form_selector.field_digital_form_paragraph
- field.field.block_content.registration_form_selector.field_heading
- field.field.block_content.registration_form_selector.field_registration_form_link
- field.field.block_content.registration_form_selector.field_submit_button_label
module:
- field_group
- link
- link_attributes
- text
third_party_settings:
field_group:
group_digital_form:
children:
- field_digital_form_paragraph
- field_digital_form_link
label: 'Digital Form'
region: content
parent_name: ''
weight: 8
format_type: details
format_settings:
classes: ''
show_empty_fields: false
id: ''
open: false
description: ''
required_fields: true
id: block_content.registration_form_selector.default
targetEntityType: block_content
bundle: registration_form_selector
Expand All @@ -32,6 +55,22 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_digital_form_link:
type: link_default
weight: 10
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_digital_form_paragraph:
type: text_textarea
weight: 9
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_heading:
type: string_textfield
weight: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ dependencies:
- block_content.type.registration_form_selector
- field.field.block_content.registration_form_selector.field_default_option_label
- field.field.block_content.registration_form_selector.field_description
- field.field.block_content.registration_form_selector.field_digital_form_link
- field.field.block_content.registration_form_selector.field_digital_form_paragraph
- field.field.block_content.registration_form_selector.field_heading
- field.field.block_content.registration_form_selector.field_registration_form_link
- field.field.block_content.registration_form_selector.field_submit_button_label
module:
- link
- text
id: block_content.registration_form_selector.default
targetEntityType: block_content
bundle: registration_form_selector
Expand All @@ -32,6 +35,25 @@ content:
third_party_settings: { }
weight: 1
region: content
field_digital_form_link:
type: link_separate
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 7
region: content
field_digital_form_paragraph:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 8
region: content
field_heading:
type: string
label: hidden
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: a92587e0-e01f-475a-8831-07a5299a1b7b
langcode: en
status: true
dependencies:
config:
- block_content.type.registration_form_selector
- field.storage.block_content.field_digital_form_link
module:
- link
id: block_content.registration_form_selector.field_digital_form_link
field_name: field_digital_form_link
entity_type: block_content
bundle: registration_form_selector
label: 'Digital form link'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
title: 2
link_type: 17
field_type: link
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: cb633190-ab29-4b6a-8798-506007d410db
langcode: en
status: true
dependencies:
config:
- block_content.type.registration_form_selector
- field.storage.block_content.field_digital_form_paragraph
- filter.format.simple_html
module:
- text
id: block_content.registration_form_selector.field_digital_form_paragraph
field_name: field_digital_form_paragraph
entity_type: block_content
bundle: registration_form_selector
label: 'Digital form paragraph'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- simple_html
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 1b0313da-9640-4b22-a165-e0a91322e38b
langcode: en
status: true
dependencies:
module:
- block_content
- link
id: block_content.field_digital_form_link
field_name: field_digital_form_link
entity_type: block_content
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: da7d778b-3f42-4131-b985-2bc7a880f22d
langcode: en
status: true
dependencies:
module:
- block_content
- text
id: block_content.field_digital_form_paragraph
field_name: field_digital_form_paragraph
entity_type: block_content
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
4 changes: 2 additions & 2 deletions config/sync/system.performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ cache:
page:
max_age: 0
css:
preprocess: false
preprocess: true
gzip: true
fast_404:
enabled: true
paths: '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i'
exclude_paths: '/\/(?:styles|imagecache)\//'
html: '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>'
js:
preprocess: false
preprocess: true
gzip: true
stale_file_threshold: 2592000
6 changes: 4 additions & 2 deletions config/sync/views.view.nvrf_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies:
- field.storage.node.field_state_abbreviation
- node.type.nvrf_page
- node.type.state_territory
- user.role.anonymous
- user.role.authenticated
module:
- datetime
Expand Down Expand Up @@ -161,6 +162,7 @@ display:
type: role
options:
role:
anonymous: anonymous
authenticated: authenticated
cache:
type: tag
Expand Down Expand Up @@ -801,7 +803,7 @@ display:
display_description: ''
rendering_language: '***LANGUAGE_language_interface***'
display_extenders: { }
path: api/nvrf/pages.json
path: nvrf/assets/pages.json
cache_metadata:
max-age: -1
contexts:
Expand Down Expand Up @@ -2942,7 +2944,7 @@ display:
display_description: ''
rendering_language: '***LANGUAGE_language_interface***'
display_extenders: { }
path: api/nvrf/states.json
path: nvrf/assets/states.json
auth: { }
cache_metadata:
max-age: -1
Expand Down
8 changes: 5 additions & 3 deletions config/sync/views.view.nvrf_api_blocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ dependencies:
- field.storage.block_content.field_messager_identifier
- field.storage.block_content.field_touchpoints_id
- field.storage.media.field_media_image
- user.role.anonymous
- user.role.authenticated
module:
- block_content
- image
- media
- rest
- serialization
- svg_image
- text
- user
id: nvrf_api_blocks
Expand Down Expand Up @@ -514,6 +515,7 @@ display:
type: role
options:
role:
anonymous: anonymous
authenticated: authenticated
cache:
type: tag
Expand Down Expand Up @@ -1149,7 +1151,7 @@ display:
display_description: ''
rendering_language: '***LANGUAGE_language_interface***'
display_extenders: { }
path: api/nvrf/messages.json
path: nvrf/assets/messages.json
cache_metadata:
max-age: -1
contexts:
Expand Down Expand Up @@ -1587,7 +1589,7 @@ display:
display_description: ''
rendering_language: '***LANGUAGE_language_interface***'
display_extenders: { }
path: api/nvrf/cards.json
path: nvrf/assets/cards.json
cache_metadata:
max-age: -1
contexts:
Expand Down
4 changes: 3 additions & 1 deletion config/sync/views.view.nvrf_api_taxonomy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- field.storage.taxonomy_term.field_section_alert
- field.storage.taxonomy_term.field_section_description
- taxonomy.vocabulary.nvrf_field
- user.role.anonymous
- user.role.authenticated
module:
- rest
Expand Down Expand Up @@ -764,6 +765,7 @@ display:
type: role
options:
role:
anonymous: anonymous
authenticated: authenticated
cache:
type: tag
Expand Down Expand Up @@ -942,7 +944,7 @@ display:
display_description: ''
rendering_language: '***LANGUAGE_language_interface***'
display_extenders: { }
path: api/nvrf/fields.json
path: nvrf/assets/fields.json
cache_metadata:
max-age: -1
contexts:
Expand Down
Binary file added web/data/Federal_Voter_Registration_en.pdf
Binary file not shown.
61 changes: 61 additions & 0 deletions web/data/es/navigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"back": {
"vote": "Go back to Vote.gov",
"select_state": "Go back to select your state",
"state_reg_options": "Go back to state registration options",
"eligibility_req": "Back to state eligibility requirements",
"reg_options": "Back to registration options",
"personal_info": "Back to personal information",
"address_location": "Back to address and location",
"identification": "Back to identification",
"edit_info": "Edit registration information"
},
"next": {
"next": "Next",
"start": "Continue to the digital form filler on vote.gov",
"reg_options": "Continue to view registration options",
"address_location": "Continue to address and location",
"identification": "Continue to identification",
"political_party": "Continue to political party",
"confirm_info": "Continue to review your information"
},
"step_label_1": "Personal information",
"step_label_2": "Address and location",
"step_label_3": "Identification",
"step_label_4": "Political party",
"step_label_5": "Confirm your information",
"step_label_6": "Print your completed form",
"confirmation": {
"current_name": {
"label": "Current name"
},
"previous_name": {
"label": "Previous name",
"alert": "You have not changed your name, so these fields are blank."
},
"other_info": {
"label": "Other information"
},
"current_address": {
"label": "Home address",
"alert": "You are not registering with a current address, so these fields are blank."
},
"previous_address": {
"label": "Previous address",
"alert": "You are not registering with a change of address, so these fields are blank."
},
"mailing_address": {
"label": "Mailing address",
"alert": "Your mailing address is the same as your home address, so these fields are left blank."
},
"id_label": {
"label": "ID number"
},
"political_party": {
"label": "Political party"
},
"edit": {
"label": "Edit"
}
}
}
Loading