Skip to content

Commit

Permalink
HOTFIX - Restore registration type variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiraMSadat committed Oct 18, 2024
1 parent b3a5941 commit 939de51
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
{% set election_text = state_display_content.field_election_text.0 | default([]) | merge(content.field_election_text.0 | default([])) %}
{% set no_online_registration = state_display_content.field_no_online_registration.0 | default([]) | merge(content.field_no_online_registration.0 | default([])) %}

{# Registration types #}
{% set registration_types = content.field_registration_type | field_value | column('#markup') %}
{% set has_in_person = "in-person" in registration_types %}
{% set has_mail = "by-mail" in registration_types %}
{% set has_online = "online" in registration_types %}
{% set not_needed = "not-needed" in registration_types %}

<div{{ attributes.addClass(classes) }}>
{# Hold these title_* placeholders for potential integration #}
Expand Down

0 comments on commit 939de51

Please sign in to comment.