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
64631712
Commit
64631712
authored
May 08, 2023
by
Yuri Resende
Browse files
Colocando a vizualização da função do participante na tela de submição do trabalho
parent
40b252cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
64631712
...
...
@@ -200,15 +200,27 @@
let
planoTrabalho
=
document
.
getElementById
(
"nomePlanoTrabalho"
+
id
);
let
cpf
=
document
.
getElementById
(
"cpf"
+
id
);
//
let funcao = document.getElementById("funcao_participante");
let
funcao
=
document
.
getElementById
(
"funcao_participante"
);
let
email
=
document
.
getElementById
(
"email"
+
id
);
console
.
log
(
planoTrabalho
);
let
funcaoParticipantes
=
<?
php
echo
json_encode
(
$funcaoParticipantes
);
?>
;
let nome_funcao = "";
//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
;
}
}
if
(
nome.value
!=
""){
if
(
planoTrabalho
!=
null
&&
planoTrabalho.value
!=
""){
nomePlano.innerText =
`Nome:
${
nome.value
}
\
n
Plano:
${
planoTrabalho.value
}
\
n
E-mail:
${
email.value
}
\
n
CPF:
${
cpf.value
}\
nFunção:
`;
}
else
{
nomePlano
.
innerText
=
`Nome: ${nome.value} \n E-mail: ${email.value} \n CPF: ${cpf.value}\nFunção:`
;
nomePlano.innerText =
`Nome:
${
nome.value
}
\
n
E-mail:
${
email.value
}
\
n
CPF:
${
cpf.value
}\
nFunção:
${
nome_funcao
}
`;
}
}
else
{
nomePlano.innerText =
`Discente
`+(
id
+1);
...
...
@@ -221,7 +233,7 @@
//$("#atribuir1").attr('data-target','#modalIntegrante'+(id+1));
modal_id = id+1;
document.getElementById("part"+id).removeAttribute("hidden");
document
.
getElementById
(
"exampleModal"
+
id
)
.
modal
(
'hide'
);
//
document.getElementById("exampleModal"+id).modal('hide');
...
...
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