wagtail-enap-designsystem 1.2.1.149__py3-none-any.whl → 1.2.1.151__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.
- enap_designsystem/blocks/__init__.py +11 -1
- enap_designsystem/blocks/html_blocks.py +280 -6
- enap_designsystem/migrations/0418_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +68713 -0
- enap_designsystem/migrations/0419_alter_areaaluno_body_alter_enapcomponentes_body_and_more.py +55302 -0
- enap_designsystem/migrations/0420_alter_areaaluno_body_alter_enapcomponentes_body_and_more.py +55610 -0
- enap_designsystem/migrations/0421_footergenericosnippet.py +111 -0
- enap_designsystem/migrations/0422_alter_footergenericosnippet_options.py +20 -0
- enap_designsystem/migrations/0423_alter_areaaluno_body_alter_enapcomponentes_body_and_more.py +55647 -0
- enap_designsystem/models.py +115 -1
- enap_designsystem/static/enap_designsystem/blocks/cards_titles.css +3 -3
- enap_designsystem/static/enap_designsystem/blocks/suap/default_3.png +0 -0
- enap_designsystem/templates/enap_designsystem/blocks/card_item_variavel.html +54 -0
- enap_designsystem/templates/enap_designsystem/blocks/cards_titles.html +56 -62
- enap_designsystem/templates/enap_designsystem/blocks/footer_snippet.html +88 -0
- enap_designsystem/templates/enap_designsystem/blocks/formulario_dinamico.html +14 -1
- enap_designsystem/templates/enap_designsystem/blocks/html_custom_block.html +1 -1
- enap_designsystem/templates/enap_designsystem/blocks/page/pagenoticias_block.html +13 -11
- enap_designsystem/templates/enap_designsystem/blocks/wrapper_cards_variavel.html +225 -0
- enap_designsystem/templates/enap_designsystem/pages/article/enap_noticia.html +70 -0
- enap_designsystem/templates/enap_designsystem/pages/page_search.html +49 -28
- {wagtail_enap_designsystem-1.2.1.149.dist-info → wagtail_enap_designsystem-1.2.1.151.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.149.dist-info → wagtail_enap_designsystem-1.2.1.151.dist-info}/RECORD +25 -15
- {wagtail_enap_designsystem-1.2.1.149.dist-info → wagtail_enap_designsystem-1.2.1.151.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.149.dist-info → wagtail_enap_designsystem-1.2.1.151.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.149.dist-info → wagtail_enap_designsystem-1.2.1.151.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Generated by Django 5.1.6 on 2025-09-23 20:00
|
|
2
|
+
|
|
3
|
+
import wagtail.fields
|
|
4
|
+
from django.db import migrations, models
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
dependencies = [
|
|
10
|
+
(
|
|
11
|
+
"enap_designsystem",
|
|
12
|
+
"0420_alter_areaaluno_body_alter_enapcomponentes_body_and_more",
|
|
13
|
+
),
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
operations = [
|
|
17
|
+
migrations.CreateModel(
|
|
18
|
+
name="FooterGenericoSnippet",
|
|
19
|
+
fields=[
|
|
20
|
+
(
|
|
21
|
+
"id",
|
|
22
|
+
models.BigAutoField(
|
|
23
|
+
auto_created=True,
|
|
24
|
+
primary_key=True,
|
|
25
|
+
serialize=False,
|
|
26
|
+
verbose_name="ID",
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
(
|
|
30
|
+
"nome",
|
|
31
|
+
models.CharField(
|
|
32
|
+
help_text="Nome identificador do footer", max_length=255
|
|
33
|
+
),
|
|
34
|
+
),
|
|
35
|
+
(
|
|
36
|
+
"cor_fundo",
|
|
37
|
+
models.CharField(
|
|
38
|
+
default="#525258",
|
|
39
|
+
help_text="Cor do fundo (ex: #525258)",
|
|
40
|
+
max_length=7,
|
|
41
|
+
),
|
|
42
|
+
),
|
|
43
|
+
(
|
|
44
|
+
"cor_texto",
|
|
45
|
+
models.CharField(
|
|
46
|
+
default="#ffffff",
|
|
47
|
+
help_text="Cor dos textos (ex: #ffffff)",
|
|
48
|
+
max_length=7,
|
|
49
|
+
),
|
|
50
|
+
),
|
|
51
|
+
(
|
|
52
|
+
"logo",
|
|
53
|
+
wagtail.fields.StreamField(
|
|
54
|
+
[("logo", 0)],
|
|
55
|
+
blank=True,
|
|
56
|
+
block_lookup={
|
|
57
|
+
0: ("wagtail.images.blocks.ImageChooserBlock", (), {})
|
|
58
|
+
},
|
|
59
|
+
help_text="Logo do footer",
|
|
60
|
+
),
|
|
61
|
+
),
|
|
62
|
+
(
|
|
63
|
+
"texto_logo",
|
|
64
|
+
models.TextField(
|
|
65
|
+
blank=True,
|
|
66
|
+
help_text="Texto que aparece abaixo da logo",
|
|
67
|
+
verbose_name="Texto do logo",
|
|
68
|
+
),
|
|
69
|
+
),
|
|
70
|
+
(
|
|
71
|
+
"secoes",
|
|
72
|
+
wagtail.fields.StreamField(
|
|
73
|
+
[("secao", 5)],
|
|
74
|
+
blank=True,
|
|
75
|
+
block_lookup={
|
|
76
|
+
0: (
|
|
77
|
+
"wagtail.blocks.CharBlock",
|
|
78
|
+
(),
|
|
79
|
+
{"label": "Título da seção", "max_length": 200},
|
|
80
|
+
),
|
|
81
|
+
1: (
|
|
82
|
+
"wagtail.blocks.CharBlock",
|
|
83
|
+
(),
|
|
84
|
+
{"label": "Texto do link", "max_length": 100},
|
|
85
|
+
),
|
|
86
|
+
2: ("wagtail.blocks.URLBlock", (), {"label": "URL"}),
|
|
87
|
+
3: (
|
|
88
|
+
"wagtail.blocks.StructBlock",
|
|
89
|
+
[[("texto", 1), ("url", 2)]],
|
|
90
|
+
{},
|
|
91
|
+
),
|
|
92
|
+
4: (
|
|
93
|
+
"wagtail.blocks.StreamBlock",
|
|
94
|
+
[[("link", 3)]],
|
|
95
|
+
{"label": "Links da seção"},
|
|
96
|
+
),
|
|
97
|
+
5: (
|
|
98
|
+
"wagtail.blocks.StructBlock",
|
|
99
|
+
[[("titulo", 0), ("links", 4)]],
|
|
100
|
+
{},
|
|
101
|
+
),
|
|
102
|
+
},
|
|
103
|
+
help_text="Seções com títulos e links do footer",
|
|
104
|
+
),
|
|
105
|
+
),
|
|
106
|
+
],
|
|
107
|
+
options={
|
|
108
|
+
"abstract": False,
|
|
109
|
+
},
|
|
110
|
+
),
|
|
111
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Generated by Django 5.1.6 on 2025-09-23 20:06
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
("enap_designsystem", "0421_footergenericosnippet"),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterModelOptions(
|
|
14
|
+
name="footergenericosnippet",
|
|
15
|
+
options={
|
|
16
|
+
"verbose_name": "Footer Genérico",
|
|
17
|
+
"verbose_name_plural": "Footers Genéricos",
|
|
18
|
+
},
|
|
19
|
+
),
|
|
20
|
+
]
|