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
028d117e
Unverified
Commit
028d117e
authored
May 11, 2023
by
José Fernando Mendes da Costa
Committed by
GitHub
May 11, 2023
Browse files
Merge pull request #817 from jofernando/oldfuncao
Corrige função do participante quando ocorre erro na submissão
parents
db8b854f
b0445df3
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/views/evento/formulario/participantes.blade.php
View file @
028d117e
...
...
@@ -358,7 +358,7 @@
</div>
@endif
@if($edital->tipo != "CONTINUO")
@if($edital->tipo != "CONTINUO"
&&
(old('funcaoParticipante') == null || !array_key_exists($i, old('funcaoParticipante')) || old('funcaoParticipante')[$i] == 'Bolsista')
)
<div
class=
"col-md-12"
id=
"plano-titulo{{$i}}"
>
<h5>
Plano de trabalho
</h5>
</div>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
028d117e
...
...
@@ -214,20 +214,9 @@
let planoTrabalho = document.getElementById("nomePlanoTrabalho"+id);
let cpf = document.getElementById("cpf"+id);
let funcao = document.getElementById("funcao
_p
articipante");
let funcao = document.getElementById("funcao
P
articipante"
+id
);
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
;
}
}
if(nome.value != ""){
if(planoTrabalho != null
&&
planoTrabalho.value != ""){
nomePlano.innerHTML = `
<p
style=
'font-weight: normal; line-height: normal;'
><strong>
Nome:
</strong>
${nome.value}
<br>
...
...
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