diff --git a/config/sync/block_content.type.state_display_content.yml b/config/sync/block_content.type.state_display_content.yml new file mode 100644 index 000000000..c857cb423 --- /dev/null +++ b/config/sync/block_content.type.state_display_content.yml @@ -0,0 +1,8 @@ +uuid: 04bbb28f-81a5-4aba-9380-bd39f3f4d4ac +langcode: en +status: true +dependencies: { } +id: state_display_content +label: 'State Display Content' +revision: false +description: null diff --git a/config/sync/core.base_field_override.block_content.state_display_content.info.yml b/config/sync/core.base_field_override.block_content.state_display_content.info.yml new file mode 100644 index 000000000..c352c0ba3 --- /dev/null +++ b/config/sync/core.base_field_override.block_content.state_display_content.info.yml @@ -0,0 +1,18 @@ +uuid: 88d8a733-9ac0-40d7-bba5-6479afe60faa +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content +id: block_content.state_display_content.info +field_name: info +entity_type: block_content +bundle: state_display_content +label: 'Block description' +description: 'A brief description of your block.' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/core.entity_form_display.block_content.state_display_content.default.yml b/config/sync/core.entity_form_display.block_content.state_display_content.default.yml new file mode 100644 index 000000000..b4b58e994 --- /dev/null +++ b/config/sync/core.entity_form_display.block_content.state_display_content.default.yml @@ -0,0 +1,121 @@ +uuid: 472d07c3-96c1-4a42-952e-946dd7b8f781 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.field.block_content.state_display_content.field_check_registration + - field.field.block_content.state_display_content.field_display_title + - field.field.block_content.state_display_content.field_election_date + - field.field.block_content.state_display_content.field_election_text + - field.field.block_content.state_display_content.field_in_person_registration + - field.field.block_content.state_display_content.field_mail_registration + - field.field.block_content.state_display_content.field_military_and_overseas_regi + - field.field.block_content.state_display_content.field_nvrf_details + - field.field.block_content.state_display_content.field_online_registration + - field.field.block_content.state_display_content.field_registration_intro + - field.field.block_content.state_display_content.field_registration_not_needed + module: + - allowed_formats + - datetime + - text + - vote_fields +id: block_content.state_display_content.default +targetEntityType: block_content +bundle: state_display_content +mode: default +content: + field_check_registration: + type: vote_fields_state_content + weight: 3 + region: content + settings: { } + third_party_settings: { } + field_display_title: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_election_date: + type: datetime_default + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_election_text: + type: text_textarea + weight: 11 + region: content + settings: + rows: 3 + placeholder: '' + third_party_settings: + allowed_formats: + hide_help: '0' + hide_guidelines: '0' + field_in_person_registration: + type: vote_fields_state_content + weight: 7 + region: content + settings: { } + third_party_settings: { } + field_mail_registration: + type: vote_fields_state_content + weight: 5 + region: content + settings: { } + third_party_settings: { } + field_military_and_overseas_regi: + type: vote_fields_state_content + weight: 8 + region: content + settings: { } + third_party_settings: { } + field_nvrf_details: + type: vote_fields_state_content + weight: 6 + region: content + settings: { } + third_party_settings: { } + field_online_registration: + type: vote_fields_state_content + weight: 4 + region: content + settings: { } + third_party_settings: { } + field_registration_intro: + type: vote_fields_state_content + weight: 2 + region: content + settings: { } + third_party_settings: { } + field_registration_not_needed: + type: vote_fields_state_content + weight: 9 + region: content + settings: { } + third_party_settings: { } + info: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + langcode: + type: language_select + weight: 13 + region: content + settings: + include_locked: true + third_party_settings: { } + translation: + weight: 12 + region: content + settings: { } + third_party_settings: { } +hidden: { } diff --git a/config/sync/core.entity_form_display.node.state_territory.default.yml b/config/sync/core.entity_form_display.node.state_territory.default.yml index 92b6f088a..9d3f40381 100644 --- a/config/sync/core.entity_form_display.node.state_territory.default.yml +++ b/config/sync/core.entity_form_display.node.state_territory.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.node.state_territory.body - field.field.node.state_territory.field_accepts_nvrf - field.field.node.state_territory.field_address_location_inst + - field.field.node.state_territory.field_check_registration - field.field.node.state_territory.field_confirm_registration_link - field.field.node.state_territory.field_content_version - field.field.node.state_territory.field_election_homepage_link @@ -15,19 +16,23 @@ dependencies: - field.field.node.state_territory.field_g_online_deadline - field.field.node.state_territory.field_identification_inst - field.field.node.state_territory.field_in_person_deadline + - field.field.node.state_territory.field_in_person_registration - field.field.node.state_territory.field_in_state_name - field.field.node.state_territory.field_is_state - field.field.node.state_territory.field_mail_postmarked_deadline - field.field.node.state_territory.field_mail_received_deadline + - field.field.node.state_territory.field_mail_registration - field.field.node.state_territory.field_mail_registration_link - field.field.node.state_territory.field_mailing_address_inst - field.field.node.state_territory.field_media - field.field.node.state_territory.field_metatags + - field.field.node.state_territory.field_military_and_overseas_regi - field.field.node.state_territory.field_more_info_link - field.field.node.state_territory.field_nvrf_fields - field.field.node.state_territory.field_nvrf_last_updated_date - field.field.node.state_territory.field_of_state_name - field.field.node.state_territory.field_online_deadline + - field.field.node.state_territory.field_online_registration - field.field.node.state_territory.field_override_confirm_reg_link - field.field.node.state_territory.field_override_election_hp_link - field.field.node.state_territory.field_override_mail_reg_link @@ -37,7 +42,9 @@ dependencies: - field.field.node.state_territory.field_personal_information_inst - field.field.node.state_territory.field_political_party_inst - field.field.node.state_territory.field_reg_eligibility_desc + - field.field.node.state_territory.field_registration_intro - field.field.node.state_territory.field_registration_link + - field.field.node.state_territory.field_registration_not_needed - field.field.node.state_territory.field_registration_type - field.field.node.state_territory.field_state_abbreviation - field.field.node.state_territory.field_updated_date @@ -52,6 +59,7 @@ dependencies: - media_library - metatag - text + - vote_fields - vote_nvrf third_party_settings: field_group: @@ -103,6 +111,7 @@ third_party_settings: - group_deadlines - group_form_links - group_nvrf + - group_state_display_content label: Tabs region: content parent_name: '' @@ -203,7 +212,7 @@ third_party_settings: label: 'Version tracking' region: content parent_name: '' - weight: 10 + weight: 11 format_type: details_sidebar format_settings: classes: '' @@ -213,6 +222,28 @@ third_party_settings: description: '' required_fields: true weight: 0 + group_state_display_content: + children: + - field_check_registration + - field_registration_intro + - field_online_registration + - field_mail_registration + - field_in_person_registration + - field_military_and_overseas_regi + - field_registration_not_needed + label: 'State display Content' + region: content + parent_name: group_form_tabs + weight: 24 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: 'Entering content into these fields overrides the default state display content for this state/territory.' + required_fields: true id: node.state_territory.default targetEntityType: node bundle: state_territory @@ -242,6 +273,12 @@ content: allowed_formats: hide_help: '0' hide_guidelines: '0' + field_check_registration: + type: vote_fields_state_content + weight: 12 + region: content + settings: { } + third_party_settings: { } field_confirm_registration_link: type: link_default weight: 9 @@ -329,6 +366,12 @@ content: rows: 5 inline: true third_party_settings: { } + field_in_person_registration: + type: vote_fields_state_content + weight: 16 + region: content + settings: { } + third_party_settings: { } field_in_state_name: type: string_textfield weight: 8 @@ -356,6 +399,12 @@ content: region: content settings: { } third_party_settings: { } + field_mail_registration: + type: vote_fields_state_content + weight: 15 + region: content + settings: { } + third_party_settings: { } field_mail_registration_link: type: link_default weight: 10 @@ -366,7 +415,7 @@ content: third_party_settings: { } field_mailing_address_inst: type: text_textarea - weight: 22 + weight: 21 region: content settings: rows: 5 @@ -381,12 +430,18 @@ content: third_party_settings: { } field_metatags: type: metatag_firehose - weight: 8 + weight: 9 region: content settings: sidebar: true use_details: true third_party_settings: { } + field_military_and_overseas_regi: + type: vote_fields_state_content + weight: 17 + region: content + settings: { } + third_party_settings: { } field_more_info_link: type: link_default weight: 8 @@ -397,13 +452,13 @@ content: third_party_settings: { } field_nvrf_fields: type: field_nvrf_fields - weight: 23 + weight: 22 region: content settings: { } third_party_settings: { } field_nvrf_last_updated_date: type: datetime_default - weight: 24 + weight: 23 region: content settings: { } third_party_settings: { } @@ -438,6 +493,12 @@ content: rows: 5 inline: true third_party_settings: { } + field_online_registration: + type: vote_fields_state_content + weight: 14 + region: content + settings: { } + third_party_settings: { } field_override_confirm_reg_link: type: link_default weight: 10 @@ -480,7 +541,7 @@ content: third_party_settings: { } field_pdf_pages: type: string_textfield - weight: 25 + weight: 24 region: content settings: size: 60 @@ -510,6 +571,12 @@ content: rows: 5 placeholder: '' third_party_settings: { } + field_registration_intro: + type: vote_fields_state_content + weight: 13 + region: content + settings: { } + third_party_settings: { } field_registration_link: type: link_default weight: 6 @@ -518,6 +585,12 @@ content: placeholder_url: '' placeholder_title: '' third_party_settings: { } + field_registration_not_needed: + type: vote_fields_state_content + weight: 18 + region: content + settings: { } + third_party_settings: { } field_registration_type: type: options_buttons weight: 7 @@ -534,26 +607,26 @@ content: third_party_settings: { } field_updated_date: type: datetime_default - weight: 9 + weight: 10 region: content settings: { } third_party_settings: { } langcode: type: language_select - weight: 7 + weight: 8 region: content settings: include_locked: true third_party_settings: { } moderation_state: type: moderation_state_default - weight: 5 + weight: 6 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 6 + weight: 7 region: content settings: display_label: true @@ -577,7 +650,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 4 + weight: 5 region: content settings: { } third_party_settings: { } diff --git a/config/sync/core.entity_view_display.block_content.state_display_content.default.yml b/config/sync/core.entity_view_display.block_content.state_display_content.default.yml new file mode 100644 index 000000000..2c6c6ff58 --- /dev/null +++ b/config/sync/core.entity_view_display.block_content.state_display_content.default.yml @@ -0,0 +1,108 @@ +uuid: 3dde95c8-0fa8-405f-af05-2fa44b14b595 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.field.block_content.state_display_content.field_check_registration + - field.field.block_content.state_display_content.field_display_title + - field.field.block_content.state_display_content.field_election_date + - field.field.block_content.state_display_content.field_election_text + - field.field.block_content.state_display_content.field_in_person_registration + - field.field.block_content.state_display_content.field_mail_registration + - field.field.block_content.state_display_content.field_military_and_overseas_regi + - field.field.block_content.state_display_content.field_nvrf_details + - field.field.block_content.state_display_content.field_online_registration + - field.field.block_content.state_display_content.field_registration_intro + - field.field.block_content.state_display_content.field_registration_not_needed + module: + - datetime + - text + - vote_fields +id: block_content.state_display_content.default +targetEntityType: block_content +bundle: state_display_content +mode: default +content: + field_check_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 2 + region: content + field_display_title: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 1 + region: content + field_election_date: + type: datetime_default + label: above + settings: + timezone_override: '' + format_type: medium + third_party_settings: { } + weight: 10 + region: content + field_election_text: + type: text_default + label: above + settings: { } + third_party_settings: { } + weight: 11 + region: content + field_in_person_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 7 + region: content + field_mail_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 5 + region: content + field_military_and_overseas_regi: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 8 + region: content + field_nvrf_details: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 6 + region: content + field_online_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 4 + region: content + field_registration_intro: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 3 + region: content + field_registration_not_needed: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 9 + region: content +hidden: + langcode: true diff --git a/config/sync/core.entity_view_display.node.state_territory.default.yml b/config/sync/core.entity_view_display.node.state_territory.default.yml index e88d3490c..b8e0f0928 100644 --- a/config/sync/core.entity_view_display.node.state_territory.default.yml +++ b/config/sync/core.entity_view_display.node.state_territory.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.node.state_territory.body - field.field.node.state_territory.field_accepts_nvrf - field.field.node.state_territory.field_address_location_inst + - field.field.node.state_territory.field_check_registration - field.field.node.state_territory.field_confirm_registration_link - field.field.node.state_territory.field_content_version - field.field.node.state_territory.field_election_homepage_link @@ -15,19 +16,23 @@ dependencies: - field.field.node.state_territory.field_g_online_deadline - field.field.node.state_territory.field_identification_inst - field.field.node.state_territory.field_in_person_deadline + - field.field.node.state_territory.field_in_person_registration - field.field.node.state_territory.field_in_state_name - field.field.node.state_territory.field_is_state - field.field.node.state_territory.field_mail_postmarked_deadline - field.field.node.state_territory.field_mail_received_deadline + - field.field.node.state_territory.field_mail_registration - field.field.node.state_territory.field_mail_registration_link - field.field.node.state_territory.field_mailing_address_inst - field.field.node.state_territory.field_media - field.field.node.state_territory.field_metatags + - field.field.node.state_territory.field_military_and_overseas_regi - field.field.node.state_territory.field_more_info_link - field.field.node.state_territory.field_nvrf_fields - field.field.node.state_territory.field_nvrf_last_updated_date - field.field.node.state_territory.field_of_state_name - field.field.node.state_territory.field_online_deadline + - field.field.node.state_territory.field_online_registration - field.field.node.state_territory.field_override_confirm_reg_link - field.field.node.state_territory.field_override_election_hp_link - field.field.node.state_territory.field_override_mail_reg_link @@ -37,7 +42,9 @@ dependencies: - field.field.node.state_territory.field_personal_information_inst - field.field.node.state_territory.field_political_party_inst - field.field.node.state_territory.field_reg_eligibility_desc + - field.field.node.state_territory.field_registration_intro - field.field.node.state_territory.field_registration_link + - field.field.node.state_territory.field_registration_not_needed - field.field.node.state_territory.field_registration_type - field.field.node.state_territory.field_state_abbreviation - field.field.node.state_territory.field_updated_date @@ -49,6 +56,7 @@ dependencies: - metatag - text - user + - vote_fields - vote_nvrf id: node.state_territory.default targetEntityType: node @@ -77,6 +85,13 @@ content: third_party_settings: { } weight: 24 region: content + field_check_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 39 + region: content field_confirm_registration_link: type: link label: hidden @@ -170,6 +185,13 @@ content: third_party_settings: { } weight: 14 region: content + field_in_person_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 43 + region: content field_in_state_name: type: string label: above @@ -196,6 +218,13 @@ content: third_party_settings: { } weight: 12 region: content + field_mail_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 42 + region: content field_mail_registration_link: type: link label: above @@ -231,6 +260,13 @@ content: third_party_settings: { } weight: 19 region: content + field_military_and_overseas_regi: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 44 + region: content field_more_info_link: type: link label: hidden @@ -289,6 +325,13 @@ content: third_party_settings: { } weight: 8 region: content + field_online_registration: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 41 + region: content field_override_confirm_reg_link: type: link label: hidden @@ -378,6 +421,13 @@ content: third_party_settings: { } weight: 32 region: content + field_registration_intro: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 46 + region: content field_registration_link: type: link label: hidden @@ -390,6 +440,13 @@ content: third_party_settings: { } weight: 5 region: content + field_registration_not_needed: + type: vote_fields_state_content_default + label: above + settings: { } + third_party_settings: { } + weight: 45 + region: content field_updated_date: type: datetime_default label: above diff --git a/config/sync/core.entity_view_display.node.state_territory.full.yml b/config/sync/core.entity_view_display.node.state_territory.full.yml index 5b1bc80f7..e745f32ce 100644 --- a/config/sync/core.entity_view_display.node.state_territory.full.yml +++ b/config/sync/core.entity_view_display.node.state_territory.full.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.state_territory.body - field.field.node.state_territory.field_accepts_nvrf - field.field.node.state_territory.field_address_location_inst + - field.field.node.state_territory.field_check_registration - field.field.node.state_territory.field_confirm_registration_link - field.field.node.state_territory.field_content_version - field.field.node.state_territory.field_election_homepage_link @@ -16,19 +17,23 @@ dependencies: - field.field.node.state_territory.field_g_online_deadline - field.field.node.state_territory.field_identification_inst - field.field.node.state_territory.field_in_person_deadline + - field.field.node.state_territory.field_in_person_registration - field.field.node.state_territory.field_in_state_name - field.field.node.state_territory.field_is_state - field.field.node.state_territory.field_mail_postmarked_deadline - field.field.node.state_territory.field_mail_received_deadline + - field.field.node.state_territory.field_mail_registration - field.field.node.state_territory.field_mail_registration_link - field.field.node.state_territory.field_mailing_address_inst - field.field.node.state_territory.field_media - field.field.node.state_territory.field_metatags + - field.field.node.state_territory.field_military_and_overseas_regi - field.field.node.state_territory.field_more_info_link - field.field.node.state_territory.field_nvrf_fields - field.field.node.state_territory.field_nvrf_last_updated_date - field.field.node.state_territory.field_of_state_name - field.field.node.state_territory.field_online_deadline + - field.field.node.state_territory.field_online_registration - field.field.node.state_territory.field_override_confirm_reg_link - field.field.node.state_territory.field_override_election_hp_link - field.field.node.state_territory.field_override_mail_reg_link @@ -38,7 +43,9 @@ dependencies: - field.field.node.state_territory.field_personal_information_inst - field.field.node.state_territory.field_political_party_inst - field.field.node.state_territory.field_reg_eligibility_desc + - field.field.node.state_territory.field_registration_intro - field.field.node.state_territory.field_registration_link + - field.field.node.state_territory.field_registration_not_needed - field.field.node.state_territory.field_registration_type - field.field.node.state_territory.field_state_abbreviation - field.field.node.state_territory.field_updated_date @@ -321,18 +328,25 @@ content: hidden: body: true field_address_location_inst: true + field_check_registration: true field_content_version: true field_identification_inst: true + field_in_person_registration: true + field_mail_registration: true field_mail_registration_link: true field_mailing_address_inst: true field_metatags: true + field_military_and_overseas_regi: true field_nvrf_fields: true field_nvrf_last_updated_date: true + field_online_registration: true field_override_mail_reg_link: true field_pdf_pages: true field_personal_information_inst: true field_political_party_inst: true field_reg_eligibility_desc: true + field_registration_intro: true + field_registration_not_needed: true langcode: true links: true published_at: true diff --git a/config/sync/core.entity_view_display.node.state_territory.teaser.yml b/config/sync/core.entity_view_display.node.state_territory.teaser.yml index f079e7db1..86bc4a271 100644 --- a/config/sync/core.entity_view_display.node.state_territory.teaser.yml +++ b/config/sync/core.entity_view_display.node.state_territory.teaser.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.state_territory.body - field.field.node.state_territory.field_accepts_nvrf - field.field.node.state_territory.field_address_location_inst + - field.field.node.state_territory.field_check_registration - field.field.node.state_territory.field_confirm_registration_link - field.field.node.state_territory.field_content_version - field.field.node.state_territory.field_election_homepage_link @@ -16,19 +17,23 @@ dependencies: - field.field.node.state_territory.field_g_online_deadline - field.field.node.state_territory.field_identification_inst - field.field.node.state_territory.field_in_person_deadline + - field.field.node.state_territory.field_in_person_registration - field.field.node.state_territory.field_in_state_name - field.field.node.state_territory.field_is_state - field.field.node.state_territory.field_mail_postmarked_deadline - field.field.node.state_territory.field_mail_received_deadline + - field.field.node.state_territory.field_mail_registration - field.field.node.state_territory.field_mail_registration_link - field.field.node.state_territory.field_mailing_address_inst - field.field.node.state_territory.field_media - field.field.node.state_territory.field_metatags + - field.field.node.state_territory.field_military_and_overseas_regi - field.field.node.state_territory.field_more_info_link - field.field.node.state_territory.field_nvrf_fields - field.field.node.state_territory.field_nvrf_last_updated_date - field.field.node.state_territory.field_of_state_name - field.field.node.state_territory.field_online_deadline + - field.field.node.state_territory.field_online_registration - field.field.node.state_territory.field_override_confirm_reg_link - field.field.node.state_territory.field_override_election_hp_link - field.field.node.state_territory.field_override_mail_reg_link @@ -38,7 +43,9 @@ dependencies: - field.field.node.state_territory.field_personal_information_inst - field.field.node.state_territory.field_political_party_inst - field.field.node.state_territory.field_reg_eligibility_desc + - field.field.node.state_territory.field_registration_intro - field.field.node.state_territory.field_registration_link + - field.field.node.state_territory.field_registration_not_needed - field.field.node.state_territory.field_registration_type - field.field.node.state_territory.field_state_abbreviation - field.field.node.state_territory.field_updated_date @@ -64,6 +71,7 @@ hidden: body: true field_accepts_nvrf: true field_address_location_inst: true + field_check_registration: true field_confirm_registration_link: true field_content_version: true field_election_homepage_link: true @@ -73,19 +81,23 @@ hidden: field_g_online_deadline: true field_identification_inst: true field_in_person_deadline: true + field_in_person_registration: true field_in_state_name: true field_is_state: true field_mail_postmarked_deadline: true field_mail_received_deadline: true + field_mail_registration: true field_mail_registration_link: true field_mailing_address_inst: true field_media: true field_metatags: true + field_military_and_overseas_regi: true field_more_info_link: true field_nvrf_fields: true field_nvrf_last_updated_date: true field_of_state_name: true field_online_deadline: true + field_online_registration: true field_override_confirm_reg_link: true field_override_election_hp_link: true field_override_mail_reg_link: true @@ -95,7 +107,9 @@ hidden: field_personal_information_inst: true field_political_party_inst: true field_reg_eligibility_desc: true + field_registration_intro: true field_registration_link: true + field_registration_not_needed: true field_registration_type: true field_state_abbreviation: true field_updated_date: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index ea7f0142d..91d74cf7a 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -83,6 +83,7 @@ module: user: 0 uswds_templates: 0 views_data_export: 0 + vote_fields: 0 vote_nvrf: 0 vote_utility: 0 workflows: 0 diff --git a/config/sync/field.field.block_content.state_display_content.field_check_registration.yml b/config/sync/field.field.block_content.state_display_content.field_check_registration.yml new file mode 100644 index 000000000..4e7073c6a --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_check_registration.yml @@ -0,0 +1,21 @@ +uuid: ece92ac7-dfb9-4fdc-87f6-2ed5f62a547f +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_check_registration + module: + - vote_fields +id: block_content.state_display_content.field_check_registration +field_name: field_check_registration +entity_type: block_content +bundle: state_display_content +label: 'Check registration' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_display_title.yml b/config/sync/field.field.block_content.state_display_content.field_display_title.yml new file mode 100644 index 000000000..5314ea4b3 --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_display_title.yml @@ -0,0 +1,19 @@ +uuid: df8f2dfd-0a06-42a5-829b-b81646f3579f +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_display_title +id: block_content.state_display_content.field_display_title +field_name: field_display_title +entity_type: block_content +bundle: state_display_content +label: 'Page display title' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.block_content.state_display_content.field_election_date.yml b/config/sync/field.field.block_content.state_display_content.field_election_date.yml new file mode 100644 index 000000000..0b9e58b12 --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_election_date.yml @@ -0,0 +1,21 @@ +uuid: 6fc32af4-cfde-4f2d-a3ce-9d28f7adba44 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_election_date + module: + - datetime +id: block_content.state_display_content.field_election_date +field_name: field_election_date +entity_type: block_content +bundle: state_display_content +label: 'Election date' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/config/sync/field.field.block_content.state_display_content.field_election_text.yml b/config/sync/field.field.block_content.state_display_content.field_election_text.yml new file mode 100644 index 000000000..2b75a7420 --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_election_text.yml @@ -0,0 +1,24 @@ +uuid: c04b8773-2e15-488b-92a7-827a9c117cb5 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_election_text + - filter.format.simple_html + module: + - text +id: block_content.state_display_content.field_election_text +field_name: field_election_text +entity_type: block_content +bundle: state_display_content +label: 'Election Text' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + allowed_formats: + - simple_html +field_type: text_long diff --git a/config/sync/field.field.block_content.state_display_content.field_in_person_registration.yml b/config/sync/field.field.block_content.state_display_content.field_in_person_registration.yml new file mode 100644 index 000000000..d3f88ac8b --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_in_person_registration.yml @@ -0,0 +1,21 @@ +uuid: 5dc38cb7-9e11-4ed7-93ac-2937362167d9 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_in_person_registration + module: + - vote_fields +id: block_content.state_display_content.field_in_person_registration +field_name: field_in_person_registration +entity_type: block_content +bundle: state_display_content +label: 'In person registration' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_mail_registration.yml b/config/sync/field.field.block_content.state_display_content.field_mail_registration.yml new file mode 100644 index 000000000..56849d98f --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_mail_registration.yml @@ -0,0 +1,21 @@ +uuid: 721cb62e-d1e2-4aa8-ad24-cff1f35be94a +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_mail_registration + module: + - vote_fields +id: block_content.state_display_content.field_mail_registration +field_name: field_mail_registration +entity_type: block_content +bundle: state_display_content +label: 'Mail registration' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_military_and_overseas_regi.yml b/config/sync/field.field.block_content.state_display_content.field_military_and_overseas_regi.yml new file mode 100644 index 000000000..1ac10c3c9 --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_military_and_overseas_regi.yml @@ -0,0 +1,21 @@ +uuid: c1c25d01-fb77-4431-9273-413638ad6339 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_military_and_overseas_regi + module: + - vote_fields +id: block_content.state_display_content.field_military_and_overseas_regi +field_name: field_military_and_overseas_regi +entity_type: block_content +bundle: state_display_content +label: 'Military and overseas registration' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_nvrf_details.yml b/config/sync/field.field.block_content.state_display_content.field_nvrf_details.yml new file mode 100644 index 000000000..1aa0b6c5c --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_nvrf_details.yml @@ -0,0 +1,21 @@ +uuid: f6e71adb-140a-4cdc-877e-a8176f9320f8 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_nvrf_details + module: + - vote_fields +id: block_content.state_display_content.field_nvrf_details +field_name: field_nvrf_details +entity_type: block_content +bundle: state_display_content +label: 'NVRF details' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_online_registration.yml b/config/sync/field.field.block_content.state_display_content.field_online_registration.yml new file mode 100644 index 000000000..7fd2799aa --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_online_registration.yml @@ -0,0 +1,21 @@ +uuid: 4b9e0b2b-1d9e-4778-a635-fd2c9ed5e1fe +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_online_registration + module: + - vote_fields +id: block_content.state_display_content.field_online_registration +field_name: field_online_registration +entity_type: block_content +bundle: state_display_content +label: 'Online registration' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_registration_intro.yml b/config/sync/field.field.block_content.state_display_content.field_registration_intro.yml new file mode 100644 index 000000000..fb2fe29ab --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_registration_intro.yml @@ -0,0 +1,21 @@ +uuid: 6e4058ae-1e1e-4a2f-8ca9-cc1772cb12b7 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_registration_intro + module: + - vote_fields +id: block_content.state_display_content.field_registration_intro +field_name: field_registration_intro +entity_type: block_content +bundle: state_display_content +label: 'Registration intro' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.block_content.state_display_content.field_registration_not_needed.yml b/config/sync/field.field.block_content.state_display_content.field_registration_not_needed.yml new file mode 100644 index 000000000..5888caa15 --- /dev/null +++ b/config/sync/field.field.block_content.state_display_content.field_registration_not_needed.yml @@ -0,0 +1,21 @@ +uuid: 14c143d7-942d-41b8-a725-3b5bd464d1b5 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + - field.storage.block_content.field_registration_not_needed + module: + - vote_fields +id: block_content.state_display_content.field_registration_not_needed +field_name: field_registration_not_needed +entity_type: block_content +bundle: state_display_content +label: 'Registration not needed' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_check_registration.yml b/config/sync/field.field.node.state_territory.field_check_registration.yml new file mode 100644 index 000000000..48f210d2c --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_check_registration.yml @@ -0,0 +1,21 @@ +uuid: 611e7743-63e7-404e-9e7e-0a5a3dadf168 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_check_registration + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_check_registration +field_name: field_check_registration +entity_type: node +bundle: state_territory +label: 'Check registration (override)' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_in_person_registration.yml b/config/sync/field.field.node.state_territory.field_in_person_registration.yml new file mode 100644 index 000000000..9cd92a238 --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_in_person_registration.yml @@ -0,0 +1,21 @@ +uuid: f0446326-9d6f-4563-95f0-366b5ad3eb35 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_in_person_registration + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_in_person_registration +field_name: field_in_person_registration +entity_type: node +bundle: state_territory +label: 'In person registration (override)' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_mail_registration.yml b/config/sync/field.field.node.state_territory.field_mail_registration.yml new file mode 100644 index 000000000..b363a5711 --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_mail_registration.yml @@ -0,0 +1,21 @@ +uuid: 544d455c-88ce-4636-bbbb-f8f1b8fa0007 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_mail_registration + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_mail_registration +field_name: field_mail_registration +entity_type: node +bundle: state_territory +label: 'Mail registration (override)' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_military_and_overseas_regi.yml b/config/sync/field.field.node.state_territory.field_military_and_overseas_regi.yml new file mode 100644 index 000000000..ec5a7d9dd --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_military_and_overseas_regi.yml @@ -0,0 +1,21 @@ +uuid: f92303b1-c6e9-4c50-b148-2b8a8d0b4e69 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_military_and_overseas_regi + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_military_and_overseas_regi +field_name: field_military_and_overseas_regi +entity_type: node +bundle: state_territory +label: 'Military and overseas registration (override)' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_online_registration.yml b/config/sync/field.field.node.state_territory.field_online_registration.yml new file mode 100644 index 000000000..dbc656fd2 --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_online_registration.yml @@ -0,0 +1,21 @@ +uuid: fea36257-6fba-44a4-b3dc-7f303516591b +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_online_registration + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_online_registration +field_name: field_online_registration +entity_type: node +bundle: state_territory +label: 'Online registration (override)' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_registration_intro.yml b/config/sync/field.field.node.state_territory.field_registration_intro.yml new file mode 100644 index 000000000..34adc33b9 --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_registration_intro.yml @@ -0,0 +1,21 @@ +uuid: 02278e3c-56da-44b8-a453-f1059178d6af +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_registration_intro + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_registration_intro +field_name: field_registration_intro +entity_type: node +bundle: state_territory +label: 'Registration intro (override)' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.field.node.state_territory.field_registration_not_needed.yml b/config/sync/field.field.node.state_territory.field_registration_not_needed.yml new file mode 100644 index 000000000..3c4e20d41 --- /dev/null +++ b/config/sync/field.field.node.state_territory.field_registration_not_needed.yml @@ -0,0 +1,21 @@ +uuid: 229db619-0718-4ff2-96d2-9f2f916cabd1 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_registration_not_needed + - node.type.state_territory + module: + - vote_fields +id: node.state_territory.field_registration_not_needed +field_name: field_registration_not_needed +entity_type: node +bundle: state_territory +label: 'Registration not needed' +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: vote_fields_state_content diff --git a/config/sync/field.storage.block_content.field_check_registration.yml b/config/sync/field.storage.block_content.field_check_registration.yml new file mode 100644 index 000000000..64e6880ce --- /dev/null +++ b/config/sync/field.storage.block_content.field_check_registration.yml @@ -0,0 +1,19 @@ +uuid: 352706d3-ace8-4a23-99df-9af3c3ef52d9 +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_check_registration +field_name: field_check_registration +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_display_title.yml b/config/sync/field.storage.block_content.field_display_title.yml new file mode 100644 index 000000000..2c2f9f2c3 --- /dev/null +++ b/config/sync/field.storage.block_content.field_display_title.yml @@ -0,0 +1,21 @@ +uuid: ebceda9c-b435-4da8-884e-6501886bd68d +langcode: en +status: true +dependencies: + module: + - block_content +id: block_content.field_display_title +field_name: field_display_title +entity_type: block_content +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 diff --git a/config/sync/field.storage.block_content.field_election_date.yml b/config/sync/field.storage.block_content.field_election_date.yml new file mode 100644 index 000000000..0b765e01a --- /dev/null +++ b/config/sync/field.storage.block_content.field_election_date.yml @@ -0,0 +1,20 @@ +uuid: 6fe0e59f-68f3-4ab6-98dc-466c0939c797 +langcode: en +status: true +dependencies: + module: + - block_content + - datetime +id: block_content.field_election_date +field_name: field_election_date +entity_type: block_content +type: datetime +settings: + datetime_type: date +module: datetime +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_election_text.yml b/config/sync/field.storage.block_content.field_election_text.yml new file mode 100644 index 000000000..a82a88475 --- /dev/null +++ b/config/sync/field.storage.block_content.field_election_text.yml @@ -0,0 +1,19 @@ +uuid: b3d36861-037a-46e8-a307-5de236818410 +langcode: en +status: true +dependencies: + module: + - block_content + - text +id: block_content.field_election_text +field_name: field_election_text +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 diff --git a/config/sync/field.storage.block_content.field_in_person_registration.yml b/config/sync/field.storage.block_content.field_in_person_registration.yml new file mode 100644 index 000000000..aa17f3190 --- /dev/null +++ b/config/sync/field.storage.block_content.field_in_person_registration.yml @@ -0,0 +1,19 @@ +uuid: a16bce60-f467-48cf-91f7-180b15af7f70 +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_in_person_registration +field_name: field_in_person_registration +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_mail_registration.yml b/config/sync/field.storage.block_content.field_mail_registration.yml new file mode 100644 index 000000000..bb3b54142 --- /dev/null +++ b/config/sync/field.storage.block_content.field_mail_registration.yml @@ -0,0 +1,19 @@ +uuid: 8872da2c-2579-4f0f-a2c9-711b89bc0339 +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_mail_registration +field_name: field_mail_registration +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_military_and_overseas_regi.yml b/config/sync/field.storage.block_content.field_military_and_overseas_regi.yml new file mode 100644 index 000000000..6d8565963 --- /dev/null +++ b/config/sync/field.storage.block_content.field_military_and_overseas_regi.yml @@ -0,0 +1,19 @@ +uuid: 8dac1cb7-22e4-4be9-991b-2123a76c6671 +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_military_and_overseas_regi +field_name: field_military_and_overseas_regi +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_nvrf_details.yml b/config/sync/field.storage.block_content.field_nvrf_details.yml new file mode 100644 index 000000000..36dda7730 --- /dev/null +++ b/config/sync/field.storage.block_content.field_nvrf_details.yml @@ -0,0 +1,19 @@ +uuid: d94df90c-464f-421a-a7c6-47ecdf2d58de +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_nvrf_details +field_name: field_nvrf_details +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_online_registration.yml b/config/sync/field.storage.block_content.field_online_registration.yml new file mode 100644 index 000000000..e249b2fbb --- /dev/null +++ b/config/sync/field.storage.block_content.field_online_registration.yml @@ -0,0 +1,19 @@ +uuid: 90507e04-cb95-4b57-990b-0a0fb0de5650 +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_online_registration +field_name: field_online_registration +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_registration_intro.yml b/config/sync/field.storage.block_content.field_registration_intro.yml new file mode 100644 index 000000000..96953bf27 --- /dev/null +++ b/config/sync/field.storage.block_content.field_registration_intro.yml @@ -0,0 +1,19 @@ +uuid: 1398a67d-49c9-405e-ab74-55a62270a1fa +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_registration_intro +field_name: field_registration_intro +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.block_content.field_registration_not_needed.yml b/config/sync/field.storage.block_content.field_registration_not_needed.yml new file mode 100644 index 000000000..303fa5400 --- /dev/null +++ b/config/sync/field.storage.block_content.field_registration_not_needed.yml @@ -0,0 +1,19 @@ +uuid: 76950094-acdd-4682-bc4e-a676a2e503f4 +langcode: en +status: true +dependencies: + module: + - block_content + - vote_fields +id: block_content.field_registration_not_needed +field_name: field_registration_not_needed +entity_type: block_content +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_check_registration.yml b/config/sync/field.storage.node.field_check_registration.yml new file mode 100644 index 000000000..e510ed4ae --- /dev/null +++ b/config/sync/field.storage.node.field_check_registration.yml @@ -0,0 +1,19 @@ +uuid: 393e8782-5d28-4097-a6b6-8442b37c8e83 +langcode: fr +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_check_registration +field_name: field_check_registration +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_in_person_registration.yml b/config/sync/field.storage.node.field_in_person_registration.yml new file mode 100644 index 000000000..3396736d9 --- /dev/null +++ b/config/sync/field.storage.node.field_in_person_registration.yml @@ -0,0 +1,19 @@ +uuid: 1cde9355-b019-4eac-8d42-2625dc0a8036 +langcode: fr +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_in_person_registration +field_name: field_in_person_registration +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_mail_registration.yml b/config/sync/field.storage.node.field_mail_registration.yml new file mode 100644 index 000000000..aa1d85439 --- /dev/null +++ b/config/sync/field.storage.node.field_mail_registration.yml @@ -0,0 +1,19 @@ +uuid: 1f20adfd-fefe-4510-a07f-77df363f2c74 +langcode: fr +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_mail_registration +field_name: field_mail_registration +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_military_and_overseas_regi.yml b/config/sync/field.storage.node.field_military_and_overseas_regi.yml new file mode 100644 index 000000000..fffcad981 --- /dev/null +++ b/config/sync/field.storage.node.field_military_and_overseas_regi.yml @@ -0,0 +1,19 @@ +uuid: 65225510-7e04-424d-8fc2-e0dd5168b9da +langcode: fr +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_military_and_overseas_regi +field_name: field_military_and_overseas_regi +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_online_registration.yml b/config/sync/field.storage.node.field_online_registration.yml new file mode 100644 index 000000000..423540fda --- /dev/null +++ b/config/sync/field.storage.node.field_online_registration.yml @@ -0,0 +1,19 @@ +uuid: 08ee1df7-681b-4e53-a904-ef750d6d8c3f +langcode: fr +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_online_registration +field_name: field_online_registration +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_registration_intro.yml b/config/sync/field.storage.node.field_registration_intro.yml new file mode 100644 index 000000000..b065f4c0c --- /dev/null +++ b/config/sync/field.storage.node.field_registration_intro.yml @@ -0,0 +1,19 @@ +uuid: 5309c8a7-fa8f-440e-ac41-681a0d227be0 +langcode: en +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_registration_intro +field_name: field_registration_intro +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_registration_not_needed.yml b/config/sync/field.storage.node.field_registration_not_needed.yml new file mode 100644 index 000000000..d4eed12da --- /dev/null +++ b/config/sync/field.storage.node.field_registration_not_needed.yml @@ -0,0 +1,19 @@ +uuid: adf682cd-58b0-4899-925c-a01b59859981 +langcode: fr +status: true +dependencies: + module: + - node + - vote_fields +id: node.field_registration_not_needed +field_name: field_registration_not_needed +entity_type: node +type: vote_fields_state_content +settings: { } +module: vote_fields +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/language.content_settings.block_content.state_display_content.yml b/config/sync/language.content_settings.block_content.state_display_content.yml new file mode 100644 index 000000000..1a95969a5 --- /dev/null +++ b/config/sync/language.content_settings.block_content.state_display_content.yml @@ -0,0 +1,18 @@ +uuid: c90e8b6a-1a9b-4f25-962a-7d181c01e910 +langcode: en +status: true +dependencies: + config: + - block_content.type.state_display_content + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: block_content.state_display_content +target_entity_type_id: block_content +target_bundle: state_display_content +default_langcode: site_default +language_alterable: false diff --git a/web/modules/custom/vote_fields/config/schema/vote_fields.schema.yml b/web/modules/custom/vote_fields/config/schema/vote_fields.schema.yml new file mode 100644 index 000000000..969a648b9 --- /dev/null +++ b/web/modules/custom/vote_fields/config/schema/vote_fields.schema.yml @@ -0,0 +1,15 @@ + +# Default value. +field.value.vote_fields_state_content: + type: mapping + label: Default value + mapping: + heading: + type: string + label: Heading + text: + type: text + label: Text + link_text: + type: string + label: Link text diff --git a/web/modules/custom/vote_fields/css/vote-fields-state-content-widget.css b/web/modules/custom/vote_fields/css/vote-fields-state-content-widget.css new file mode 100644 index 000000000..e69de29bb diff --git a/web/modules/custom/vote_fields/src/Plugin/Field/FieldFormatter/StateContentDefaultFormatter.php b/web/modules/custom/vote_fields/src/Plugin/Field/FieldFormatter/StateContentDefaultFormatter.php new file mode 100644 index 000000000..663f187cd --- /dev/null +++ b/web/modules/custom/vote_fields/src/Plugin/Field/FieldFormatter/StateContentDefaultFormatter.php @@ -0,0 +1,58 @@ + $item) { + + if ($item->heading) { + $element[$delta]['heading'] = [ + '#type' => 'item', + '#title' => $this->t('Heading'), + '#markup' => $item->heading, + ]; + } + + if ($item->text) { + $element[$delta]['text'] = [ + '#type' => 'item', + '#title' => $this->t('Text'), + '#markup' => $item->text, + ]; + } + + if ($item->link_text) { + $element[$delta]['link_text'] = [ + '#type' => 'item', + '#title' => $this->t('Link text'), + '#markup' => $item->link_text, + ]; + } + + } + + return $element; + } + +} diff --git a/web/modules/custom/vote_fields/src/Plugin/Field/FieldType/StateContentItem.php b/web/modules/custom/vote_fields/src/Plugin/Field/FieldType/StateContentItem.php new file mode 100644 index 000000000..fb0064941 --- /dev/null +++ b/web/modules/custom/vote_fields/src/Plugin/Field/FieldType/StateContentItem.php @@ -0,0 +1,102 @@ +heading === NULL && $this->text === NULL && $this->link_text === NULL; + } + + /** + * {@inheritdoc} + */ + public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition): array { + + $properties['heading'] = DataDefinition::create('string') + ->setLabel(t('Heading')); + $properties['text'] = DataDefinition::create('string') + ->setLabel(t('Text')); + $properties['link_text'] = DataDefinition::create('string') + ->setLabel(t('Link text')); + + return $properties; + } + + /** + * {@inheritdoc} + */ + public function getConstraints(): array { + $constraints = parent::getConstraints(); + + // @todo Add more constraints here. + return $constraints; + } + + /** + * {@inheritdoc} + */ + public static function schema(FieldStorageDefinitionInterface $field_definition): array { + + $columns = [ + 'heading' => [ + 'type' => 'varchar', + 'length' => 255, + ], + 'text' => [ + 'type' => 'text', + 'size' => 'big', + ], + 'link_text' => [ + 'type' => 'varchar', + 'length' => 255, + ], + ]; + + $schema = [ + 'columns' => $columns, + // @DCG Add indexes here if necessary. + ]; + + return $schema; + } + + /** + * {@inheritdoc} + */ + public static function generateSampleValue(FieldDefinitionInterface $field_definition): array { + + $random = new Random(); + + $values['heading'] = $random->word(mt_rand(1, 255)); + + $values['text'] = $random->paragraphs(5); + + $values['link_text'] = $random->word(mt_rand(1, 255)); + + return $values; + } + +} diff --git a/web/modules/custom/vote_fields/src/Plugin/Field/FieldWidget/StateContentWidget.php b/web/modules/custom/vote_fields/src/Plugin/Field/FieldWidget/StateContentWidget.php new file mode 100644 index 000000000..c5b4f3376 --- /dev/null +++ b/web/modules/custom/vote_fields/src/Plugin/Field/FieldWidget/StateContentWidget.php @@ -0,0 +1,90 @@ + 'textfield', + '#title' => $this->t('Heading'), + '#default_value' => $items[$delta]->heading ?? NULL, + ]; + + $element['text'] = [ + '#type' => 'text_format', + '#title' => $this->t('Text'), + '#default_value' => $items[$delta]->text ?? NULL, + '#format' => 'simple_html', + '#allowed_formats' => ['simple_html'], + ]; + + $element['link_text'] = [ + '#type' => 'textfield', + '#title' => $this->t('Link text'), + '#default_value' => $items[$delta]->link_text ?? NULL, + ]; + + $element['#theme_wrappers'] = ['fieldset']; + $element['#attributes']['class'][] = 'vote-fields-state-content-elements'; + $element['#attached']['library'][] = 'vote_fields/vote_fields_state_content'; + + return $element; + } + + /** + * {@inheritdoc} + */ + public function errorElement(array $element, ConstraintViolationInterface $error, array $form, FormStateInterface $form_state): array|bool { + $element = parent::errorElement($element, $error, $form, $form_state); + if ($element === FALSE) { + return FALSE; + } + $error_property = explode('.', $error->getPropertyPath())[1]; + return $element[$error_property]; + } + + /** + * {@inheritdoc} + */ + public function massageFormValues(array $values, array $form, FormStateInterface $form_state): array { + foreach ($values as $delta => $value) { + if ($value['heading'] === '') { + $values[$delta]['heading'] = NULL; + } + if ($value['text'] === '') { + $values[$delta]['text'] = NULL; + } + if ($value['link_text'] === '') { + $values[$delta]['link_text'] = NULL; + } + + // Prepare the data for the Text field before saving. + if (isset($value['text'])) { + $values[$delta]['text'] = $value['text']['value']; + } + } + return $values; + } + +} diff --git a/web/modules/custom/vote_fields/vote_fields.info.yml b/web/modules/custom/vote_fields/vote_fields.info.yml new file mode 100644 index 000000000..f48752633 --- /dev/null +++ b/web/modules/custom/vote_fields/vote_fields.info.yml @@ -0,0 +1,5 @@ +name: 'Vote Fields' +type: module +description: 'Custom module to provide custom fields for Vote.gov.' +package: Custom +core_version_requirement: ^10 || ^11 diff --git a/web/modules/custom/vote_fields/vote_fields.libraries.yml b/web/modules/custom/vote_fields/vote_fields.libraries.yml new file mode 100644 index 000000000..2ea449845 --- /dev/null +++ b/web/modules/custom/vote_fields/vote_fields.libraries.yml @@ -0,0 +1,4 @@ +vote_fields_state_content: + css: + component: + css/vote-fields-state-content-widget.css: {}