From f0778f1a2f1839c0a3489a8dd665c3d57dca5123 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Sep 2023 09:00:58 -0300 Subject: [PATCH] =?UTF-8?q?Adi=C3=A7=C3=A3o=20de=20modal=20mostrando=20Par?= =?UTF-8?q?ticipante=20com=20dados=20incompletos=20na=20substitui=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../substituirParticipante.blade.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/resources/views/administrador/substituirParticipante.blade.php b/resources/views/administrador/substituirParticipante.blade.php index a2c5c5e..5359fea 100644 --- a/resources/views/administrador/substituirParticipante.blade.php +++ b/resources/views/administrador/substituirParticipante.blade.php @@ -933,6 +933,26 @@ + + + @endsection @section('javascript') @@ -1175,6 +1195,10 @@ $('#aviso-modal-usuario-nao-existe').modal('show'); } + function exibirModalPerfilParticipanteIncompleto() { + $('#aviso-modal-perfil-participante-incompleto').modal('show'); + } + $(document).ready(function () { $("#cpf_consulta").mask("999.999.999-99"); }); @@ -1190,6 +1214,11 @@ document.getElementById(`email${integranteAntigoId}`).setAttribute("readonly", ""); if (data[0]['tipo'] == "participante") { + + if(data[2] == null) { + exibirModalPerfilParticipanteIncompleto() + } + let [y, m, d] = data[2]['data_de_nascimento'].split('-'); document.getElementById(`data_de_nascimento${integranteAntigoId}`).value = (new Date(y, m - 1, d)).toLocaleDateString(); document.getElementById(`data_de_nascimento${integranteAntigoId}`).setAttribute("readonly", ""); -- GitLab