wagtail-enap-designsystem 1.2.1.99__py3-none-any.whl → 1.2.1.101__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.

@@ -510,6 +510,7 @@ LAYOUT_STREAMBLOCKS = [
510
510
  ('card_curso', CardCursoBlock()),
511
511
  ("richtext", RichTextBlock()),
512
512
  ("enap_accordion", EnapAccordionBlock()),
513
+
513
514
  ("richtext", RichTextBlock()),
514
515
  ("button", ButtonBlock()),
515
516
  ("image", ImageBlock()),
@@ -613,7 +614,7 @@ LAYOUT_STREAMBLOCKS = [
613
614
  ("paragraph", blocks.RichTextBlock(template='blocks/paragraph.html')),
614
615
  ])),
615
616
  ])),
616
- ], label="🏗️ Seção ENAP Completa")),
617
+ ], required=False, blank=True, label="🏗️ Seção ENAP Completa")),
617
618
 
618
619
  ("enap_accordion", EnapAccordionBlock()),
619
620
  ("richtext", RichTextBlock()),
@@ -700,6 +700,8 @@ class SuapCourseBlock(StructBlock):
700
700
  class APISuapCourseBlock(StructBlock):
701
701
  title = CharBlock(required=False, label="Título")
702
702
  description = CharBlock(required=False, label="Descrição")
703
+ button = CharBlock(required=False, label="Titulo do Botão")
704
+ url_button = URLBlock(required=False, label="Link do Botão")
703
705
  api_url = blocks.URLBlock(
704
706
  default="https://suap.enap.gov.br/portal/api/v3/cursosAltosExecutivos?format=json",
705
707
  label="URL da API",
@@ -209,6 +209,7 @@ class EnapSectionBlock(BaseLayoutBlock):
209
209
  icon = "cr-th-large"
210
210
  label = _("Enap Section Block")
211
211
 
212
+
212
213
 
213
214
 
214
215
  class HeroBlock(BaseLayoutBlock):