Skip to content

Commit

Permalink
VOTE-2810, VOTE-2811, VOTE-2812 state content field changes (#1001)
Browse files Browse the repository at this point in the history
* VOTE-2810: Create custom vote_fields module.

* VOTE-2811 & VOTE-2812: Update state content type with new fields from custom module. Create State Display Content block type using fields from custom module. Enable vote_fields module.
  • Loading branch information
daniel-crowder authored Sep 26, 2024
1 parent 47a05dc commit 249391d
Show file tree
Hide file tree
Showing 53 changed files with 1,441 additions and 11 deletions.
8 changes: 8 additions & 0 deletions config/sync/block_content.type.state_display_content.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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: { }
Loading

0 comments on commit 249391d

Please sign in to comment.