Skip to content

Commit

Permalink
VOTE-3133 Add new date deadline fields to state content type (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayestrada authored Nov 14, 2024
1 parent 0003f94 commit d313670
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dependencies:
- 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_date_in_person_deadline
- field.field.node.state_territory.field_date_online_deadline
- field.field.node.state_territory.field_election_homepage_link
- field.field.node.state_territory.field_g_in_person_deadline
- field.field.node.state_territory.field_g_mail_postmarked_deadline
Expand Down Expand Up @@ -72,7 +74,7 @@ third_party_settings:
label: 'Generic registration deadlines'
region: content
parent_name: group_deadlines
weight: 21
weight: 10
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -146,6 +148,8 @@ third_party_settings:
required_fields: true
group_deadlines:
children:
- field_date_in_person_deadline
- field_date_online_deadline
- field_in_person_deadline
- field_online_deadline
- field_mail_postmarked_deadline
Expand Down Expand Up @@ -212,7 +216,7 @@ third_party_settings:
label: 'Version tracking'
region: content
parent_name: ''
weight: 11
weight: 12
format_type: details_sidebar
format_settings:
classes: ''
Expand Down Expand Up @@ -301,6 +305,18 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_date_in_person_deadline:
type: datetime_default
weight: 4
region: content
settings: { }
third_party_settings: { }
field_date_online_deadline:
type: datetime_default
weight: 5
region: content
settings: { }
third_party_settings: { }
field_election_homepage_link:
type: link_default
weight: 7
Expand Down Expand Up @@ -351,7 +367,7 @@ content:
third_party_settings: { }
field_in_person_deadline:
type: double_field
weight: 16
weight: 6
region: content
settings:
first:
Expand Down Expand Up @@ -401,13 +417,13 @@ content:
third_party_settings: { }
field_mail_postmarked_deadline:
type: datetime_default
weight: 18
weight: 8
region: content
settings: { }
third_party_settings: { }
field_mail_received_deadline:
type: datetime_default
weight: 19
weight: 9
region: content
settings: { }
third_party_settings: { }
Expand Down Expand Up @@ -448,7 +464,7 @@ content:
third_party_settings: { }
field_metatags:
type: metatag_firehose
weight: 9
weight: 10
region: content
settings:
sidebar: true
Expand Down Expand Up @@ -508,7 +524,7 @@ content:
third_party_settings: { }
field_online_deadline:
type: double_field
weight: 17
weight: 7
region: content
settings:
first:
Expand Down Expand Up @@ -649,26 +665,26 @@ content:
third_party_settings: { }
field_updated_date:
type: datetime_default
weight: 10
weight: 11
region: content
settings: { }
third_party_settings: { }
langcode:
type: language_select
weight: 8
weight: 9
region: content
settings:
include_locked: true
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 6
weight: 7
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 7
weight: 8
region: content
settings:
display_label: true
Expand All @@ -692,7 +708,7 @@ content:
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 5
weight: 6
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dependencies:
- 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_date_in_person_deadline
- field.field.node.state_territory.field_date_online_deadline
- field.field.node.state_territory.field_election_homepage_link
- field.field.node.state_territory.field_g_in_person_deadline
- field.field.node.state_territory.field_g_mail_postmarked_deadline
Expand Down Expand Up @@ -112,6 +114,24 @@ content:
third_party_settings: { }
weight: 8
region: content
field_date_in_person_deadline:
type: datetime_default
label: above
settings:
timezone_override: ''
format_type: medium
third_party_settings: { }
weight: 49
region: content
field_date_online_deadline:
type: datetime_default
label: above
settings:
timezone_override: ''
format_type: medium
third_party_settings: { }
weight: 48
region: content
field_election_homepage_link:
type: link
label: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies:
- 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_date_in_person_deadline
- field.field.node.state_territory.field_date_online_deadline
- field.field.node.state_territory.field_election_homepage_link
- field.field.node.state_territory.field_g_in_person_deadline
- field.field.node.state_territory.field_g_mail_postmarked_deadline
Expand Down Expand Up @@ -391,6 +393,8 @@ hidden:
body: true
field_address_location_inst: true
field_content_version: true
field_date_in_person_deadline: true
field_date_online_deadline: true
field_identification_inst: true
field_mailing_address_inst: true
field_metatags: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies:
- 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_date_in_person_deadline
- field.field.node.state_territory.field_date_online_deadline
- field.field.node.state_territory.field_election_homepage_link
- field.field.node.state_territory.field_g_in_person_deadline
- field.field.node.state_territory.field_g_mail_postmarked_deadline
Expand Down Expand Up @@ -74,6 +76,8 @@ hidden:
field_check_registration: true
field_confirm_registration_link: true
field_content_version: true
field_date_in_person_deadline: true
field_date_online_deadline: true
field_election_homepage_link: true
field_g_in_person_deadline: true
field_g_mail_postmarked_deadline: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 4fced31a-96ae-4d22-aeb1-0d17327c48bf
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_date_in_person_deadline
- node.type.state_territory
module:
- datetime
id: node.state_territory.field_date_in_person_deadline
field_name: field_date_in_person_deadline
entity_type: node
bundle: state_territory
label: 'Date in-person deadline'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 37a8611e-6bcf-4c74-a01f-f0a9b5ed6198
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_date_online_deadline
- node.type.state_territory
module:
- datetime
id: node.state_territory.field_date_online_deadline
field_name: field_date_online_deadline
entity_type: node
bundle: state_territory
label: 'Date Online Deadline'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime
20 changes: 20 additions & 0 deletions config/sync/field.storage.node.field_date_in_person_deadline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 028517aa-2c53-42d2-83fa-0b15e99d12e8
langcode: en
status: true
dependencies:
module:
- datetime
- node
id: node.field_date_in_person_deadline
field_name: field_date_in_person_deadline
entity_type: node
type: datetime
settings:
datetime_type: date
module: datetime
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
20 changes: 20 additions & 0 deletions config/sync/field.storage.node.field_date_online_deadline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 13d97756-f710-44e5-b018-4df700dcd235
langcode: en
status: true
dependencies:
module:
- datetime
- node
id: node.field_date_online_deadline
field_name: field_date_online_deadline
entity_type: node
type: datetime
settings:
datetime_type: date
module: datetime
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit d313670

Please sign in to comment.