Skip to content

Commit

Permalink
updated help text and panel format
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfmiranda committed Sep 27, 2024
1 parent 6eac9bf commit 5579069
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ class Migration(migrations.Migration):
name="donate_banner",
field=models.ForeignKey(
blank=True,
help_text="Select the Donate Banner to display on the homepage",
null=True,
help_text=(
"CTA Banner rendered at the top of the page site-wide. "
"Note: A/B testing of this banner will also be site-wide."
),
on_delete=django.db.models.deletion.SET_NULL,
related_name="homepage_donate_banner",
to="donate_banner.donatebanner",
Expand Down
12 changes: 11 additions & 1 deletion network-api/networkapi/wagtailpages/pagemodels/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,10 @@ class Homepage(FoundationMetadataPageMixin, Page):
blank=True,
on_delete=models.SET_NULL,
related_name="homepage_donate_banner",
help_text="Select the Donate Banner to display on the homepage",
help_text=(
"CTA Banner rendered at the top of the page site-wide. "
"Note: A/B testing of this banner will also be site-wide."
),
)
hero_headline = models.CharField(
max_length=120,
Expand Down Expand Up @@ -899,6 +902,13 @@ def get_banner(self):
take_action_title = models.CharField(default="Take action", max_length=50)

content_panels = Page.content_panels + [
MultiFieldPanel(
[
FieldPanel("donate_banner"),
],
heading="Donate Banner",
classname="collapsible",
),
MultiFieldPanel(
[
FieldPanel("donate_banner"),
Expand Down

0 comments on commit 5579069

Please sign in to comment.