Skip to content

Commit

Permalink
VOTE-2584 new block types and permissions for content managers (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayestrada authored Oct 21, 2024
1 parent fbc4145 commit 3795bd3
Show file tree
Hide file tree
Showing 42 changed files with 1,177 additions and 2 deletions.
8 changes: 8 additions & 0 deletions config/sync/block_content.type.contact_identifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 1d9c66e1-b3c2-4ffc-80b3-825222eaa90b
langcode: en
status: true
dependencies: { }
id: contact_identifier
label: 'Contact Identifier'
revision: false
description: null
8 changes: 8 additions & 0 deletions config/sync/block_content.type.partnership.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 848f2010-0520-4c2f-8967-a3d8263623cf
langcode: en
status: true
dependencies: { }
id: partnership
label: Partnership
revision: false
description: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
uuid: 6785a1bb-a57d-441c-bfae-eedc0498a241
langcode: en
status: true
dependencies:
config:
- block_content.type.contact_identifier
- field.field.block_content.contact_identifier.field_agency_domain
- field.field.block_content.contact_identifier.field_gsa_link
- field.field.block_content.contact_identifier.field_logo
- field.field.block_content.contact_identifier.field_usagov_link
module:
- allowed_formats
- media_library
- text
id: block_content.contact_identifier.default
targetEntityType: block_content
bundle: contact_identifier
mode: default
content:
field_agency_domain:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_gsa_link:
type: text_textarea
weight: 3
region: content
settings:
rows: 3
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '0'
hide_guidelines: '0'
field_logo:
type: media_library_widget
weight: 1
region: content
settings:
media_types: { }
third_party_settings: { }
field_usagov_link:
type: text_textarea
weight: 4
region: content
settings:
rows: 3
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '0'
hide_guidelines: '0'
info:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
langcode: true
translation: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
uuid: 384ebd18-440e-4962-87b4-d6bb3f591c60
langcode: en
status: true
dependencies:
config:
- block_content.type.partnership
- field.field.block_content.partnership.field_display_social_link
- field.field.block_content.partnership.field_eac_logo
- field.field.block_content.partnership.field_eac_logo_link
- field.field.block_content.partnership.field_eac_logo_text
- field.field.block_content.partnership.field_election_resources
- field.field.block_content.partnership.field_heading
- field.field.block_content.partnership.field_section_identifier
- field.field.block_content.partnership.field_social_link
- field.field.block_content.partnership.field_social_logo
- field.field.block_content.partnership.field_usagov_logo
- field.field.block_content.partnership.field_usagov_logo_link
- field.field.block_content.partnership.field_usagov_logo_text
module:
- allowed_formats
- link
- media_library
- text
id: block_content.partnership.default
targetEntityType: block_content
bundle: partnership
mode: default
content:
field_display_social_link:
type: boolean_checkbox
weight: 9
region: content
settings:
display_label: true
third_party_settings: { }
field_eac_logo:
type: media_library_widget
weight: 6
region: content
settings:
media_types: { }
third_party_settings: { }
field_eac_logo_link:
type: link_default
weight: 8
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_eac_logo_text:
type: string_textfield
weight: 7
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_election_resources:
type: text_textarea
weight: 2
region: content
settings:
rows: 3
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '1'
hide_guidelines: '0'
field_heading:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_section_identifier:
type: string_textfield
weight: 12
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_social_link:
type: link_default
weight: 10
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_social_logo:
type: media_library_widget
weight: 11
region: content
settings:
media_types: { }
third_party_settings: { }
field_usagov_logo:
type: media_library_widget
weight: 3
region: content
settings:
media_types: { }
third_party_settings: { }
field_usagov_logo_link:
type: link_default
weight: 5
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_usagov_logo_text:
type: string_textfield
weight: 4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
info:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
langcode: true
translation: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
uuid: 39505d86-3771-43a7-b66d-1d96559cf94b
langcode: en
status: true
dependencies:
config:
- block_content.type.partnership
- core.entity_form_mode.block_content.landing_page_component
- field.field.block_content.partnership.field_display_social_link
- field.field.block_content.partnership.field_eac_logo
- field.field.block_content.partnership.field_eac_logo_link
- field.field.block_content.partnership.field_eac_logo_text
- field.field.block_content.partnership.field_election_resources
- field.field.block_content.partnership.field_heading
- field.field.block_content.partnership.field_section_identifier
- field.field.block_content.partnership.field_social_link
- field.field.block_content.partnership.field_social_logo
- field.field.block_content.partnership.field_usagov_logo
- field.field.block_content.partnership.field_usagov_logo_link
- field.field.block_content.partnership.field_usagov_logo_text
id: block_content.partnership.landing_page_component
targetEntityType: block_content
bundle: partnership
mode: landing_page_component
content:
field_heading:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
info:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
translation:
weight: 10
region: content
settings: { }
third_party_settings: { }
hidden:
field_display_social_link: true
field_eac_logo: true
field_eac_logo_link: true
field_eac_logo_text: true
field_election_resources: true
field_section_identifier: true
field_social_link: true
field_social_logo: true
field_usagov_logo: true
field_usagov_logo_link: true
field_usagov_logo_text: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
uuid: 91deadbf-0ba9-40de-8608-032f54a1eadf
langcode: en
status: true
dependencies:
config:
- block_content.type.contact_identifier
- field.field.block_content.contact_identifier.field_agency_domain
- field.field.block_content.contact_identifier.field_gsa_link
- field.field.block_content.contact_identifier.field_logo
- field.field.block_content.contact_identifier.field_usagov_link
module:
- media
- text
id: block_content.contact_identifier.default
targetEntityType: block_content
bundle: contact_identifier
mode: default
content:
field_agency_domain:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
field_gsa_link:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 3
region: content
field_logo:
type: media_thumbnail
label: above
settings:
image_link: ''
image_style: ''
image_loading:
attribute: lazy
third_party_settings: { }
weight: 1
region: content
field_usagov_link:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 4
region: content
hidden:
langcode: true
Loading

0 comments on commit 3795bd3

Please sign in to comment.