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
f62b6952
"resources/views/vscode:/vscode.git/clone" did not exist on "6ebd30afc089ca29b10f8a974d32a5d575b61ee4"
Commit
f62b6952
authored
May 19, 2022
by
unknown
Browse files
Mostrar nome do participante e título do plano ao adicionar participante
parent
dd0ce51f
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/evento/formulario/participantes.blade.php
View file @
f62b6952
...
...
@@ -20,11 +20,11 @@
@for($i = 0; $i
<
$
edital-
>
numParticipantes; $i++)
<div
@
if
(!
isset
(
old
('
marcado
')[$
i
]))
hidden
@
endif
class=
"form-row mb-1 col-md-3"
style=
"margin-top: 10px"
id=
"part{{$i}}"
>
<div
class=
"col-sm-4"
>
<div
class=
"col-sm-4"
style=
"display: flex; align-items: center;"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center
;
"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
id=
"nomePart{{$i+1}}"
>
Participante {{$i+1}}
</a>
</div>
...
...
@@ -398,11 +398,27 @@
$
(
"
input.rg:text
"
).
mask
(
'
00.000.000-0
'
);
function
marcar
(
id
){
let
nome
=
document
.
getElementById
(
"
nome
"
+
id
);
let
linkNome
=
document
.
getElementById
(
"
nomePart
"
+
(
id
+
1
));
let
linkTituloProj
=
document
.
getElementById
(
"
tituloProj
"
+
(
id
+
1
));
let
planoTrabalho
=
document
.
getElementById
(
"
nomePlanoTrabalho
"
+
id
);
if
(
nome
.
value
!=
""
){
if
(
planoTrabalho
.
value
!=
""
){
linkNome
.
innerText
=
`Nome:
${
nome
.
value
}
\n Título do Plano:
${
planoTrabalho
.
value
}
`
;
}
else
{
linkNome
.
innerText
=
`Nome:
${
nome
.
value
}
`
;
}
}
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
true
;
$
(
"
#atribuir1
"
).
attr
(
'
data-target
'
,
'
#exampleModal
'
+
(
id
+
1
));
document
.
getElementById
(
"
part
"
+
id
).
removeAttribute
(
"
hidden
"
);
document
.
getElementById
(
"
exampleModal
"
+
id
).
modal
(
'
hide
'
);
}
function
desmarcar
(
id
){
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
false
;
...
...
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