wagtail-enap-designsystem 1.2.1.193__py3-none-any.whl → 1.2.1.195__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/content_blocks.py +11 -0
- enap_designsystem/blocks/layout_blocks.py +14 -1
- enap_designsystem/migrations/0465_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +64768 -0
- enap_designsystem/migrations/0466_carouselresponsivo_largura_container.py +29 -0
- enap_designsystem/migrations/0467_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +82760 -0
- enap_designsystem/migrations/0468_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +82575 -0
- enap_designsystem/static/enap_designsystem/blocks/banner_topicos_block.css +1 -1
- enap_designsystem/static/enap_designsystem/blocks/btn.css +21 -1
- enap_designsystem/static/enap_designsystem/blocks/capsulas.css +828 -88
- enap_designsystem/static/enap_designsystem/blocks/carousel_responsive.css +9 -27
- enap_designsystem/static/enap_designsystem/blocks/carousel_responsivo_snippet.css +19 -27
- enap_designsystem/static/enap_designsystem/blocks/semana.css +0 -1
- enap_designsystem/static/enap_designsystem/blocks/texto_imagem.css +0 -1
- enap_designsystem/templates/enap_designsystem/base.html +0 -4
- enap_designsystem/templates/enap_designsystem/blocks/carousel_responsive.html +0 -3
- enap_designsystem/templates/enap_designsystem/blocks/carousel_responsivo_snippet.html +91 -57
- enap_designsystem/templates/enap_designsystem/blocks/legislacao_block.html +1 -1
- enap_designsystem/templates/enap_designsystem/blocks/richtext_block.html +116 -49
- enap_designsystem/templates/enap_designsystem/form_templates/formulario_page.html +10 -5
- enap_designsystem/templates/enap_designsystem/form_templates/formulario_page_landing.html +0 -1
- enap_designsystem/templates/enap_designsystem/form_templates/formulario_page_success.html +0 -1
- enap_designsystem/templates/enap_designsystem/includes/form_field.html +2 -2
- enap_designsystem/templates/enap_designsystem/pages/capsula_index_page.html +62 -54
- enap_designsystem/templates/enap_designsystem/pages/capsula_page.html +288 -100
- enap_designsystem/templates/enap_designsystem/pages/quiz_rota_page.html +314 -829
- {wagtail_enap_designsystem-1.2.1.193.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.193.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/RECORD +30 -26
- {wagtail_enap_designsystem-1.2.1.193.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.193.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.193.dist-info → wagtail_enap_designsystem-1.2.1.195.dist-info}/top_level.txt +0 -0
|
@@ -604,6 +604,16 @@ class CarouselResponsivo(models.Model):
|
|
|
604
604
|
default='400px',
|
|
605
605
|
help_text="Altura do carrossel em telas mobile"
|
|
606
606
|
)
|
|
607
|
+
|
|
608
|
+
largura_container = models.CharField(
|
|
609
|
+
max_length=20,
|
|
610
|
+
choices=[
|
|
611
|
+
('limitador', 'Com margem (limitado)'),
|
|
612
|
+
('tela_toda', 'Tela toda (100%)'),
|
|
613
|
+
],
|
|
614
|
+
default='limitador',
|
|
615
|
+
help_text="Define se o carrossel terá margens ou ocupará toda a largura da tela"
|
|
616
|
+
)
|
|
607
617
|
|
|
608
618
|
efeito_transicao = models.CharField(
|
|
609
619
|
max_length=20,
|
|
@@ -626,6 +636,7 @@ class CarouselResponsivo(models.Model):
|
|
|
626
636
|
MultiFieldPanel([
|
|
627
637
|
FieldPanel('altura_desktop'),
|
|
628
638
|
FieldPanel('altura_mobile'),
|
|
639
|
+
FieldPanel('largura_container'),
|
|
629
640
|
], heading="Dimensões"),
|
|
630
641
|
MultiFieldPanel([
|
|
631
642
|
FieldPanel('mostrar_navegacao'),
|
|
@@ -204,11 +204,24 @@ class EnapSectionBlock(BaseLayoutBlock):
|
|
|
204
204
|
features=["bold", "italic", "ol", "ul", "hr", "link", "document-link"],
|
|
205
205
|
label=_("Subtitulo"),
|
|
206
206
|
)
|
|
207
|
+
|
|
208
|
+
def get_admin_text(self):
|
|
209
|
+
"""
|
|
210
|
+
Retorna texto personalizado para exibição no admin
|
|
211
|
+
Mostra o título da seção para facilitar identificação
|
|
212
|
+
"""
|
|
213
|
+
title = self.get('title')
|
|
214
|
+
if title:
|
|
215
|
+
return f"Seção: {title}"
|
|
216
|
+
return "Seção (sem título)"
|
|
207
217
|
|
|
208
218
|
class Meta:
|
|
209
219
|
template = "enap_designsystem/blocks/section_block.html"
|
|
210
|
-
icon = "
|
|
220
|
+
icon = "pilcrow"
|
|
211
221
|
label = _("Enap Section Block")
|
|
222
|
+
verbose_name = _("Seção com Título e Subtítulo")
|
|
223
|
+
form_classname = "struct-block enap-section-block"
|
|
224
|
+
admin_text = "Conteúdo: {{paragraph|truncatechars:50}}"
|
|
212
225
|
|
|
213
226
|
|
|
214
227
|
|