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
b3c2c0fc
Unverified
Commit
b3c2c0fc
authored
May 10, 2023
by
Yuri Resende
Committed by
GitHub
May 10, 2023
Browse files
Merge pull request #808 from yuriresendematias/master
Corrigindo as função dos integrantes
parents
d59b8495
8bd0dda3
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
b3c2c0fc
...
...
@@ -192,6 +192,20 @@
$
(
"input.rg:text"
)
.
mask
(
'00.000.000-0'
);
function
get_funcao
(
id
){
let
funcao
=
document
.
getElementById
(
"funcao_participante"
);
let
fun_part
=
<?
php
echo
json_encode
(
$funcaoParticipantes
);
?>
;
let nome_funcao = "";
fun_part.forEach(function(func, i){
if(func.id == id){
nome_funcao = func.nome;
}
});
return nome_funcao;
}
function marcar(id){
let nome = document.getElementById("nome"+id);
let linkNome = document.getElementById("nomePart"+(id+1));
...
...
@@ -204,7 +218,7 @@
let email = document.getElementById("email"+id);
let funcaoParticipantes =
<?php
echo
json_encode
(
$funcaoParticipantes
);
?>
;
let nome_funcao =
""
;
let nome_funcao =
get_funcao(funcao.value)
;
//pega o nome da função do participante
for (var i = 0; i
<
funcaoParticipantes.length
;
i
++)
{
...
...
@@ -214,19 +228,18 @@
}
}
if
(
nome.value
!=
""){
if
(
planoTrabalho
!=
null
&&
planoTrabalho.value
!=
""){
nomePlano.innerHTML =
`
<
p
style=
'font-weight: normal; line-height: normal;'
><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>
${funcao
Participantes[funcao.value -1].nome
}
</p>
`;
<strong>
Função:
</strong>
${
nome_
funcao}
</p>
`;
}else {
nomePlano.innerHTML = `
<p
style=
'font-weight: normal; line-height: normal;'
><strong>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${funcao
Participantes[funcao.value -1].nome
}
</p>
`;
<strong>
Função:
</strong>
${
nome_
funcao}
</p>
`;
}
}else{
nomePlano.innerText = `Discente `+(id+1);
...
...
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