wagtail-enap-designsystem 1.2.1.184__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 +10 -1
- enap_designsystem/migrations/0457_alter_areaaluno_body_alter_enapcomponentes_body_and_more.py +63967 -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 +9 -10
- enap_designsystem/static/enap_designsystem/blocks/btn.css +19 -17
- enap_designsystem/static/enap_designsystem/blocks/cta_destaque_formacao_block.css +4 -1
- enap_designsystem/static/enap_designsystem/blocks/tags.css +0 -1
- enap_designsystem/templates/enap_designsystem/blocks/banner_topicos_block.html +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.184.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.184.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/RECORD +16 -13
- {wagtail_enap_designsystem-1.2.1.184.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.184.dist-info → wagtail_enap_designsystem-1.2.1.186.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.184.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)
|
|
@@ -6115,7 +6122,8 @@ class CtaDestaqueBlock(blocks.StructBlock):
|
|
|
6115
6122
|
label="Título",
|
|
6116
6123
|
default="Data de Início da Formação",
|
|
6117
6124
|
max_length=100,
|
|
6118
|
-
help_text="Título principal do componente"
|
|
6125
|
+
help_text="Título principal do componente",
|
|
6126
|
+
required=False,
|
|
6119
6127
|
)
|
|
6120
6128
|
|
|
6121
6129
|
# Conteúdo
|
|
@@ -6124,6 +6132,7 @@ class CtaDestaqueBlock(blocks.StructBlock):
|
|
|
6124
6132
|
help_text="Texto com as informações sobre a formação",
|
|
6125
6133
|
features=['bold', 'italic', 'link'],
|
|
6126
6134
|
default="A formação começa no dia 15 de janeiro de 2024. Inscrições abertas até 10 de janeiro.",
|
|
6135
|
+
required=False,
|
|
6127
6136
|
)
|
|
6128
6137
|
|
|
6129
6138
|
links = blocks.StreamBlock(
|