wagtail-enap-designsystem 1.2.1.126__py3-none-any.whl → 1.2.1.128__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/form.py +296 -5
- enap_designsystem/migrations/0388_sistemavotacaopage_configuracoes_votacao.py +132 -0
- enap_designsystem/migrations/0389_alter_sistemavotacaopage_configuracoes_votacao.py +81 -0
- enap_designsystem/migrations/0390_alter_areaaluno_body_alter_cursoeadpage_curso_and_more.py +53322 -0
- enap_designsystem/migrations/0391_alter_formulariopage_form_steps.py +1240 -0
- enap_designsystem/migrations/0392_alter_formulariopage_form_steps.py +1237 -0
- enap_designsystem/migrations/0393_alter_formulariopage_form_steps.py +1264 -0
- enap_designsystem/models.py +12 -0
- enap_designsystem/static/enap_designsystem/blocks/card_courses.css +2 -1
- enap_designsystem/static/enap_designsystem/blocks/suap/suap_courses_block.css +28 -6
- enap_designsystem/templates/enap_designsystem/blocks/clientes_block.html +1 -1
- enap_designsystem/templates/enap_designsystem/blocks/suap/suap_courses_block.html +9 -2
- enap_designsystem/templates/enap_designsystem/form_templates/formulario_page.html +631 -934
- enap_designsystem/templates/enap_designsystem/includes/form_field.html +798 -382
- enap_designsystem/templates/enap_designsystem/sistema_votacao_page.html +6 -0
- enap_designsystem/views.py +2 -1
- {wagtail_enap_designsystem-1.2.1.126.dist-info → wagtail_enap_designsystem-1.2.1.128.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.126.dist-info → wagtail_enap_designsystem-1.2.1.128.dist-info}/RECORD +21 -15
- {wagtail_enap_designsystem-1.2.1.126.dist-info → wagtail_enap_designsystem-1.2.1.128.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.126.dist-info → wagtail_enap_designsystem-1.2.1.128.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.126.dist-info → wagtail_enap_designsystem-1.2.1.128.dist-info}/top_level.txt +0 -0
enap_designsystem/models.py
CHANGED
|
@@ -19,6 +19,7 @@ from wagtail.blocks import URLBlock
|
|
|
19
19
|
from wagtail.search import index
|
|
20
20
|
import requests
|
|
21
21
|
import os
|
|
22
|
+
from .blocks.html_blocks import RecaptchaBlock
|
|
22
23
|
from django.db.models.signals import pre_delete
|
|
23
24
|
from django.dispatch import receiver
|
|
24
25
|
import shutil
|
|
@@ -4858,6 +4859,15 @@ class SistemaVotacaoPage(Page):
|
|
|
4858
4859
|
help_text="Data/hora de encerramento da votação (opcional)"
|
|
4859
4860
|
)
|
|
4860
4861
|
|
|
4862
|
+
configuracoes_votacao = StreamField([
|
|
4863
|
+
('recaptcha', RecaptchaBlock()),
|
|
4864
|
+
],
|
|
4865
|
+
blank=True,
|
|
4866
|
+
use_json_field=True,
|
|
4867
|
+
verbose_name="Configurações e Elementos da Votação",
|
|
4868
|
+
help_text="Adicione reCAPTCHA para a página de votação"
|
|
4869
|
+
)
|
|
4870
|
+
|
|
4861
4871
|
footer = models.ForeignKey(
|
|
4862
4872
|
"EnapFooterSnippet",
|
|
4863
4873
|
null=True,
|
|
@@ -4876,6 +4886,8 @@ class SistemaVotacaoPage(Page):
|
|
|
4876
4886
|
FieldPanel('navbar'),
|
|
4877
4887
|
FieldPanel('footer'),
|
|
4878
4888
|
], heading="Conteúdo do Header"),
|
|
4889
|
+
|
|
4890
|
+
FieldPanel('configuracoes_votacao'),
|
|
4879
4891
|
|
|
4880
4892
|
MultiFieldPanel([
|
|
4881
4893
|
FieldPanel('mostrar_progresso'),
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.btn-todos:active{
|
|
34
|
-
color: #
|
|
34
|
+
color: #ffffff;
|
|
35
|
+
background-color: #025257;
|
|
35
36
|
border: 1px solid #025257;
|
|
36
37
|
}
|
|
37
38
|
.section-curso-cards-suap {
|
|
@@ -144,21 +145,42 @@
|
|
|
144
145
|
|
|
145
146
|
.carousel-control-curso-suap {
|
|
146
147
|
position: absolute;
|
|
147
|
-
border: none;
|
|
148
|
-
background-color: transparent;
|
|
149
148
|
top: 50%;
|
|
150
149
|
transform: translateY(-50%);
|
|
151
|
-
font-size:
|
|
150
|
+
font-size: 28px;
|
|
152
151
|
cursor: pointer;
|
|
153
152
|
z-index: 10;
|
|
153
|
+
background-color: #007D7A;
|
|
154
|
+
border: 5px solid #FFFFFF;
|
|
155
|
+
border-radius: 50%;
|
|
156
|
+
color: #FFFFFF;
|
|
157
|
+
align-items: center;
|
|
158
|
+
height: 40px;
|
|
159
|
+
width: 40px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.carousel-control-curso-suap:hover{
|
|
163
|
+
background-color: #006969;
|
|
164
|
+
}
|
|
165
|
+
.carousel-control-curso-suap:active{
|
|
166
|
+
background-color: #025257;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.setas{
|
|
170
|
+
font-size: 28px;
|
|
171
|
+
font-weight: 900;
|
|
172
|
+
color: #FFFFFF;
|
|
173
|
+
margin: 0px;
|
|
154
174
|
}
|
|
155
175
|
|
|
156
176
|
.carousel-control-curso-suap-prev {
|
|
157
|
-
left: -
|
|
177
|
+
left: -20px;
|
|
178
|
+
box-shadow: 2px 5px 8px 0px rgba(0, 0, 0, 0.25);
|
|
158
179
|
}
|
|
159
180
|
|
|
160
181
|
.carousel-control-curso-suap-next {
|
|
161
|
-
right: -
|
|
182
|
+
right: -20px;
|
|
183
|
+
box-shadow: -1px 4px 7px 0px rgba(0, 0, 0, 0.25);
|
|
162
184
|
}
|
|
163
185
|
|
|
164
186
|
.btn1 {
|
|
@@ -60,8 +60,15 @@
|
|
|
60
60
|
{% endfor %}
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
|
-
<button class="carousel-control-curso-suap carousel-control-curso-suap-prev"
|
|
64
|
-
|
|
63
|
+
<button class="carousel-control-curso-suap carousel-control-curso-suap-prev">
|
|
64
|
+
<span class="visually-hidden">Rolar para esquerda</span>
|
|
65
|
+
<span class="material-symbols-outlined setas seta-esquerda">chevron_left</span>
|
|
66
|
+
</button>
|
|
67
|
+
<button class="carousel-control-curso-suap carousel-control-curso-suap-next">
|
|
68
|
+
<span class="visually-hidden">Rolar para direita</span>
|
|
69
|
+
<span class="material-symbols-outlined setas seta-direita">chevron_right</span>
|
|
70
|
+
</button>
|
|
71
|
+
|
|
65
72
|
</div>
|
|
66
73
|
</div>
|
|
67
74
|
|