From 3a85805964489f8f9e226be7909410b8ae72d03d Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Mon, 28 Nov 2022 12:05:32 +0000 Subject: [PATCH] Use a different section heading and item label in InlinePanel --- bakerydemo/base/models.py | 2 +- bakerydemo/blog/models.py | 6 +++++- bakerydemo/locations/models.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bakerydemo/base/models.py b/bakerydemo/base/models.py index e21f13a..834dd99 100644 --- a/bakerydemo/base/models.py +++ b/bakerydemo/base/models.py @@ -421,7 +421,7 @@ class FormPage(AbstractEmailForm): content_panels = AbstractEmailForm.content_panels + [ FieldPanel("image"), FieldPanel("body"), - InlinePanel("form_fields", label="Form fields"), + InlinePanel("form_fields", heading="Form fields", label="Field"), FieldPanel("thank_you_text"), MultiFieldPanel( [ diff --git a/bakerydemo/blog/models.py b/bakerydemo/blog/models.py index 3d05bf4..0168a94 100644 --- a/bakerydemo/blog/models.py +++ b/bakerydemo/blog/models.py @@ -78,7 +78,11 @@ class BlogPage(Page): FieldPanel("body"), FieldPanel("date_published"), InlinePanel( - "blog_person_relationship", label="Author(s)", panels=None, min_num=1 + "blog_person_relationship", + heading="Authors", + label="Author", + panels=None, + min_num=1, ), FieldPanel("tags"), ] diff --git a/bakerydemo/locations/models.py b/bakerydemo/locations/models.py index 0e2d808..908c766 100644 --- a/bakerydemo/locations/models.py +++ b/bakerydemo/locations/models.py @@ -147,7 +147,7 @@ class LocationPage(Page): FieldPanel("body"), FieldPanel("address"), FieldPanel("lat_long"), - InlinePanel("hours_of_operation", label="Hours of Operation"), + InlinePanel("hours_of_operation", heading="Hours of Operation", label="Slot"), ] def __str__(self):