Browse Source

Use a different section heading and item label in InlinePanel

Thibaud Colas 2 years ago
parent
commit
3a85805964
3 changed files with 7 additions and 3 deletions
  1. 1 1
      bakerydemo/base/models.py
  2. 5 1
      bakerydemo/blog/models.py
  3. 1 1
      bakerydemo/locations/models.py

+ 1 - 1
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(
             [

+ 5 - 1
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"),
     ]

+ 1 - 1
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):