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
c7672936
Commit
c7672936
authored
2 years ago
by
Edgarvital
Browse files
Options
Download
Email Patches
Plain Diff
Tentativa de correção de erro na adição de integrantes a proposta
parent
e8b5dfeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/evento/formulario/integrantes.blade.php
+48
-25
resources/views/evento/formulario/integrantes.blade.php
with
48 additions
and
25 deletions
+48
-25
resources/views/evento/formulario/integrantes.blade.php
View file @
c7672936
...
@@ -216,40 +216,63 @@
...
@@ -216,40 +216,63 @@
document
.
getElementById
(
`rg
${
modal_id
}
`
).
value
=
data
[
2
][
'
rg
'
];
document
.
getElementById
(
`rg
${
modal_id
}
`
).
value
=
data
[
2
][
'
rg
'
];
document
.
getElementById
(
`rg
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`rg
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`celular
${
modal_id
}
`
).
value
=
data
[
0
][
'
celular
'
];
document
.
getElementById
(
`celular
${
modal_id
}
`
).
value
=
data
[
0
][
'
celular
'
];
document
.
getElementById
(
`celular
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`celular
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`cep
${
modal_id
}
`
).
value
=
data
[
3
][
'
cep
'
];
if
(
data
?.[
3
]?.
cep
)
{
document
.
getElementById
(
`cep
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`cep
${
modal_id
}
`
).
value
=
data
[
3
].
cep
;
document
.
getElementById
(
`cep
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
document
.
getElementById
(
`uf
${
modal_id
}
`
).
value
=
data
[
3
][
'
uf
'
];
if
(
data
?.[
3
]?.
cep
)
{
document
.
getElementById
(
`uf
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`cep
${
modal_id
}
`
).
value
=
data
[
3
].
cep
;
document
.
getElementById
(
`cep
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
document
.
getElementById
(
`cidade
${
modal_id
}
`
).
value
=
data
[
3
][
'
cidade
'
];
if
(
data
?.[
3
]?.
uf
)
{
document
.
getElementById
(
`cidade
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`uf
${
modal_id
}
`
).
value
=
data
[
3
].
uf
;
document
.
getElementById
(
`uf
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`bairro
${
modal_id
}
`
).
value
=
data
[
3
][
'
bairro
'
];
}
document
.
getElementById
(
`bairro
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`rua
${
modal_id
}
`
).
value
=
data
[
3
][
'
rua
'
];
if
(
data
?.[
3
]?.
cidade
)
{
document
.
getElementById
(
`rua
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`cidade
${
modal_id
}
`
).
value
=
data
[
3
].
cidade
;
document
.
getElementById
(
`cidade
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`numero
${
modal_id
}
`
).
value
=
data
[
3
][
'
numero
'
];
}
document
.
getElementById
(
`numero
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
if
(
data
?.[
3
]?.
bairro
)
{
document
.
getElementById
(
`complemento
${
modal_id
}
`
).
value
=
data
[
3
][
'
complemento
'
];
document
.
getElementById
(
`bairro
${
modal_id
}
`
).
value
=
data
[
3
].
bairro
;
document
.
getElementById
(
`complemento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`bairro
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
document
.
getElementById
(
`instituicao[
${
modal_id
}
]`
).
value
=
data
[
0
][
'
instituicao
'
];
document
.
getElementById
(
`instituicao[
${
modal_id
}
]`
).
setAttribute
(
"
readonly
"
,
""
);
if
(
data
?.[
3
]?.
rua
)
{
document
.
getElementById
(
`rua
${
modal_id
}
`
).
value
=
data
[
3
].
rua
;
document
.
getElementById
(
`rua
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
if
(
data
?.[
3
]?.
numero
)
{
document
.
getElementById
(
`numero
${
modal_id
}
`
).
value
=
data
[
3
].
numero
;
document
.
getElementById
(
`numero
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
if
(
data
?.[
3
]?.
complemento
)
{
document
.
getElementById
(
`complemento
${
modal_id
}
`
).
value
=
data
[
3
].
complemento
;
document
.
getElementById
(
`complemento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
if
(
data
?.[
0
]?.
instituicao
)
{
document
.
getElementById
(
`instituicao[
${
modal_id
}
]`
).
value
=
data
[
0
].
instituicao
;
document
.
getElementById
(
`instituicao[
${
modal_id
}
]`
).
setAttribute
(
"
readonly
"
,
""
);
}
if
(
data
?.[
2
]?.
curso
)
{
document
.
getElementById
(
`curso[
${
modal_id
}
]`
).
value
=
data
[
2
].
curso
;
document
.
getElementById
(
`curso[
${
modal_id
}
]`
).
setAttribute
(
"
readonly
"
,
""
);
}
document
.
getElementById
(
`curso[
${
modal_id
}
]`
).
value
=
data
[
2
][
'
curso
'
];
document
.
getElementById
(
`curso[
${
modal_id
}
]`
).
setAttribute
(
"
readonly
"
,
""
);
console
.
log
(
document
.
getElementById
(
`funcaoParticipante
${
modal_id
}
`
));
console
.
log
(
document
.
getElementById
(
`funcaoParticipante
${
modal_id
}
`
));
document
.
getElementById
(
`funcaoParticipante
${
modal_id
}
`
).
value
=
data
[
1
][
'
nome
'
];
document
.
getElementById
(
`funcaoParticipante
${
modal_id
}
`
).
value
=
data
[
1
][
'
nome
'
];
if
(
data
[
1
].
nome
!=
"
Bolsista
"
&&
data
[
1
].
nome
!=
"
Voluntário
"
){
if
(
data
[
1
].
nome
!=
"
Bolsista
"
&&
data
[
1
].
nome
!=
"
Voluntário
"
){
document
.
getElementById
(
`plano-titulo
${
modal_id
}
`
).
setAttribute
(
'
hidden
'
,
""
);
document
.
getElementById
(
`plano-titulo
${
modal_id
}
`
).
setAttribute
(
'
hidden
'
,
""
);
document
.
getElementById
(
`plano-nome
${
modal_id
}
`
).
setAttribute
(
'
hidden
'
,
""
);
document
.
getElementById
(
`plano-nome
${
modal_id
}
`
).
setAttribute
(
'
hidden
'
,
""
);
...
...
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