form_classname argument on StreamField blocks

This commit is contained in:
datalets 2020-12-11 11:46:24 +01:00
parent 32cb2abca2
commit 4829847313

View file

@ -118,7 +118,7 @@ class ArticlePage(Page):
body_de = StreamField([ body_de = StreamField([
('paragraph', RichTextBlock()), ('paragraph', RichTextBlock()),
('section', CharBlock(classname="full title")), ('section', CharBlock(form_classname="full title")),
('info', InfoBlock(icon='help')), ('info', InfoBlock(icon='help')),
('media', ChoiceBlock(choices=[ ('media', ChoiceBlock(choices=[
('gallery', 'Image gallery'), ('gallery', 'Image gallery'),
@ -126,7 +126,7 @@ class ArticlePage(Page):
], null=True, blank=True) ], null=True, blank=True)
body_fr = StreamField([ body_fr = StreamField([
('paragraph', RichTextBlock()), ('paragraph', RichTextBlock()),
('section', CharBlock(classname="full title")), ('section', CharBlock(form_classname="full title")),
('info', InfoBlock(icon='help')), ('info', InfoBlock(icon='help')),
('media', ChoiceBlock(choices=[ ('media', ChoiceBlock(choices=[
('gallery', 'Image gallery'), ('gallery', 'Image gallery'),
@ -134,7 +134,7 @@ class ArticlePage(Page):
], null=True, blank=True) ], null=True, blank=True)
body_en = StreamField([ body_en = StreamField([
('paragraph', RichTextBlock()), ('paragraph', RichTextBlock()),
('section', CharBlock(classname="full title")), ('section', CharBlock(form_classname="full title")),
('info', InfoBlock(icon='help')), ('info', InfoBlock(icon='help')),
('media', ChoiceBlock(choices=[ ('media', ChoiceBlock(choices=[
('gallery', 'Image gallery'), ('gallery', 'Image gallery'),