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-2883 state page updates elections date #1025

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 @@ -44,7 +44,7 @@ content:
label: above
settings:
timezone_override: ''
format_type: medium
format_type: long_date
third_party_settings: { }
weight: 10
region: content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% set mail_registration = state_display_content.field_mail_registration.0 | default([]) | merge(content.field_mail_registration.0 | default([])) %}
{% set inperson_registration = state_display_content.field_in_person_registration.0 | default([]) | merge(content.field_in_person_registration.0 | default([])) %}
{% set check_registration = state_display_content.field_check_registration.0 | default([]) | merge(content.field_check_registration.0 | default([])) %}
{% set election_date = state_display_content.field_election_date.0 | default([]) | merge(content.field_election_date.0 | default([])) %}
{% set election_text = state_display_content.field_election_text.0 | default([]) | merge(content.field_election_text.0 | default([])) %}

<div{{ attributes.addClass(classes) }}>
{# Hold these title_* placeholders for potential integration #}
Expand All @@ -57,6 +59,12 @@
{{ confirm_registration_link }}
{% endif %}

{# Election Date #}
{% if (election_date is not empty) and (election_text is not empty) %}
{% set election_date_text = election_text['#text'] | t({'@date': election_date | render }) %}
{{ election_date_text }}
{% endif %}

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