Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
d5134be1
Unverified
Commit
d5134be1
authored
May 24, 2023
by
Antônio Durval
Committed by
GitHub
May 24, 2023
Browse files
Merge pull request #884 from ThiagoCavalcantiSilva/informacoes-de-integrante
Ajustadas informações do integrante
parents
d98ebd87
86bb1dab
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
d5134be1
...
...
@@ -221,28 +221,13 @@
let email = document.getElementById("email"+id);
let funcaoParticipantes =
<?php
echo
json_encode
(
$funcaoParticipantes
);
?>
;
let nome_funcao = get_funcao(funcao.value);
//pega o nome da função do participante
for (var i = 0; i
<
funcaoParticipantes.length
;
i
++)
{
if(funcaoParticipantes[i].id =
=
funcao.value
){
nome_funcao =
funcaoParticipantes[i].nome;
break
;
}
}
let curso = document.getElementById("curso"+id);
if(nome.value != ""){
estudante.value = true;
if
(
planoTrabalho
!=
null
&&
planoTrabalho.value
!=
""){
nomePlano.innerHTML =
`
<
strong
>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
Plano:
</strong>
${planoTrabalho.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${nome_funcao}`;
}else {
nomePlano.innerHTML = `
<strong>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${nome_funcao}`;
nomePlano.innerHTML = exibirInformacoesGeraisDoIntegrante(nome.value, email.value, celular.value, curso, nome_funcao);
if (nome_funcao == "Bolsista") {
nomePlano.innerHTML += `
<br><strong>
Plano:
</strong>
${planoTrabalho.value !== null ? planoTrabalho.value : ''}`;
}
}else if(data != null) {
estudante.value = false;
...
...
@@ -252,11 +237,9 @@
instituicao.value = data[0].instituicao;
cpf.value = data[0].cpf;
celular.value = data[0].celular;
nomePlano.innerHTML = `
<strong>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${data[1].nome}`;
nome_funcao = data[1].nome;
curso = data[2].curso;
nomePlano.innerHTML = exibirInformacoesGeraisDoIntegrante(nome.value, email.value, celular.value, curso, nome_funcao);
}
if(id >=1){
document.getElementById("cancelar"+(id-1)).setAttribute("disabled", true);
...
...
@@ -268,10 +251,16 @@
document.getElementById("quantidadeModais").value = modal_id;
document.getElementById("part"+id).removeAttribute("hidden");
//document.getElementById("exampleModal"+id).modal('hide');
}
function exibirInformacoesGeraisDoIntegrante(nome, email, celular, curso, nomeFuncao) {
return `
<strong>
Nome:
</strong>
${nome}
<br>
<strong>
E-mail:
</strong>
${email}
<br>
<strong>
Telefone:
</strong>
${celular !== null ? celular : ''}
<br>
<strong>
Curso:
</strong>
${curso !== null ? curso : ''}
<br>
<strong>
Função:
</strong>
${nomeFuncao}`;
}
function desmarcar(id){
if(id >= 1){;
document.getElementById("cancelar"+(id-1)).removeAttribute("disabled");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment