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
c20b6808
Unverified
Commit
c20b6808
authored
Sep 22, 2023
by
Antônio Durval
Committed by
GitHub
Sep 22, 2023
Browse files
Merge pull request #933 from antonioDurval/master
Modal de erro ao discente não possuir perfil completo
parents
4adfc360
f0778f1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/substituirParticipante.blade.php
View file @
c20b6808
...
...
@@ -933,6 +933,26 @@
</
div
>
</
div
>
<!--
MODAL
DE
PARTICIPANTE
COM
PERFIL
INCOMPLETO
-->
<
div
class
=
"modal fade"
id
=
"aviso-modal-perfil-participante-incompleto"
data
-
backdrop
=
"static"
tabindex
=
"-1"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"background-color: #dc3545;"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color: white;"
>
Aviso
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
span
id
=
"texto-erro"
>
Esse
Discente
não
atualizou
seu
perfil
no
sistema
!</
span
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary btn-color-dafault"
data
-
dismiss
=
"modal"
>
Ok
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
...
...
@@ -1175,6 +1195,10 @@
$('#aviso-modal-usuario-nao-existe').modal('show');
}
function exibirModalPerfilParticipanteIncompleto() {
$('#aviso-modal-perfil-participante-incompleto').modal('show');
}
$(document).ready(function () {
$("#cpf_consulta").mask("999.999.999-99");
});
...
...
@@ -1190,6 +1214,11 @@
document.getElementById(`email${integranteAntigoId}`).setAttribute("readonly", "");
if (data[0]['tipo'] == "participante") {
if(data[2] == null) {
exibirModalPerfilParticipanteIncompleto()
}
let [y, m, d] = data[2]['data_de_nascimento'].split('-');
document.getElementById(`data_de_nascimento${integranteAntigoId}`).value = (new Date(y, m - 1, d)).toLocaleDateString();
document.getElementById(`data_de_nascimento${integranteAntigoId}`).setAttribute("readonly", "");
...
...
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