Skip to content

Commit

Permalink
add moderation to events
Browse files Browse the repository at this point in the history
  • Loading branch information
jdearie committed Jan 7, 2022
1 parent fc615dd commit 1df970f
Show file tree
Hide file tree
Showing 58 changed files with 668 additions and 122 deletions.
21 changes: 15 additions & 6 deletions config/sync/core.entity_form_display.node.article.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ dependencies:
- field.field.node.article.field_article_featured
- field.field.node.article.field_article_image
- field.field.node.article.field_keywords
- field.field.node.article.field_meta_tags
- node.type.article
- workflows.workflow.editorial
module:
- content_moderation
- entity_browser
- metatag
- path
- text
id: node.article.default
Expand All @@ -22,7 +24,7 @@ mode: default
content:
body:
type: text_textarea_with_summary
weight: 10
weight: 11
settings:
rows: 9
summary_rows: 3
Expand All @@ -37,15 +39,15 @@ content:
settings: { }
third_party_settings: { }
field_article_featured:
weight: 8
weight: 9
settings:
display_label: true
third_party_settings: { }
type: boolean_checkbox
region: content
field_article_image:
type: entity_browser_entity_reference
weight: 9
weight: 10
settings:
entity_browser: image_browser
field_widget_display: rendered_entity
Expand All @@ -59,7 +61,7 @@ content:
third_party_settings: { }
region: content
field_keywords:
weight: 11
weight: 12
settings:
match_operator: CONTAINS
size: 60
Expand All @@ -68,6 +70,13 @@ content:
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_meta_tags:
weight: 7
settings:
sidebar: true
third_party_settings: { }
type: metatag_firehose
region: content
moderation_state:
type: moderation_state_default
weight: 6
Expand All @@ -91,7 +100,7 @@ content:
type: boolean_checkbox
settings:
display_label: true
weight: 7
weight: 8
region: content
third_party_settings: { }
sticky:
Expand Down Expand Up @@ -120,7 +129,7 @@ content:
region: content
third_party_settings: { }
url_redirects:
weight: 12
weight: 13
region: content
settings: { }
third_party_settings: { }
Expand Down
39 changes: 18 additions & 21 deletions config/sync/core.entity_form_display.node.blog_post.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ dependencies:
- field.field.node.blog_post.field_blog_post_author
- field.field.node.blog_post.field_comment
- field.field.node.blog_post.field_keywords
- field.field.node.blog_post.field_meta_tags
- node.type.blog_post
- workflows.workflow.editorial
module:
- content_moderation
- metatag
- path
- text
id: node.blog_post.default
Expand All @@ -21,7 +23,7 @@ mode: default
content:
body:
type: text_textarea_with_summary
weight: 10
weight: 2
settings:
rows: 9
summary_rows: 3
Expand All @@ -31,12 +33,12 @@ content:
region: content
created:
type: datetime_timestamp
weight: 2
weight: 9
region: content
settings: { }
third_party_settings: { }
field_blog_post_author:
weight: 9
weight: 1
settings:
match_operator: CONTAINS
match_limit: 10
Expand All @@ -46,7 +48,7 @@ content:
type: entity_reference_autocomplete
region: content
field_keywords:
weight: 11
weight: 3
settings:
match_operator: CONTAINS
match_limit: 10
Expand All @@ -55,9 +57,16 @@ content:
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_meta_tags:
weight: 7
settings:
sidebar: true
third_party_settings: { }
type: metatag_firehose
region: content
moderation_state:
type: moderation_state_default
weight: 7
weight: 4
settings: { }
region: content
third_party_settings: { }
Expand All @@ -67,25 +76,11 @@ content:
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 3
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 8
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 4
weight: 10
region: content
third_party_settings: { }
title:
Expand All @@ -98,7 +93,7 @@ content:
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 1
weight: 8
settings:
match_operator: CONTAINS
size: 60
Expand All @@ -114,3 +109,5 @@ content:
hidden:
field_blog_image: true
field_comment: true
promote: true
sticky: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ dependencies:
- entity_browser.browser.image_browser
- field.field.node.employee_profile.field_employee_photo
- field.field.node.employee_profile.field_employee_profile
- field.field.node.employee_profile.field_meta_tags
- field.field.node.employee_profile.field_office_region
- node.type.employee_profile
- workflows.workflow.editorial
module:
- content_moderation
- entity_browser
- metatag
- path
- text
id: node.employee_profile.default
Expand Down Expand Up @@ -48,6 +50,13 @@ content:
third_party_settings: { }
type: text_textarea
region: content
field_meta_tags:
weight: 5
settings:
sidebar: true
third_party_settings: { }
type: metatag_firehose
region: content
field_office_region:
weight: 2
settings:
Expand All @@ -72,7 +81,7 @@ content:
third_party_settings: { }
status:
type: boolean_checkbox
weight: 5
weight: 10
region: content
settings:
display_label: true
Expand Down
55 changes: 26 additions & 29 deletions config/sync/core.entity_form_display.node.event.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ dependencies:
- field.field.node.event.field_event_location_logistics
- field.field.node.event.field_event_recording
- field.field.node.event.field_event_tags
- field.field.node.event.field_meta_tags
- field.field.node.event.field_show_on_agency_calendar
- node.type.event
module:
- content_moderation
- entity_reference_tree
- field_group
- link
- metatag
- path
- smart_date
- smart_date_recur
Expand Down Expand Up @@ -45,12 +47,12 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 2
weight: 15
region: content
settings: { }
third_party_settings: { }
field_event_date:
weight: 8
weight: 1
settings:
default_duration: 60
default_duration_increments: |-
Expand Down Expand Up @@ -78,7 +80,7 @@ content:
type: smartdate_timezone
region: content
field_event_description:
weight: 14
weight: 7
settings:
rows: 5
placeholder: ''
Expand All @@ -88,7 +90,7 @@ content:
type: text_textarea_with_summary
region: content
field_event_host:
weight: 10
weight: 2
settings:
theme: default
dots: 0
Expand All @@ -103,7 +105,7 @@ content:
region: content
field_event_link:
type: link_default
weight: 12
weight: 4
region: content
settings:
placeholder_url: ''
Expand All @@ -128,7 +130,7 @@ content:
entity_type: node
bundle: event
field_event_location:
weight: 13
weight: 5
settings:
size: 60
placeholder: ''
Expand All @@ -154,7 +156,7 @@ content:
type: string_textfield
region: content
field_event_location_logistics:
weight: 11
weight: 3
settings: { }
third_party_settings: { }
type: options_buttons
Expand All @@ -168,7 +170,7 @@ content:
type: link_default
region: content
field_event_tags:
weight: 15
weight: 8
settings:
match_operator: CONTAINS
size: 60
Expand All @@ -177,44 +179,37 @@ content:
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_meta_tags:
weight: 13
settings:
sidebar: true
third_party_settings: { }
type: metatag_firehose
region: content
field_show_on_agency_calendar:
weight: 9
weight: 6
settings:
display_label: true
third_party_settings: { }
type: boolean_checkbox
region: content
moderation_state:
type: moderation_state_default
weight: 6
weight: 10
settings: { }
region: content
third_party_settings: { }
path:
type: path
weight: 5
weight: 11
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 3
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 7
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 4
weight: 9
region: content
third_party_settings: { }
title:
Expand All @@ -227,7 +222,7 @@ content:
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 1
weight: 14
settings:
match_operator: CONTAINS
size: 60
Expand All @@ -236,8 +231,10 @@ content:
region: content
third_party_settings: { }
url_redirects:
weight: 17
weight: 12
region: content
settings: { }
third_party_settings: { }
hidden: { }
hidden:
promote: true
sticky: true
Loading

0 comments on commit 1df970f

Please sign in to comment.