Use a different section heading and item label in InlinePanel

pull/375/head
Thibaud Colas 2022-11-28 12:05:32 +00:00
rodzic 9bf38d9e35
commit 3a85805964
3 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -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(
[

Wyświetl plik

@ -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"),
]

Wyświetl plik

@ -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):