wagtail-enap-designsystem 1.2.1.156__py3-none-any.whl → 1.2.1.158__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.
@@ -0,0 +1,43 @@
1
+ # Generated by Django 5.1.6 on 2025-09-26 18:40
2
+
3
+ from django.db import migrations
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("enap_designsystem", "0428_alter_enapformacao_body_and_more"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.RenameField(
14
+ model_name="mbaespecializacao",
15
+ old_name="content",
16
+ new_name="banner",
17
+ ),
18
+ migrations.RenameField(
19
+ model_name="mbaespecializacao",
20
+ old_name="why_choose",
21
+ new_name="beneficios",
22
+ ),
23
+ migrations.RenameField(
24
+ model_name="mbaespecializacao",
25
+ old_name="testimonials_carousel",
26
+ new_name="depoimentos",
27
+ ),
28
+ migrations.RenameField(
29
+ model_name="mbaespecializacao",
30
+ old_name="course_intro_topics",
31
+ new_name="introducao",
32
+ ),
33
+ migrations.RenameField(
34
+ model_name="mbaespecializacao",
35
+ old_name="teste_noticia",
36
+ new_name="noticia",
37
+ ),
38
+ migrations.RenameField(
39
+ model_name="mbaespecializacao",
40
+ old_name="preview_courses",
41
+ new_name="preview_dos_cursos",
42
+ ),
43
+ ]
@@ -0,0 +1,29 @@
1
+ # Generated by Django 5.1.6 on 2025-09-26 20:03
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("enap_designsystem", "0429_rename_content_mbaespecializacao_banner_and_more"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterField(
14
+ model_name="templateespecializacao",
15
+ name="status_inscricao",
16
+ field=models.CharField(
17
+ choices=[
18
+ ("abertas", "Inscrições Abertas"),
19
+ ("encerradas", "Inscrições Encerradas"),
20
+ ("em_andamento", "Curso em Andamento"),
21
+ ("finalizado", "Inscrições em breve"),
22
+ ],
23
+ default="abertas",
24
+ help_text="Define o status atual do curso/inscrições",
25
+ max_length=20,
26
+ verbose_name="Status das Inscrições",
27
+ ),
28
+ ),
29
+ ]
@@ -0,0 +1,29 @@
1
+ # Generated by Django 5.1.6 on 2025-09-26 20:03
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("enap_designsystem", "0430_alter_templateespecializacao_status_inscricao"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterField(
14
+ model_name="templateespecializacao",
15
+ name="status_inscricao",
16
+ field=models.CharField(
17
+ choices=[
18
+ ("abertas", "Inscrições Abertas"),
19
+ ("encerradas", "Inscrições Encerradas"),
20
+ ("em_andamento", "Curso em Andamento"),
21
+ ("em_breve", "Inscrições em breve"),
22
+ ],
23
+ default="abertas",
24
+ help_text="Define o status atual do curso/inscrições",
25
+ max_length=20,
26
+ verbose_name="Status das Inscrições",
27
+ ),
28
+ ),
29
+ ]
@@ -1396,29 +1396,34 @@ class MbaEspecializacao(Page):
1396
1396
  related_name="+",
1397
1397
  )
1398
1398
 
1399
- course_intro_topics = StreamField([
1399
+
1400
+ introducao = StreamField([
1400
1401
  ('course_intro_topics', CourseIntroTopicsBlock()),
1401
1402
  # Outros blocos podem ser adicionados aqui se necessário
1402
1403
  ], use_json_field=True, blank=True)
1403
1404
 
1404
- why_choose = StreamField([
1405
+
1406
+ beneficios = StreamField([
1405
1407
  # Outros blocos existentes
1406
1408
  ('why_choose', WhyChooseEnaptBlock()),
1407
1409
  ], blank=True, null=True)
1408
1410
 
1409
- testimonials_carousel = StreamField([
1411
+
1412
+ depoimentos = StreamField([
1410
1413
  # Outros blocos existentes
1411
1414
  ('testimonials_carousel', TestimonialsCarouselBlock()),
1412
1415
  ], blank=True, null=True)
1413
1416
 
1414
- preview_courses = StreamField(
1417
+
1418
+ preview_dos_cursos = StreamField(
1415
1419
  [("preview_courses", PreviewCoursesBlock())],
1416
1420
  null=True,
1417
1421
  blank=True,
1418
1422
  use_json_field=True,
1419
1423
  )
1420
1424
 
1421
- content = StreamField(
1425
+
1426
+ banner = StreamField(
1422
1427
  [
1423
1428
  ("banner", EnapBannerBlock()),
1424
1429
  ("BannerConcurso", BannerConcurso()),
@@ -1428,7 +1433,8 @@ class MbaEspecializacao(Page):
1428
1433
  use_json_field=True,
1429
1434
  )
1430
1435
 
1431
- teste_noticia = StreamField(
1436
+
1437
+ noticia = StreamField(
1432
1438
  [("noticias_carousel", NewsCarouselBlock())],
1433
1439
  null=True,
1434
1440
  blank=True,
@@ -1442,7 +1448,6 @@ class MbaEspecializacao(Page):
1442
1448
  use_json_field=True,
1443
1449
  )
1444
1450
 
1445
-
1446
1451
  footer = models.ForeignKey(
1447
1452
  "EnapFooterSnippet",
1448
1453
  null=True,
@@ -1472,55 +1477,54 @@ class MbaEspecializacao(Page):
1472
1477
  return super().can_create_at(parent)
1473
1478
 
1474
1479
  def save(self, *args, **kwargs):
1475
- # Só adiciona os blocos padrão se for uma nova página
1480
+ # Só adiciona os blocos padrão se for uma nova página
1476
1481
  if not self.pk:
1477
- # Adiciona course_intro_topics se estiver vazio
1478
- if not self.course_intro_topics:
1479
- self.course_intro_topics = [
1482
+ # Adiciona introducao se estiver vazio (antes course_intro_topics)
1483
+ if not self.introducao:
1484
+ self.introducao = [
1480
1485
  {'type': 'course_intro_topics', 'value': {}}
1481
1486
  ]
1482
1487
 
1483
- # Adiciona why_choose se estiver vazio
1484
- if not self.why_choose:
1485
- self.why_choose = [
1488
+ # Adiciona beneficios se estiver vazio (antes why_choose)
1489
+ if not self.beneficios:
1490
+ self.beneficios = [
1486
1491
  {'type': 'why_choose', 'value': {}}
1487
1492
  ]
1488
1493
 
1489
- # Adiciona testimonials_carousel se estiver vazio
1490
- if not self.testimonials_carousel:
1491
- self.testimonials_carousel = [
1494
+ # Adiciona depoimentos se estiver vazio (antes testimonials_carousel)
1495
+ if not self.depoimentos:
1496
+ self.depoimentos = [
1492
1497
  {'type': 'testimonials_carousel', 'value': {}}
1493
1498
  ]
1494
1499
 
1495
- # Adiciona preview_courses se estiver vazio
1496
- if not self.preview_courses:
1497
- self.preview_courses = [
1500
+ # Adiciona preview_dos_cursos se estiver vazio (antes preview_courses)
1501
+ if not self.preview_dos_cursos:
1502
+ self.preview_dos_cursos = [
1498
1503
  {'type': 'preview_courses', 'value': {}}
1499
1504
  ]
1500
1505
 
1501
- # Adiciona banner no content se estiver vazio
1502
- if not self.content:
1503
- self.content = [
1506
+ # Adiciona banner no content se estiver vazio (antes content)
1507
+ if not self.banner:
1508
+ self.banner = [
1504
1509
  {'type': 'banner', 'value': {}}
1505
1510
  ]
1506
1511
 
1507
- # Adiciona noticias_carousel se estiver vazio
1508
- if not self.teste_noticia:
1509
- self.teste_noticia = [
1512
+ # Adiciona noticia se estiver vazio (antes teste_noticia)
1513
+ if not self.noticia:
1514
+ self.noticia = [
1510
1515
  {'type': 'noticias_carousel', 'value': {}}
1511
1516
  ]
1512
-
1517
+
1513
1518
  super().save(*args, **kwargs)
1514
1519
 
1515
-
1516
1520
  content_panels = Page.content_panels + [
1517
1521
  FieldPanel('navbar'),
1518
- FieldPanel('content'),
1519
- FieldPanel('course_intro_topics'),
1520
- FieldPanel('why_choose'),
1521
- FieldPanel('testimonials_carousel'),
1522
- FieldPanel('preview_courses'),
1523
- FieldPanel('teste_noticia'),
1522
+ FieldPanel('banner'),
1523
+ FieldPanel('introducao'),
1524
+ FieldPanel('beneficios'),
1525
+ FieldPanel('preview_dos_cursos'),
1526
+ FieldPanel('depoimentos'),
1527
+ FieldPanel('noticia'),
1524
1528
  FieldPanel('cards'),
1525
1529
  FieldPanel("footer"),
1526
1530
  ]
@@ -1640,7 +1644,7 @@ class TemplateEspecializacao(Page):
1640
1644
  ('abertas', 'Inscrições Abertas'),
1641
1645
  ('encerradas', 'Inscrições Encerradas'),
1642
1646
  ('em_andamento', 'Curso em Andamento'),
1643
- ('finalizado', 'Curso Finalizado'),
1647
+ ('em_breve', 'Inscrições em breve'),
1644
1648
  ]
1645
1649
 
1646
1650
  status_inscricao = models.CharField(
@@ -496,6 +496,7 @@ z-index: 1;
496
496
  position: relative;
497
497
  overflow: hidden;
498
498
  border-radius: 20px;
499
+ height: 200px;
499
500
  }
500
501
 
501
502
  .srv-card-image {
@@ -38,9 +38,9 @@
38
38
  <div class="status-badge status-andamento">
39
39
  Curso em Andamento
40
40
  </div>
41
- {% elif course_specific.status_inscricao == 'finalizado' %}
41
+ {% elif course_specific.status_inscricao == 'em_breve' %}
42
42
  <div class="status-badge status-finalizado">
43
- Curso Finalizado
43
+ Em breve
44
44
  </div>
45
45
  {% endif %}
46
46
  {% endif %}
@@ -45,7 +45,7 @@
45
45
 
46
46
  <section class="banner-hero">
47
47
  <div>
48
- {% for block in page.content %}
48
+ {% for block in page.banner %}
49
49
  <div class="block">
50
50
  {{ block }} {# Renderiza cada bloco do StreamField diretamente #}
51
51
  </div>
@@ -56,20 +56,20 @@
56
56
  </section>
57
57
 
58
58
  <section>
59
- {% for block in page.course_intro_topics %}
59
+ {% for block in page.introducao %}
60
60
  {% include_block block %}
61
61
  {% endfor %}
62
62
  </section>
63
63
 
64
64
  <section>
65
- {% for block in page.why_choose %}
65
+ {% for block in page.beneficios %}
66
66
  {% include_block block %}
67
67
  {% endfor %}
68
68
  </section>
69
69
 
70
70
  <section>
71
71
  <div>
72
- {% for block in page.preview_courses %}
72
+ {% for block in page.preview_dos_cursos %}
73
73
  {{ block }} {# Renderiza cada bloco no StreamField 'teste_preview' #}
74
74
  {% empty %}
75
75
 
@@ -79,15 +79,15 @@
79
79
  </section>
80
80
 
81
81
  <section>
82
- {% for block in page.testimonials_carousel %}
82
+ {% for block in page.depoimentos %}
83
83
  {% include_block block %}
84
84
  {% endfor %}
85
85
  </section>
86
86
 
87
87
  <!-- Cards noticias -->
88
88
  <section class="section-noticias">
89
- {% for block in page.teste_noticia %}
90
- {% if block.block_type == "noticias_carousel" %}
89
+ {% for block in page.noticia %}
90
+ {% if block.block_type == "noticia" %}
91
91
  {{ block }} {# Renderiza o bloco de carrossel de notícias #}
92
92
  {% else %}
93
93
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wagtail-enap-designsystem
3
- Version: 1.2.1.156
3
+ Version: 1.2.1.158
4
4
  Summary: Módulo de componentes utilizado nos portais ENAP, desenvolvido com Wagtail + CodeRedCMS
5
5
  Author: Renan Campos
6
6
  Author-email: renan.oliveira@enap.gov.br
@@ -1,7 +1,7 @@
1
1
  enap_designsystem/__init__.py,sha256=_SM5n--8zkHIEZfCoc7wEfm6hQT8cuATZSRlLdrD7Rg,68
2
2
  enap_designsystem/apps.py,sha256=psX3YlGfqmPsaZZzRL4cpDTGvjwfNJT_0Vvizc_LIEg,226
3
3
  enap_designsystem/context_processors.py,sha256=ooXzfb2EnzczH4H2M-uz__97u8yKHc3LOJUu0LfxREE,1475
4
- enap_designsystem/models.py,sha256=as6rp-1xUYaLXdtOzSM4izwyRdQTyaJCz9-kx8nxr70,182980
4
+ enap_designsystem/models.py,sha256=T4GH_NHHMenfgftIDgipnwZ_R1ULN4Fdvdw8UGcl51s,182984
5
5
  enap_designsystem/settings.py,sha256=gCkWCK4QZlD8i82G8v7aHhKz954KFkY6xdhKNw9CCpw,993
6
6
  enap_designsystem/signals.py,sha256=oaHpZms4Dkc97ql-55Q0QxU7-45jwg2Y1XoRDOJ45tc,1978
7
7
  enap_designsystem/urls.py,sha256=EJ52w-55BysQU5pTZR4ltMtZM7aSKyjZdnQDGFipDXY,2219
@@ -466,6 +466,9 @@ enap_designsystem/migrations/0425_alter_areaaluno_body_alter_cursoeadpage_curso_
466
466
  enap_designsystem/migrations/0426_alter_areaaluno_body_and_more.py,sha256=6ndvNQC_8bCTGFCwZQf0h_zHZ9V-G-NHpIDdBLOHRTE,2583764
467
467
  enap_designsystem/migrations/0427_alter_enapformacao_body_and_more.py,sha256=x-Yud8ETy95LkoFneSzrav7Q6IL2kpuvlxyJGvJ8mxI,62607
468
468
  enap_designsystem/migrations/0428_alter_enapformacao_body_and_more.py,sha256=pyy0op21n97nbI7KDl2ob7YJot3xicxg5q_a0jEU76g,62514
469
+ enap_designsystem/migrations/0429_rename_content_mbaespecializacao_banner_and_more.py,sha256=xsUfW9XLe1tLwyaYxEB3XVsre8DIZjprYAsGhGt0pl8,1218
470
+ enap_designsystem/migrations/0430_alter_templateespecializacao_status_inscricao.py,sha256=zC9Tm_da9WCbv53mBXVbzwk3TdlIwxx-1AjGkgC_EV8,933
471
+ enap_designsystem/migrations/0431_alter_templateespecializacao_status_inscricao.py,sha256=JaoPVGkprrpQtRRd0nvcxEeNT1y7xNB786xqLwey4tg,928
469
472
  enap_designsystem/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
470
473
  enap_designsystem/search_backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
471
474
  enap_designsystem/search_backends/custom_elasticsearch.py,sha256=LeQT0_dJmNMTY7l3jOJ_7mJ9-2X0oXVqvxRiXEA0qGY,988
@@ -554,7 +557,7 @@ enap_designsystem/static/enap_designsystem/blocks/topic_links_block.css,sha256=I
554
557
  enap_designsystem/static/enap_designsystem/blocks/why_choose.css,sha256=nhzTUBt68Ba72WOq3YtS_PB1IUAE94f_cWGzcNoRaYA,1531
555
558
  enap_designsystem/static/enap_designsystem/blocks/wizard.css,sha256=Kmn9UygR3KFlkLxl4vfe0KurLaftAdcpYzpNLC-Epb4,1567
556
559
  enap_designsystem/static/enap_designsystem/blocks/navbar/navbar.css,sha256=z2NWNByrLmgoHMZTBkT_w1brfcNAGCL43zaWjBgmy10,5591
557
- enap_designsystem/static/enap_designsystem/blocks/pages/page_search.css,sha256=SNWfF3QsvOdMvZVbaOcLqcyUGuAb183-bVH808kCZeQ,15574
560
+ enap_designsystem/static/enap_designsystem/blocks/pages/page_search.css,sha256=snGDhGeqAQteQveY4HABCDMibDdKol4DBS5iCtv9Z8E,15593
558
561
  enap_designsystem/static/enap_designsystem/blocks/pages/page_search.js,sha256=Y8Glb6rYO0nYQS9ry9-7__XvvXF6fGHwUSEVS9VslTI,4717
559
562
  enap_designsystem/static/enap_designsystem/blocks/pages/template_cursos.css,sha256=f7oyQwzbkCU_aNdSSEqJ62_irFNC1h82Y47p3DppDso,415
560
563
  enap_designsystem/static/enap_designsystem/blocks/pages/template_especializacao.css,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -744,7 +747,7 @@ enap_designsystem/templates/enap_designsystem/blocks/navbarv3.html,sha256=nagcfc
744
747
  enap_designsystem/templates/enap_designsystem/blocks/numeros_block.html,sha256=IfXUa13DxCFQKnfjaZd7IN42hcluDf-Xipxo5A1bnYg,2311
745
748
  enap_designsystem/templates/enap_designsystem/blocks/ouvidoria_block.html,sha256=ivehDQbJd1VAdyTHdHU1wkjkWMCQ2SnoOrZRWScfH9w,3634
746
749
  enap_designsystem/templates/enap_designsystem/blocks/pagination.html,sha256=ngRTn0fxMYuDOw0MD6VHAmu0VqQMx_A8oDUCdqBRanI,3308
747
- enap_designsystem/templates/enap_designsystem/blocks/preview_courses.html,sha256=TV6GH_CCEpQUmdEJMqCzVyKS2KSWpEP8mnosYoJsp4Y,13344
750
+ enap_designsystem/templates/enap_designsystem/blocks/preview_courses.html,sha256=BSb1u8AQfPUDd3ZMWCkEi781Q5fsvEcwxDA7gOAOfyk,13334
748
751
  enap_designsystem/templates/enap_designsystem/blocks/programa_card.html,sha256=nK4hMkEd6FZaEtWOz7QWOTA0iq9_3g4kXXvOcYIZKBo,1034
749
752
  enap_designsystem/templates/enap_designsystem/blocks/programa_cards.html,sha256=pWiTQuE6H4Zewdi72aMHq48Uz0-KDURQKbv4pEt1k7w,9543
750
753
  enap_designsystem/templates/enap_designsystem/blocks/quote_block.html,sha256=x_hWs1npc987dSAx_lP30oJNaMRqTixy7M74_F6XMpg,347
@@ -808,7 +811,7 @@ enap_designsystem/templates/enap_designsystem/pages/curso_ead.html,sha256=54JDGk
808
811
  enap_designsystem/templates/enap_designsystem/pages/durante_evento.html,sha256=cp5Z9KHmNvj5nAMVuUJWxu6lPqjs5GRP8raASp5Tw6U,9876
809
812
  enap_designsystem/templates/enap_designsystem/pages/enap_layout.html,sha256=JqS4oXQrNLQaPc4HMYRmZu8LlevuRUl_Hyf2d8XMugM,1961
810
813
  enap_designsystem/templates/enap_designsystem/pages/enap_layout_semana.html,sha256=nZV71dI5MiM2CC6vbcKAX2H0fuqBsz2jvSOwtODEluU,1969
811
- enap_designsystem/templates/enap_designsystem/pages/mba_especializacao.html,sha256=GwurtlZ6OsvRAz_LcBQ0zr9ez20tplyiDPTCtuMLGuM,6331
814
+ enap_designsystem/templates/enap_designsystem/pages/mba_especializacao.html,sha256=YBFfX_xSCvLs3YYXy7Vw2mhdjrmAuO_YPRkHQdn5KtY,6298
812
815
  enap_designsystem/templates/enap_designsystem/pages/page_search.html,sha256=GqQj7vmXynoLtjw9nmLMthHBguLLOOXEndu0W0MX2tM,50103
813
816
  enap_designsystem/templates/enap_designsystem/pages/pagepreview_block.html,sha256=RBqtL0rphuSh5Bi4XPPtXlGUf_zyWFPZY3xwJb8hhZM,235
814
817
  enap_designsystem/templates/enap_designsystem/pages/pos_evento.html,sha256=BWRdoOJuTPWetwQeTfkygvpMVSMQqBG8QK_AbHKBqKw,3273
@@ -886,8 +889,8 @@ enap_designsystem/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
886
889
  enap_designsystem/utils/decorators.py,sha256=aq6SbLn0LcH2rfE3ZFit8jkD7pSx9fLVBUUwVB747hg,335
887
890
  enap_designsystem/utils/services.py,sha256=6dG5jLSbwH49jpZV9ZNpWlaZqI49gTlwlr1vaerxdiU,5824
888
891
  enap_designsystem/utils/sso.py,sha256=vjAuoYgoLeQAa_dkkyQ6-LmHvKMaVCxizNFpe5y3iUA,1145
889
- wagtail_enap_designsystem-1.2.1.156.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
890
- wagtail_enap_designsystem-1.2.1.156.dist-info/METADATA,sha256=D1B34LLV0jIcDj5-KHexR_e0vyXi-qv1lWsmcK_x_1M,3651
891
- wagtail_enap_designsystem-1.2.1.156.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
892
- wagtail_enap_designsystem-1.2.1.156.dist-info/top_level.txt,sha256=RSFgMASxoA-hVftm5i4Qd0rArlX4Dq08lLv5G4sYD-g,18
893
- wagtail_enap_designsystem-1.2.1.156.dist-info/RECORD,,
892
+ wagtail_enap_designsystem-1.2.1.158.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
893
+ wagtail_enap_designsystem-1.2.1.158.dist-info/METADATA,sha256=3MT3IyBByb7zooJIFevmr43UrDbE14jBxNAB11o8FCA,3651
894
+ wagtail_enap_designsystem-1.2.1.158.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
895
+ wagtail_enap_designsystem-1.2.1.158.dist-info/top_level.txt,sha256=RSFgMASxoA-hVftm5i4Qd0rArlX4Dq08lLv5G4sYD-g,18
896
+ wagtail_enap_designsystem-1.2.1.158.dist-info/RECORD,,