wagtail-enap-designsystem 1.2.1.185__py3-none-any.whl → 1.2.1.186__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wagtail-enap-designsystem might be problematic. Click here for more details.

@@ -139,7 +139,7 @@ from .html_blocks import ClientesBlock
139
139
  from .html_blocks import VideoHeroBannerBlock
140
140
 
141
141
 
142
- from .html_blocks import ButtonBlock, ImageBlock, RichTextBlock, QuoteBlock
142
+ from .html_blocks import ButtonBlock, ImageBlock, RichTextBlock, QuoteBlock, RichTitleBlock
143
143
  from .html_blocks import DownloadBlock, ImageLinkBlock, PageListBlock
144
144
 
145
145
  # Depois: imports que dependem dos básicos
@@ -502,6 +502,7 @@ LAYOUT_STREAMBLOCKS = [
502
502
  ("button", ButtonBlock()),
503
503
  ("image", ImageBlock()),
504
504
  ("richtext", RichTextBlock()),
505
+ ("richtexttitle", RichTitleBlock()),
505
506
  ("quote", QuoteBlock()),
506
507
  ('menus', MenuNavigationBlock()),
507
508
  ('buttoncenter', ButtonCenter()),
@@ -540,6 +541,7 @@ LAYOUT_STREAMBLOCKS = [
540
541
  ("enap_accordion", EnapAccordionBlock()),
541
542
 
542
543
  ("richtext", RichTextBlock()),
544
+
543
545
  ("button", ButtonBlock()),
544
546
  ("image", ImageBlock()),
545
547
  ("quote", QuoteBlock()),
@@ -1758,6 +1758,13 @@ class RichTextBlock(blocks.RichTextBlock):
1758
1758
  label = 'Texto'
1759
1759
 
1760
1760
 
1761
+ class RichTitleBlock(blocks.RichTextBlock):
1762
+ class Meta:
1763
+ template = 'enap_designsystem/blocks/richtext_block_title.html'
1764
+ icon = 'doc-full'
1765
+ label = 'Titulo'
1766
+
1767
+
1761
1768
  class ImageBlock(blocks.StructBlock):
1762
1769
  image = ImageChooserBlock(required=True)
1763
1770
  caption = blocks.CharBlock(required=False)