From daea650d8443f0d93291ef80a9525ec8e30882e1 Mon Sep 17 00:00:00 2001 From: Edgarvital Date: Sat, 13 May 2023 15:35:43 -0300 Subject: [PATCH] Ajuste --- .../evento/formulario/integrantes.blade.php | 131 +++++++++--------- 1 file changed, 67 insertions(+), 64 deletions(-) diff --git a/resources/views/evento/formulario/integrantes.blade.php b/resources/views/evento/formulario/integrantes.blade.php index 57dedfa..43d44da 100644 --- a/resources/views/evento/formulario/integrantes.blade.php +++ b/resources/views/evento/formulario/integrantes.blade.php @@ -61,13 +61,16 @@ @if($edital->tipo == "CONTINUO" && $funcao->nome != 'Bolsista') + @elseif($funcao->nome != "Consultor" && $funcao->nome != "Pesquisador" && $funcao->nome != "Voluntário") + @endif @else + @endif --> @endforeach @@ -226,70 +229,70 @@ document.getElementById(`data_de_nascimento${modal_id}`).setAttribute("readonly", ""); } - if (data?.[3]?.cpf) { - document.getElementById(`cpf${modal_id}`).value = data[0]['cpf']; - document.getElementById(`cpf${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.rg) { - document.getElementById(`rg${modal_id}`).value = data[2]['rg']; - document.getElementById(`rg${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.celular) { - document.getElementById(`celular${modal_id}`).value = data[0]['celular']; - document.getElementById(`celular${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.cep) { - document.getElementById(`cep${modal_id}`).value = data[3].cep; - document.getElementById(`cep${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.cep) { - document.getElementById(`cep${modal_id}`).value = data[3].cep; - document.getElementById(`cep${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.uf) { - document.getElementById(`uf${modal_id}`).value = data[3].uf; - document.getElementById(`uf${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.cidade) { - document.getElementById(`cidade${modal_id}`).value = data[3].cidade; - document.getElementById(`cidade${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.bairro) { - document.getElementById(`bairro${modal_id}`).value = data[3].bairro; - document.getElementById(`bairro${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.rua) { - document.getElementById(`rua${modal_id}`).value = data[3].rua; - document.getElementById(`rua${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.numero) { - document.getElementById(`numero${modal_id}`).value = data[3].numero; - document.getElementById(`numero${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[3]?.complemento) { - document.getElementById(`complemento${modal_id}`).value = data[3].complemento; - document.getElementById(`complemento${modal_id}`).setAttribute("readonly", ""); - } - - if (data?.[0]?.instituicao) { - document.getElementById(`instituicao[${modal_id}]`).value = data[0].instituicao; - document.getElementById(`instituicao[${modal_id}]`).setAttribute("readonly", ""); - } - - if (data?.[2]?.curso) { - document.getElementById(`curso[${modal_id}]`).value = data[2].curso; - document.getElementById(`curso[${modal_id}]`).setAttribute("readonly", ""); - } + //if (data?.[3]?.cpf) { + document.getElementById(`cpf${modal_id}`).value = data[0]['cpf']; + document.getElementById(`cpf${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.rg) { + document.getElementById(`rg${modal_id}`).value = data[2]['rg']; + document.getElementById(`rg${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.celular) { + document.getElementById(`celular${modal_id}`).value = data[0]['celular']; + document.getElementById(`celular${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.cep) { + document.getElementById(`cep${modal_id}`).value = data[3].cep; + document.getElementById(`cep${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.cep) { + document.getElementById(`cep${modal_id}`).value = data[3].cep; + document.getElementById(`cep${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.uf) { + document.getElementById(`uf${modal_id}`).value = data[3].uf; + document.getElementById(`uf${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.cidade) { + document.getElementById(`cidade${modal_id}`).value = data[3].cidade; + document.getElementById(`cidade${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.bairro) { + document.getElementById(`bairro${modal_id}`).value = data[3].bairro; + document.getElementById(`bairro${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.rua) { + document.getElementById(`rua${modal_id}`).value = data[3].rua; + document.getElementById(`rua${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.numero) { + document.getElementById(`numero${modal_id}`).value = data[3].numero; + document.getElementById(`numero${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[3]?.complemento) { + document.getElementById(`complemento${modal_id}`).value = data[3].complemento; + document.getElementById(`complemento${modal_id}`).setAttribute("readonly", ""); + //} + + //if (data?.[0]?.instituicao) { + document.getElementById(`instituicao[${modal_id}]`).value = data[0].instituicao; + document.getElementById(`instituicao[${modal_id}]`).setAttribute("readonly", ""); + // + + //if (data?.[2]?.curso) { + document.getElementById(`curso[${modal_id}]`).value = data[2].curso; + document.getElementById(`curso[${modal_id}]`).setAttribute("readonly", ""); + //} console.log(document.getElementById(`funcaoParticipante${modal_id}`)); document.getElementById(`funcaoParticipante${modal_id}`).value = data[1]['nome']; -- GitLab