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

Vote-2959: Deprecate Registration Intro Field #1056

Merged
merged 3 commits into from
Oct 18, 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 @@ -14,7 +14,6 @@ dependencies:
- field.field.block_content.state_display_content.field_no_online_registration
- 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
Expand Down Expand Up @@ -121,16 +120,6 @@ content:
- text
- link_text
third_party_settings: { }
field_registration_intro:
type: vote_fields_state_content
weight: 2
region: content
settings:
form_subfield_display:
heading: heading
text: text
link_text: 0
third_party_settings: { }
field_registration_not_needed:
type: vote_fields_state_content
weight: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ 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
Expand Down Expand Up @@ -603,16 +602,6 @@ content:
rows: 5
placeholder: ''
third_party_settings: { }
field_registration_intro:
type: vote_fields_state_content
weight: 13
region: content
settings:
form_subfield_display:
- heading
- text
- link_text
third_party_settings: { }
field_registration_link:
type: link_default
weight: 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies:
- field.field.block_content.state_display_content.field_no_online_registration
- 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
Expand Down Expand Up @@ -98,13 +97,6 @@ content:
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ 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
Expand Down Expand Up @@ -429,13 +428,6 @@ 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ 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
Expand Down Expand Up @@ -338,13 +337,6 @@ content:
third_party_settings: { }
weight: 5
region: content
field_registration_intro:
type: vote_fields_state_content_default
label: hidden
settings: { }
third_party_settings: { }
weight: 26
region: content
field_registration_link:
type: link
label: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ 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
Expand Down Expand Up @@ -109,7 +108,6 @@ 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
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions config/sync/field.storage.node.field_registration_intro.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
{# Get default state display content from the block type. #}
{% set state_display_content = drupal_entity('block_content', 22) | children %}
{% set registration_not_needed = state_display_content.field_registration_not_needed.0 | default([]) | merge(content.field_registration_not_needed.0 | default([])) %}
{% set registration_intro = state_display_content.field_registration_intro.0 | default([]) | merge(content.field_registration_intro.0 | default([])) %}
{% set online_registration = state_display_content.field_online_registration.0 | default([]) | merge(content.field_online_registration.0 | default([])) %}
{% set military_overseas_registration = state_display_content.field_military_and_overseas_regi.0 | default([]) | merge(content.field_military_and_overseas_regi.0 | default([])) %}
{% set mail_registration = state_display_content.field_mail_registration.0 | default([]) | merge(content.field_mail_registration.0 | default([])) %}
Expand Down Expand Up @@ -105,11 +104,6 @@
{{ election_date_text }}
{% endif %}

{% if registration_intro is not empty %}
<h2>{{ registration_intro.heading }}</h2>
{{ registration_intro.text }}
{% endif %}

{# setting online registration variables #}
{% set online_registration_vars = has_online ? online_registration : no_online_registration %}
{% set body_vars = has_online ? {'@state_online_deadline': online_deadline | render, '@state_name': title_english} : {'@state_name': title_english} %}
Expand Down