wagtail-enap-designsystem 1.2.1.154__py3-none-any.whl → 1.2.1.156__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 +1 -0
- enap_designsystem/blocks/html_blocks.py +21 -1
- enap_designsystem/migrations/0425_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +66102 -0
- enap_designsystem/migrations/0426_alter_areaaluno_body_and_more.py +57537 -0
- enap_designsystem/migrations/0427_alter_enapformacao_body_and_more.py +1448 -0
- enap_designsystem/migrations/0428_alter_enapformacao_body_and_more.py +1445 -0
- enap_designsystem/models.py +1 -1
- enap_designsystem/static/enap_designsystem/blocks/feature_course.css +1 -0
- enap_designsystem/templates/admin/meta_tags_manager.html +1 -1
- enap_designsystem/templates/enap_designsystem/base.html +101 -0
- enap_designsystem/templates/enap_designsystem/blocks/carousel_images.html +46 -6
- enap_designsystem/templates/enap_designsystem/blocks/course_intro_topics.html +0 -1
- enap_designsystem/templates/enap_designsystem/blocks/job_vacancy_page.html +1 -1
- enap_designsystem/templates/enap_designsystem/blocks/section_block.html +1 -1
- enap_designsystem/templates/enap_designsystem/blocks/simple_dashboard_container.html +1 -1
- enap_designsystem/templates/enap_designsystem/pages/404.html +1 -1
- enap_designsystem/templates/enap_designsystem/pages/article/enap_noticia.html +2 -1
- enap_designsystem/views.py +1 -1
- enap_designsystem/wagtail_hooks.py +1 -1
- {wagtail_enap_designsystem-1.2.1.154.dist-info → wagtail_enap_designsystem-1.2.1.156.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.154.dist-info → wagtail_enap_designsystem-1.2.1.156.dist-info}/RECORD +24 -20
- {wagtail_enap_designsystem-1.2.1.154.dist-info → wagtail_enap_designsystem-1.2.1.156.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.154.dist-info → wagtail_enap_designsystem-1.2.1.156.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.154.dist-info → wagtail_enap_designsystem-1.2.1.156.dist-info}/top_level.txt +0 -0
|
@@ -766,6 +766,7 @@ DYNAMIC_CARD_STREAMBLOCKS = [
|
|
|
766
766
|
CARD_CARDS_STREAMBLOCKS = [
|
|
767
767
|
(
|
|
768
768
|
"enap_section", EnapSectionBlock([
|
|
769
|
+
("accordion", EnapAccordionBlock()),
|
|
769
770
|
("enap_cardgrid", EnapCardGridBlock([
|
|
770
771
|
("enap_card", EnapCardBlock()),
|
|
771
772
|
("richtext", RichTextBlock()),
|
|
@@ -3940,7 +3940,17 @@ class TextoImagemBlock(blocks.StructBlock):
|
|
|
3940
3940
|
texto = blocks.RichTextBlock(
|
|
3941
3941
|
required=True,
|
|
3942
3942
|
help_text="Conteúdo em texto",
|
|
3943
|
-
verbose_name="Texto"
|
|
3943
|
+
verbose_name="Texto",
|
|
3944
|
+
features=[
|
|
3945
|
+
'h2', 'h3', 'h4', # Títulos
|
|
3946
|
+
'bold', 'italic', # Formatação básica
|
|
3947
|
+
'ol', 'ul', # Listas
|
|
3948
|
+
'link', 'document-link', # Links
|
|
3949
|
+
'blockquote', # Citação
|
|
3950
|
+
'embed', # Embeds
|
|
3951
|
+
'hr', # Linha horizontal
|
|
3952
|
+
'code', # Código inline
|
|
3953
|
+
]
|
|
3944
3954
|
)
|
|
3945
3955
|
|
|
3946
3956
|
# Configuração de botão (opcional)
|
|
@@ -6095,6 +6105,16 @@ class EnapCarouselImagesBlock(blocks.StructBlock):
|
|
|
6095
6105
|
max_num=50,
|
|
6096
6106
|
help_text="Adicione os slides do carrossel"
|
|
6097
6107
|
)
|
|
6108
|
+
|
|
6109
|
+
largura_container = blocks.ChoiceBlock(
|
|
6110
|
+
label="Largura do Container",
|
|
6111
|
+
choices=[
|
|
6112
|
+
('limitador', 'Com margem (limitado)'),
|
|
6113
|
+
('tela_toda', 'Tela toda (100%)'),
|
|
6114
|
+
],
|
|
6115
|
+
default='limitador',
|
|
6116
|
+
help_text="Define se o carrossel terá margens ou ocupará toda a largura da tela"
|
|
6117
|
+
)
|
|
6098
6118
|
|
|
6099
6119
|
# Configurações do Carrossel
|
|
6100
6120
|
altura_desktop = blocks.ChoiceBlock(
|