wagtail-enap-designsystem 1.2.1.177__py3-none-any.whl → 1.2.1.179__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 +2 -1
- enap_designsystem/blocks/html_blocks.py +47 -7
- enap_designsystem/migrations/0454_alter_areaaluno_body_and_more.py +82392 -0
- enap_designsystem/migrations/0455_alter_areaaluno_body_and_more.py +70710 -0
- enap_designsystem/static/enap_designsystem/blocks/cta_destaque_formacao_block.css +14 -0
- enap_designsystem/static/enap_designsystem/blocks/semana.css +1 -2
- enap_designsystem/templates/enap_designsystem/blocks/card_block.html +8 -8
- enap_designsystem/templates/enap_designsystem/blocks/card_info.html +4 -5
- enap_designsystem/templates/enap_designsystem/blocks/cta_destaque_formacao_block.html +22 -0
- enap_designsystem/templates/enap_designsystem/blocks/faq_snippet.html +1 -1
- {wagtail_enap_designsystem-1.2.1.177.dist-info → wagtail_enap_designsystem-1.2.1.179.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.177.dist-info → wagtail_enap_designsystem-1.2.1.179.dist-info}/RECORD +15 -13
- {wagtail_enap_designsystem-1.2.1.177.dist-info → wagtail_enap_designsystem-1.2.1.179.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.177.dist-info → wagtail_enap_designsystem-1.2.1.179.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.177.dist-info → wagtail_enap_designsystem-1.2.1.179.dist-info}/top_level.txt +0 -0
|
@@ -498,7 +498,8 @@ LAYOUT_STREAMBLOCKS = [
|
|
|
498
498
|
('recaptcha', RecaptchaBlock()),
|
|
499
499
|
('footer_generico', FooterGenericoBlock()),
|
|
500
500
|
("enap_section", EnapSectionBlock([
|
|
501
|
-
|
|
501
|
+
("faq_tematico", FAQSnippetBlock()),
|
|
502
|
+
("button", ButtonBlock()),
|
|
502
503
|
("image", ImageBlock()),
|
|
503
504
|
("richtext", RichTextBlock()),
|
|
504
505
|
("quote", QuoteBlock()),
|
|
@@ -4361,6 +4361,17 @@ class TextoImagemBlock(blocks.StructBlock):
|
|
|
4361
4361
|
help_text="Escolha o tamanho do botão",
|
|
4362
4362
|
label="Tamanho"
|
|
4363
4363
|
)
|
|
4364
|
+
|
|
4365
|
+
links = blocks.StreamBlock(
|
|
4366
|
+
[
|
|
4367
|
+
("button", ButtonBlock()),
|
|
4368
|
+
],
|
|
4369
|
+
max_num=3,
|
|
4370
|
+
blank=True,
|
|
4371
|
+
required=False,
|
|
4372
|
+
label="Botões (links)",
|
|
4373
|
+
help_text="Adicione até 3 botões para o card"
|
|
4374
|
+
)
|
|
4364
4375
|
|
|
4365
4376
|
# Coluna de imagem
|
|
4366
4377
|
imagem = ImageChooserBlock(
|
|
@@ -6070,6 +6081,31 @@ class CtaDestaqueBlock(blocks.StructBlock):
|
|
|
6070
6081
|
"""
|
|
6071
6082
|
Bloco para exibir informações sobre data de início da formação
|
|
6072
6083
|
"""
|
|
6084
|
+
# Ícone personalizado (opcional)
|
|
6085
|
+
icone_personalizado = ImageChooserBlock(
|
|
6086
|
+
label="Ícone Personalizado",
|
|
6087
|
+
required=False,
|
|
6088
|
+
help_text="Imagem personalizada para o ícone (opcional, padrão será ícone de relógio)"
|
|
6089
|
+
)
|
|
6090
|
+
|
|
6091
|
+
# Conteúdo
|
|
6092
|
+
descricao_imagem = blocks.RichTextBlock(
|
|
6093
|
+
label="Descrição",
|
|
6094
|
+
help_text="Texto com as informações sobre a formação",
|
|
6095
|
+
features=['bold', 'italic', 'link'],
|
|
6096
|
+
default="A formação começa no dia 15 de janeiro de 2024. Inscrições abertas até 10 de janeiro.",
|
|
6097
|
+
)
|
|
6098
|
+
|
|
6099
|
+
links_imagem = blocks.StreamBlock(
|
|
6100
|
+
[
|
|
6101
|
+
("button", ButtonBlock()),
|
|
6102
|
+
],
|
|
6103
|
+
max_num=3,
|
|
6104
|
+
blank=True,
|
|
6105
|
+
required=False,
|
|
6106
|
+
label="Botões (links)",
|
|
6107
|
+
help_text="Adicione até 3 botões para o card"
|
|
6108
|
+
)
|
|
6073
6109
|
|
|
6074
6110
|
# Configurações principais
|
|
6075
6111
|
titulo = blocks.CharBlock(
|
|
@@ -6079,13 +6115,6 @@ class CtaDestaqueBlock(blocks.StructBlock):
|
|
|
6079
6115
|
help_text="Título principal do componente"
|
|
6080
6116
|
)
|
|
6081
6117
|
|
|
6082
|
-
# Ícone personalizado (opcional)
|
|
6083
|
-
icone_personalizado = ImageChooserBlock(
|
|
6084
|
-
label="Ícone Personalizado",
|
|
6085
|
-
required=False,
|
|
6086
|
-
help_text="Imagem personalizada para o ícone (opcional, padrão será ícone de relógio)"
|
|
6087
|
-
)
|
|
6088
|
-
|
|
6089
6118
|
# Conteúdo
|
|
6090
6119
|
descricao = blocks.RichTextBlock(
|
|
6091
6120
|
label="Descrição",
|
|
@@ -6094,6 +6123,17 @@ class CtaDestaqueBlock(blocks.StructBlock):
|
|
|
6094
6123
|
default="A formação começa no dia 15 de janeiro de 2024. Inscrições abertas até 10 de janeiro.",
|
|
6095
6124
|
)
|
|
6096
6125
|
|
|
6126
|
+
links = blocks.StreamBlock(
|
|
6127
|
+
[
|
|
6128
|
+
("button", ButtonBlock()),
|
|
6129
|
+
],
|
|
6130
|
+
max_num=3,
|
|
6131
|
+
blank=True,
|
|
6132
|
+
required=False,
|
|
6133
|
+
label="Botões (links)",
|
|
6134
|
+
help_text="Adicione até 3 botões para o card"
|
|
6135
|
+
)
|
|
6136
|
+
|
|
6097
6137
|
class Meta:
|
|
6098
6138
|
template = 'enap_designsystem/blocks/cta_destaque_formacao_block.html'
|
|
6099
6139
|
icon = 'time'
|