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
6037690e
"app/Notifications/VerifyNotification.php" did not exist on "5de5a5999b6a65aaea6d0eaf43d557ac4c33adf6"
Commit
6037690e
authored
Oct 13, 2021
by
Guilherme Silva
Browse files
Mudanças no script do evento Manter Plano
parent
4ffa8140
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/substituirParticipante.blade.php
View file @
6037690e
...
...
@@ -249,19 +249,31 @@
var
idParticipante
=
checkboxInput
.
id
;
var
tituloPlano
=
document
.
getElementById
(
'nomePlanoTrabalho'
+
idParticipante
);
var
anexoPlano
=
document
.
getElementById
(
'anexoPlanoTrabalho'
+
idParticipante
);
var
planoAtual
=<?
php
echo
json_encode
(
$participantes
->
first
()
->
planoTrabalho
)
?>
;
var arquivo = document.getElementById('arquivo'+idParticipante);
if(checkboxInput.checked){
tituloPlano.setAttribute('value', planoAtual.titulo);
tituloPlano.setAttribute('disabled', 'disabled');
tituloPlano.removeAttribute('required');
anexoPlano.setAttribute('disabled', 'disabled');
anexoPlano.removeAttribute('required');
document.getElementById("arqParticipantes").hidden=true;
document.getElementById("arqAtual").hidden=false;
arquivo.href = "/baixar/plano-de-trabalho/"+planoAtual.id;
}else if(!checkboxInput.checked){
tituloPlano.setAttribute('value','');
tituloPlano.removeAttribute('disabled');
tituloPlano.setAttribute('required', 'required');
anexoPlano.removeAttribute('disabled');
anexoPlano.setAttribute('required', 'required');
document.getElementById("arqParticipantes").hidden=false;
document.getElementById("arqAtual").hidden=true;
}
}
...
...
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