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
f62b6952
Commit
f62b6952
authored
3 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Mostrar nome do participante e título do plano ao adicionar participante
parent
dd0ce51f
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/guzzlehttp/guzzle-6.5.8
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/evento/formulario/participantes.blade.php
+19
-3
resources/views/evento/formulario/participantes.blade.php
with
19 additions
and
3 deletions
+19
-3
resources/views/evento/formulario/participantes.blade.php
View file @
f62b6952
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
@for($i = 0; $i
<
$
edital-
>
numParticipantes; $i++)
@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
@
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=
""
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
</div>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center"
>
<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}}"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
id=
"nomePart{{$i+1}}"
>
Participante {{$i+1}}
Participante {{$i+1}}
</a>
</a>
</div>
</div>
...
@@ -398,11 +398,27 @@
...
@@ -398,11 +398,27 @@
$
(
"
input.rg:text
"
).
mask
(
'
00.000.000-0
'
);
$
(
"
input.rg:text
"
).
mask
(
'
00.000.000-0
'
);
function
marcar
(
id
){
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
;
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
true
;
$
(
"
#atribuir1
"
).
attr
(
'
data-target
'
,
'
#exampleModal
'
+
(
id
+
1
));
$
(
"
#atribuir1
"
).
attr
(
'
data-target
'
,
'
#exampleModal
'
+
(
id
+
1
));
document
.
getElementById
(
"
part
"
+
id
).
removeAttribute
(
"
hidden
"
);
document
.
getElementById
(
"
part
"
+
id
).
removeAttribute
(
"
hidden
"
);
document
.
getElementById
(
"
exampleModal
"
+
id
).
modal
(
'
hide
'
);
document
.
getElementById
(
"
exampleModal
"
+
id
).
modal
(
'
hide
'
);
}
}
function
desmarcar
(
id
){
function
desmarcar
(
id
){
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
false
;
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
false
;
...
...
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