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.
- enap_designsystem/blocks/__init__.py +3 -1
- enap_designsystem/blocks/html_blocks.py +7 -0
- enap_designsystem/migrations/0458_alter_areaaluno_body_alter_enapcomponentes_body_and_more.py +63230 -0
- enap_designsystem/static/enap_designsystem/blocks/banner_topicos_block.css +1 -1
- enap_designsystem/static/enap_designsystem/blocks/btn.css +19 -17
- enap_designsystem/static/enap_designsystem/blocks/cta_destaque_formacao_block.css +1 -1
- enap_designsystem/static/enap_designsystem/blocks/tags.css +0 -1
- enap_designsystem/templates/enap_designsystem/blocks/localizacao_block.html +1 -0
- enap_designsystem/templates/enap_designsystem/blocks/richtext_block_title.html +48 -0
- {wagtail_enap_designsystem-1.2.1.185.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.185.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/RECORD +14 -12
- {wagtail_enap_designsystem-1.2.1.185.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.185.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.185.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/top_level.txt +0 -0
|
@@ -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)
|