Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
f0778f1a
Commit
f0778f1a
authored
1 year ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Adição de modal mostrando Participante com dados incompletos na substituição
parent
1edf3159
master
carl-branch
updates_mar
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/administrador/substituirParticipante.blade.php
+29
-0
...rces/views/administrador/substituirParticipante.blade.php
with
29 additions
and
0 deletions
+29
-0
resources/views/administrador/substituirParticipante.blade.php
View file @
f0778f1a
...
@@ -933,6 +933,26 @@
...
@@ -933,6 +933,26 @@
</
div
>
</
div
>
</
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
@
endsection
@
section
(
'javascript'
)
@
section
(
'javascript'
)
...
@@ -1175,6 +1195,10 @@
...
@@ -1175,6 +1195,10 @@
$('#aviso-modal-usuario-nao-existe').modal('show');
$('#aviso-modal-usuario-nao-existe').modal('show');
}
}
function exibirModalPerfilParticipanteIncompleto() {
$('#aviso-modal-perfil-participante-incompleto').modal('show');
}
$(document).ready(function () {
$(document).ready(function () {
$("#cpf_consulta").mask("999.999.999-99");
$("#cpf_consulta").mask("999.999.999-99");
});
});
...
@@ -1190,6 +1214,11 @@
...
@@ -1190,6 +1214,11 @@
document.getElementById(`email${integranteAntigoId}`).setAttribute("readonly", "");
document.getElementById(`email${integranteAntigoId}`).setAttribute("readonly", "");
if (data[0]['tipo'] == "participante") {
if (data[0]['tipo'] == "participante") {
if(data[2] == null) {
exibirModalPerfilParticipanteIncompleto()
}
let [y, m, d] = data[2]['data_de_nascimento'].split('-');
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}`).value = (new Date(y, m - 1, d)).toLocaleDateString();
document.getElementById(`data_de_nascimento${integranteAntigoId}`).setAttribute("readonly", "");
document.getElementById(`data_de_nascimento${integranteAntigoId}`).setAttribute("readonly", "");
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help