wagtail-enap-designsystem 1.2.1.203__py3-none-any.whl → 1.2.1.205__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/migrations/0475_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +65052 -0
- enap_designsystem/migrations/0476_rotapage_capsulaordemrota.py +253 -0
- enap_designsystem/models.py +438 -195
- enap_designsystem/static/enap_designsystem/blocks/capsulas.css +3968 -67
- enap_designsystem/static/enap_designsystem/blocks/hero_animada_block.css +18 -0
- enap_designsystem/templates/admin/exportar_respostas.html +0 -9
- enap_designsystem/templates/enap_designsystem/blocks/formulario_snippet.html +0 -6
- enap_designsystem/templates/enap_designsystem/blocks/material_externo_block.html +211 -0
- enap_designsystem/templates/enap_designsystem/form_templates/form_report.html +0 -10
- enap_designsystem/templates/enap_designsystem/form_templates/submission_detail.html +0 -9
- enap_designsystem/templates/enap_designsystem/gerador_rotas_page.html +287 -0
- enap_designsystem/templates/enap_designsystem/pages/capsula_index_page.html +564 -463
- enap_designsystem/templates/enap_designsystem/pages/capsula_page.html +390 -627
- enap_designsystem/templates/enap_designsystem/rota_page.html +560 -0
- {wagtail_enap_designsystem-1.2.1.203.dist-info → wagtail_enap_designsystem-1.2.1.205.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.203.dist-info → wagtail_enap_designsystem-1.2.1.205.dist-info}/RECORD +19 -14
- {wagtail_enap_designsystem-1.2.1.203.dist-info → wagtail_enap_designsystem-1.2.1.205.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.203.dist-info → wagtail_enap_designsystem-1.2.1.205.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.203.dist-info → wagtail_enap_designsystem-1.2.1.205.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Generated by Django 5.1.6 on 2025-10-30 14:11
|
|
2
|
+
|
|
3
|
+
import django.db.models.deletion
|
|
4
|
+
import modelcluster.fields
|
|
5
|
+
import wagtail.fields
|
|
6
|
+
from django.db import migrations, models
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Migration(migrations.Migration):
|
|
10
|
+
|
|
11
|
+
dependencies = [
|
|
12
|
+
(
|
|
13
|
+
"enap_designsystem",
|
|
14
|
+
"0475_alter_areaaluno_body_alter_cursoeadpage_curso_and_more",
|
|
15
|
+
),
|
|
16
|
+
("wagtailcore", "0094_alter_page_locale"),
|
|
17
|
+
("wagtailimages", "0027_image_description"),
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
operations = [
|
|
21
|
+
migrations.CreateModel(
|
|
22
|
+
name="RotaPage",
|
|
23
|
+
fields=[
|
|
24
|
+
(
|
|
25
|
+
"page_ptr",
|
|
26
|
+
models.OneToOneField(
|
|
27
|
+
auto_created=True,
|
|
28
|
+
on_delete=django.db.models.deletion.CASCADE,
|
|
29
|
+
parent_link=True,
|
|
30
|
+
primary_key=True,
|
|
31
|
+
serialize=False,
|
|
32
|
+
to="wagtailcore.page",
|
|
33
|
+
),
|
|
34
|
+
),
|
|
35
|
+
(
|
|
36
|
+
"tipo_rota",
|
|
37
|
+
models.CharField(
|
|
38
|
+
choices=[
|
|
39
|
+
("docente_presencial", "Docente Presencial"),
|
|
40
|
+
("designer_instrucional", "Designer Instrucional"),
|
|
41
|
+
("multimidia", "Multimídia"),
|
|
42
|
+
("equipe_tecnica", "Equipe Técnica"),
|
|
43
|
+
],
|
|
44
|
+
help_text="Selecione o tipo de rota",
|
|
45
|
+
max_length=100,
|
|
46
|
+
verbose_name="Tipo de Rota",
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
(
|
|
50
|
+
"cor_principal",
|
|
51
|
+
models.CharField(
|
|
52
|
+
default="#0066cc",
|
|
53
|
+
help_text="Código de cor hexadecimal (ex: #0066cc)",
|
|
54
|
+
max_length=20,
|
|
55
|
+
verbose_name="Cor Principal",
|
|
56
|
+
),
|
|
57
|
+
),
|
|
58
|
+
(
|
|
59
|
+
"descricao_curta",
|
|
60
|
+
models.CharField(
|
|
61
|
+
blank=True,
|
|
62
|
+
help_text="Breve descrição para uso em listagens (máx. 255 caracteres)",
|
|
63
|
+
max_length=255,
|
|
64
|
+
verbose_name="Descrição Curta",
|
|
65
|
+
),
|
|
66
|
+
),
|
|
67
|
+
(
|
|
68
|
+
"apresentacao",
|
|
69
|
+
wagtail.fields.RichTextField(
|
|
70
|
+
help_text="Texto introdutório explicando o foco da rota",
|
|
71
|
+
verbose_name="Apresentação da Rota",
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
(
|
|
75
|
+
"por_onde_comecar",
|
|
76
|
+
wagtail.fields.RichTextField(
|
|
77
|
+
help_text="Indicação dos conceitos ou conteúdos iniciais que ajudarão o usuário",
|
|
78
|
+
verbose_name="Por onde começar?",
|
|
79
|
+
),
|
|
80
|
+
),
|
|
81
|
+
(
|
|
82
|
+
"texto_capsulas",
|
|
83
|
+
wagtail.fields.RichTextField(
|
|
84
|
+
blank=True,
|
|
85
|
+
help_text="Texto explicativo sobre as cápsulas recomendadas para esta rota",
|
|
86
|
+
verbose_name="Texto sobre as Cápsulas",
|
|
87
|
+
),
|
|
88
|
+
),
|
|
89
|
+
(
|
|
90
|
+
"texto_materiais_extras",
|
|
91
|
+
wagtail.fields.RichTextField(
|
|
92
|
+
blank=True,
|
|
93
|
+
help_text="Texto introdutório para a seção de materiais de aprofundamento",
|
|
94
|
+
verbose_name="Introdução aos Materiais Extras",
|
|
95
|
+
),
|
|
96
|
+
),
|
|
97
|
+
(
|
|
98
|
+
"materiais_externos",
|
|
99
|
+
wagtail.fields.StreamField(
|
|
100
|
+
[("material", 5)],
|
|
101
|
+
blank=True,
|
|
102
|
+
block_lookup={
|
|
103
|
+
0: (
|
|
104
|
+
"wagtail.blocks.CharBlock",
|
|
105
|
+
(),
|
|
106
|
+
{"help_text": "Título do material", "required": True},
|
|
107
|
+
),
|
|
108
|
+
1: (
|
|
109
|
+
"wagtail.blocks.TextBlock",
|
|
110
|
+
(),
|
|
111
|
+
{
|
|
112
|
+
"help_text": "Breve descrição do material",
|
|
113
|
+
"required": False,
|
|
114
|
+
},
|
|
115
|
+
),
|
|
116
|
+
2: (
|
|
117
|
+
"wagtail.blocks.ChoiceBlock",
|
|
118
|
+
[],
|
|
119
|
+
{
|
|
120
|
+
"choices": [
|
|
121
|
+
("curso", "Curso"),
|
|
122
|
+
("publicacao", "Publicação"),
|
|
123
|
+
("video", "Vídeo"),
|
|
124
|
+
("guia", "Guia"),
|
|
125
|
+
("outro", "Outro"),
|
|
126
|
+
],
|
|
127
|
+
"help_text": "Tipo de material",
|
|
128
|
+
},
|
|
129
|
+
),
|
|
130
|
+
3: (
|
|
131
|
+
"wagtail.blocks.URLBlock",
|
|
132
|
+
(),
|
|
133
|
+
{"help_text": "Link para o material", "required": True},
|
|
134
|
+
),
|
|
135
|
+
4: (
|
|
136
|
+
"wagtail.images.blocks.ImageChooserBlock",
|
|
137
|
+
(),
|
|
138
|
+
{
|
|
139
|
+
"help_text": "Imagem ilustrativa (opcional)",
|
|
140
|
+
"required": False,
|
|
141
|
+
},
|
|
142
|
+
),
|
|
143
|
+
5: (
|
|
144
|
+
"wagtail.blocks.StructBlock",
|
|
145
|
+
[
|
|
146
|
+
[
|
|
147
|
+
("titulo", 0),
|
|
148
|
+
("descricao", 1),
|
|
149
|
+
("tipo", 2),
|
|
150
|
+
("url", 3),
|
|
151
|
+
("imagem", 4),
|
|
152
|
+
]
|
|
153
|
+
],
|
|
154
|
+
{},
|
|
155
|
+
),
|
|
156
|
+
},
|
|
157
|
+
verbose_name="Materiais Externos",
|
|
158
|
+
),
|
|
159
|
+
),
|
|
160
|
+
(
|
|
161
|
+
"icone",
|
|
162
|
+
models.ForeignKey(
|
|
163
|
+
blank=True,
|
|
164
|
+
help_text="Ícone representativo da rota",
|
|
165
|
+
null=True,
|
|
166
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
167
|
+
related_name="+",
|
|
168
|
+
to="wagtailimages.image",
|
|
169
|
+
verbose_name="Ícone",
|
|
170
|
+
),
|
|
171
|
+
),
|
|
172
|
+
(
|
|
173
|
+
"imagem_capa",
|
|
174
|
+
models.ForeignKey(
|
|
175
|
+
blank=True,
|
|
176
|
+
help_text="Imagem principal da rota (banner)",
|
|
177
|
+
null=True,
|
|
178
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
179
|
+
related_name="+",
|
|
180
|
+
to="wagtailimages.image",
|
|
181
|
+
verbose_name="Imagem de Capa",
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
],
|
|
185
|
+
options={
|
|
186
|
+
"verbose_name": "Página de Rota Temática",
|
|
187
|
+
},
|
|
188
|
+
bases=("wagtailcore.page",),
|
|
189
|
+
),
|
|
190
|
+
migrations.CreateModel(
|
|
191
|
+
name="CapsulaOrdemRota",
|
|
192
|
+
fields=[
|
|
193
|
+
(
|
|
194
|
+
"id",
|
|
195
|
+
models.BigAutoField(
|
|
196
|
+
auto_created=True,
|
|
197
|
+
primary_key=True,
|
|
198
|
+
serialize=False,
|
|
199
|
+
verbose_name="ID",
|
|
200
|
+
),
|
|
201
|
+
),
|
|
202
|
+
(
|
|
203
|
+
"sort_order",
|
|
204
|
+
models.IntegerField(blank=True, editable=False, null=True),
|
|
205
|
+
),
|
|
206
|
+
(
|
|
207
|
+
"destaque",
|
|
208
|
+
models.BooleanField(
|
|
209
|
+
default=False,
|
|
210
|
+
help_text="Marque para destacar esta cápsula como prioritária",
|
|
211
|
+
verbose_name="Destaque",
|
|
212
|
+
),
|
|
213
|
+
),
|
|
214
|
+
(
|
|
215
|
+
"ordem",
|
|
216
|
+
models.IntegerField(
|
|
217
|
+
default=0,
|
|
218
|
+
help_text="Número para ordenar as cápsulas (menor = mais importante)",
|
|
219
|
+
verbose_name="Ordem",
|
|
220
|
+
),
|
|
221
|
+
),
|
|
222
|
+
(
|
|
223
|
+
"texto_contextualizacao",
|
|
224
|
+
models.TextField(
|
|
225
|
+
blank=True,
|
|
226
|
+
help_text="Texto explicando a relevância desta cápsula para esta rota específica",
|
|
227
|
+
verbose_name="Texto de Contextualização",
|
|
228
|
+
),
|
|
229
|
+
),
|
|
230
|
+
(
|
|
231
|
+
"capsula",
|
|
232
|
+
models.ForeignKey(
|
|
233
|
+
help_text="Selecione uma cápsula para vincular a esta rota",
|
|
234
|
+
on_delete=django.db.models.deletion.CASCADE,
|
|
235
|
+
related_name="+",
|
|
236
|
+
to="wagtailcore.page",
|
|
237
|
+
verbose_name="Cápsula",
|
|
238
|
+
),
|
|
239
|
+
),
|
|
240
|
+
(
|
|
241
|
+
"page",
|
|
242
|
+
modelcluster.fields.ParentalKey(
|
|
243
|
+
on_delete=django.db.models.deletion.CASCADE,
|
|
244
|
+
related_name="capsulas_vinculadas",
|
|
245
|
+
to="enap_designsystem.rotapage",
|
|
246
|
+
),
|
|
247
|
+
),
|
|
248
|
+
],
|
|
249
|
+
options={
|
|
250
|
+
"ordering": ["ordem"],
|
|
251
|
+
},
|
|
252
|
+
),
|
|
253
|
+
]
|