kopia lustrzana https://github.com/wagtail/bakerydemo
Use a different section heading and item label in InlinePanel
rodzic
9bf38d9e35
commit
3a85805964
|
@ -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(
|
||||
[
|
||||
|
|
|
@ -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"),
|
||||
]
|
||||
|
|
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue