wagtail-enap-designsystem 1.2.1.113__py3-none-any.whl → 1.2.1.114__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.
- enap_designsystem/templates/enap_designsystem/includes/form_field.html +38 -38
- {wagtail_enap_designsystem-1.2.1.113.dist-info → wagtail_enap_designsystem-1.2.1.114.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.113.dist-info → wagtail_enap_designsystem-1.2.1.114.dist-info}/RECORD +6 -6
- {wagtail_enap_designsystem-1.2.1.113.dist-info → wagtail_enap_designsystem-1.2.1.114.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.113.dist-info → wagtail_enap_designsystem-1.2.1.114.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.113.dist-info → wagtail_enap_designsystem-1.2.1.114.dist-info}/top_level.txt +0 -0
|
@@ -576,11 +576,11 @@
|
|
|
576
576
|
|
|
577
577
|
|
|
578
578
|
|
|
579
|
-
{% elif block.block_type == 'estado_cidade_field' %}
|
|
579
|
+
<!-- {% elif block.block_type == 'estado_cidade_field' %}
|
|
580
580
|
<div class="form-group estado-cidade-group" data-layout="{{ block.value.layout }}">
|
|
581
581
|
<div class="estado-cidade-container {% if block.value.layout == 'horizontal' %}horizontal-layout{% else %}vertical-layout{% endif %}">
|
|
582
582
|
|
|
583
|
-
|
|
583
|
+
|
|
584
584
|
<div class="estado-field-wrapper">
|
|
585
585
|
<label for="{{ block.block_type }}_{{ block.id }}_estado">
|
|
586
586
|
{{ block.value.estado_label }}
|
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
</select>
|
|
612
612
|
</div>
|
|
613
613
|
|
|
614
|
-
|
|
614
|
+
|
|
615
615
|
<div class="cidade-field-wrapper">
|
|
616
616
|
<label for="{{ block.block_type }}_{{ block.id }}_cidade">
|
|
617
617
|
{{ block.value.cidade_label }}
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
</select>
|
|
634
634
|
</div>
|
|
635
635
|
</div>
|
|
636
|
-
</div>
|
|
636
|
+
</div> -->
|
|
637
637
|
|
|
638
638
|
|
|
639
639
|
|
|
@@ -912,49 +912,49 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
912
912
|
|
|
913
913
|
|
|
914
914
|
|
|
915
|
-
document.addEventListener('DOMContentLoaded', function() {
|
|
916
|
-
|
|
917
|
-
|
|
915
|
+
// document.addEventListener('DOMContentLoaded', function() {
|
|
916
|
+
// // Dados dos estados passados pelo Django
|
|
917
|
+
// const estadosCidades = {{ estados_cidades|safe }};
|
|
918
918
|
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
919
|
+
// // Selectors
|
|
920
|
+
// const estadoSelect = document.getElementById('{{ block.block_type }}_{{ block.id }}_estado');
|
|
921
|
+
// const cidadeSelect = document.getElementById('{{ block.block_type }}_{{ block.id }}_cidade');
|
|
922
922
|
|
|
923
|
-
|
|
923
|
+
// if (!estadoSelect || !cidadeSelect) return;
|
|
924
924
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
925
|
+
// // Quando o estado mudar
|
|
926
|
+
// estadoSelect.addEventListener('change', function() {
|
|
927
|
+
// const uf = this.value;
|
|
928
|
+
// const cidadeTarget = this.getAttribute('data-cidade-target');
|
|
929
|
+
// const cidadeSelectElement = document.getElementById(cidadeTarget);
|
|
930
930
|
|
|
931
|
-
|
|
931
|
+
// if (!cidadeSelectElement) return;
|
|
932
932
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
933
|
+
// // Limpar as cidades
|
|
934
|
+
// cidadeSelectElement.innerHTML = '<option value="">Selecione a cidade...</option>';
|
|
935
|
+
// cidadeSelectElement.disabled = !uf;
|
|
936
936
|
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
// if (uf && estadosCidades[uf]) {
|
|
938
|
+
// const cidades = estadosCidades[uf].cidades || [];
|
|
939
939
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
940
|
+
// // Adicionar cidades
|
|
941
|
+
// cidades.forEach(cidade => {
|
|
942
|
+
// const option = document.createElement('option');
|
|
943
|
+
// option.value = cidade;
|
|
944
|
+
// option.textContent = cidade;
|
|
945
|
+
// cidadeSelectElement.appendChild(option);
|
|
946
|
+
// });
|
|
947
947
|
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
948
|
+
// cidadeSelectElement.disabled = false;
|
|
949
|
+
// console.log(`🏛️ Estado ${uf} selecionado: ${cidades.length} cidades carregadas`);
|
|
950
|
+
// } else {
|
|
951
|
+
// // Se não houver cidades (ou o estado foi desmarcado), desabilita a seleção de cidades
|
|
952
|
+
// cidadeSelectElement.disabled = true;
|
|
953
|
+
// }
|
|
954
|
+
// });
|
|
955
955
|
|
|
956
|
-
|
|
957
|
-
});
|
|
956
|
+
// console.log('🏛️🏙️ Sistema Estado + Cidade inicializado');
|
|
957
|
+
// });
|
|
958
958
|
|
|
959
959
|
|
|
960
960
|
</script>
|
|
@@ -721,7 +721,7 @@ enap_designsystem/templates/enap_designsystem/form_templates/welcome_page.html,s
|
|
|
721
721
|
enap_designsystem/templates/enap_designsystem/includes/chatbot_global.html,sha256=CO7wXrGx1l_icY8vb9OdrILCUXEFBomJPPxQz_e9hq4,12308
|
|
722
722
|
enap_designsystem/templates/enap_designsystem/includes/cookie_banner.html,sha256=vyrvj1W_haSA4oKmQiyjFpjoTFqjPSZfz3u5nfr-P2g,10871
|
|
723
723
|
enap_designsystem/templates/enap_designsystem/includes/footer.html,sha256=qsDmN413A_NNOhRFZz1Uxym1j5UPVhEDuRRDLTgRMPA,4063
|
|
724
|
-
enap_designsystem/templates/enap_designsystem/includes/form_field.html,sha256=
|
|
724
|
+
enap_designsystem/templates/enap_designsystem/includes/form_field.html,sha256=B19SZzXQg-blqcv2F4D5aATru7U-OQyvJ7BSBrM9QuQ,40415
|
|
725
725
|
enap_designsystem/templates/enap_designsystem/pages/404.html,sha256=yibkQlRTOZdyOVsDcNdqXjzmQwVq3QH5ztf0gNtbt58,2885
|
|
726
726
|
enap_designsystem/templates/enap_designsystem/pages/area_aluno.html,sha256=lpHBVsnuZ0kARnH10xfFBPldABAvLGNMnVuvPACP3FU,15783
|
|
727
727
|
enap_designsystem/templates/enap_designsystem/pages/article_index_page.html,sha256=6VjJ3_EroEPCidFCW5gBDzvbi81UcFX9lGpbc4j6r9U,11482
|
|
@@ -807,8 +807,8 @@ enap_designsystem/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
|
807
807
|
enap_designsystem/utils/decorators.py,sha256=aq6SbLn0LcH2rfE3ZFit8jkD7pSx9fLVBUUwVB747hg,335
|
|
808
808
|
enap_designsystem/utils/services.py,sha256=6dG5jLSbwH49jpZV9ZNpWlaZqI49gTlwlr1vaerxdiU,5824
|
|
809
809
|
enap_designsystem/utils/sso.py,sha256=vjAuoYgoLeQAa_dkkyQ6-LmHvKMaVCxizNFpe5y3iUA,1145
|
|
810
|
-
wagtail_enap_designsystem-1.2.1.
|
|
811
|
-
wagtail_enap_designsystem-1.2.1.
|
|
812
|
-
wagtail_enap_designsystem-1.2.1.
|
|
813
|
-
wagtail_enap_designsystem-1.2.1.
|
|
814
|
-
wagtail_enap_designsystem-1.2.1.
|
|
810
|
+
wagtail_enap_designsystem-1.2.1.114.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
|
|
811
|
+
wagtail_enap_designsystem-1.2.1.114.dist-info/METADATA,sha256=sAE7u64FvQQL9M2cLVqg2WQSSrvu8fxOhq6JCQn0mXM,3651
|
|
812
|
+
wagtail_enap_designsystem-1.2.1.114.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
813
|
+
wagtail_enap_designsystem-1.2.1.114.dist-info/top_level.txt,sha256=RSFgMASxoA-hVftm5i4Qd0rArlX4Dq08lLv5G4sYD-g,18
|
|
814
|
+
wagtail_enap_designsystem-1.2.1.114.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|