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

Task/cdd 2285 add new subtitle and about label #2204

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
14 changes: 12 additions & 2 deletions cms/dynamic_content/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ class Meta:

class ChartWithHeadlineAndTrendCard(blocks.StructBlock):
title = blocks.TextBlock(required=True, help_text=help_texts.TITLE_FIELD)
body = blocks.TextBlock(required=False, help_text=help_texts.OPTIONAL_BODY_FIELD)
body = blocks.TextBlock(
required=False, help_text=help_texts.OPTIONAL_BODY_FIELD, label="Subtitle"
)
about = blocks.TextBlock(
required=False, help_text=help_texts.OPTIONAL_CHART_ABOUT_FIELD
)
tag_manager_event_id = blocks.CharBlock(
required=False,
help_text=help_texts.TAG_MANAGER_EVENT_ID_FIELD,
Expand Down Expand Up @@ -187,7 +192,12 @@ class Meta:

class ChartCard(blocks.StructBlock):
title = blocks.TextBlock(required=True, help_text=help_texts.TITLE_FIELD)
body = blocks.TextBlock(required=False, help_text=help_texts.OPTIONAL_BODY_FIELD)
body = blocks.TextBlock(
required=False, help_text=help_texts.OPTIONAL_BODY_FIELD, label="Subtitle"
)
about = blocks.TextBlock(
required=False, default="", help_text=help_texts.OPTIONAL_CHART_ABOUT_FIELD
)
tag_manager_event_id = blocks.CharBlock(
required=False,
help_text=help_texts.TAG_MANAGER_EVENT_ID_FIELD,
Expand Down
6 changes: 5 additions & 1 deletion cms/dynamic_content/help_texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,12 @@
The sub title to display for this component.
"""

OPTIONAL_CHART_ABOUT_FIELD: str = """
An optional body of text to accompany this block. This text will be displayed in the about content of the chart.
"""

OPTIONAL_BODY_FIELD: str = """
An optional body of text to accompany this block.
An optional body of text to accompany this block. This text will be displayed below the chart title.
"""

REQUIRED_BODY_FIELD: str = """
Expand Down
Loading