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
23132513
Unverified
Commit
23132513
authored
May 13, 2023
by
Antônio Durval
Committed by
GitHub
May 13, 2023
Browse files
Merge pull request #842 from antonioDurval/master
Correções
parents
da6655c9
8007ea85
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
23132513
...
@@ -1253,7 +1253,11 @@ class TrabalhoController extends Controller
...
@@ -1253,7 +1253,11 @@ class TrabalhoController extends Controller
$data
[
'cpf'
]
=
$request
->
cpf
[
$part
];
$data
[
'cpf'
]
=
$request
->
cpf
[
$part
];
//Quando o integrante é um estudante
//Quando o integrante é um estudante
if
(
$request
->
estudante
[
$part
]
==
true
){
if
(
$request
->
estudante
[
$part
]
==
true
){
if
(
$request
->
data_de_nascimento
[
$part
]
==
null
){
$data_nascimento
=
null
;
}
else
{
$data_nascimento
=
Carbon
::
createFromFormat
(
'd/m/Y'
,
$request
->
data_de_nascimento
[
$part
])
->
toDateString
();
$data_nascimento
=
Carbon
::
createFromFormat
(
'd/m/Y'
,
$request
->
data_de_nascimento
[
$part
])
->
toDateString
();
}
$data
[
'data_de_nascimento'
]
=
$data_nascimento
;
$data
[
'data_de_nascimento'
]
=
$data_nascimento
;
$data
[
'rg'
]
=
$request
->
rg
[
$part
];
$data
[
'rg'
]
=
$request
->
rg
[
$part
];
$data
[
'celular'
]
=
$request
->
celular
[
$part
];
$data
[
'celular'
]
=
$request
->
celular
[
$part
];
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
23132513
...
@@ -706,6 +706,7 @@
...
@@ -706,6 +706,7 @@
</
select
>
</
select
>
@
else
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
if
(
$participante
->
planoTrabalho
!=
null
)
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
</
div
>
</
div
>
...
@@ -725,6 +726,7 @@
...
@@ -725,6 +726,7 @@
@
endforeach
@
endforeach
</
select
>
</
select
>
@
endif
@
endforeach
@
endforeach
@
endif
@
endif
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
...
...
resources/views/evento/formulario/integrantes.blade.php
View file @
23132513
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
if
(
data
==
'
inexistente
'
||
$
(
'
#cpf_consulta
'
).
val
()
==
""
){
if
(
data
==
'
inexistente
'
||
$
(
'
#cpf_consulta
'
).
val
()
==
""
){
exibirModalUsuarioInexistente
();
exibirModalUsuarioInexistente
();
}
else
{
}
else
{
if
(
data
[
0
].
tipo
==
'
participante
'
){
if
(
$
(
'
#funcao_participante
'
).
val
()
!=
4
||
data
[
0
].
tipo
==
'
participante
'
){
exibirUsuarioAdicionado
(
data
);
exibirUsuarioAdicionado
(
data
);
}
else
{
}
else
{
marcar
(
modal_id
,
data
);
marcar
(
modal_id
,
data
);
...
@@ -193,6 +193,7 @@
...
@@ -193,6 +193,7 @@
let
modal_id
=
Number
(
document
.
getElementById
(
'
quantidadeModais
'
).
value
);
let
modal_id
=
Number
(
document
.
getElementById
(
'
quantidadeModais
'
).
value
);
function
exibirUsuarioAdicionado
(
data
)
{
function
exibirUsuarioAdicionado
(
data
)
{
console
.
log
(
data
[
0
])
$
(
'
#modalIntegrante
'
).
modal
(
'
hide
'
);
$
(
'
#modalIntegrante
'
).
modal
(
'
hide
'
);
document
.
getElementById
(
`nome
${
modal_id
}
`
).
value
=
data
[
0
][
'
name
'
];
document
.
getElementById
(
`nome
${
modal_id
}
`
).
value
=
data
[
0
][
'
name
'
];
document
.
getElementById
(
`nome
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`nome
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
...
@@ -200,10 +201,15 @@
...
@@ -200,10 +201,15 @@
document
.
getElementById
(
`email
${
modal_id
}
`
).
value
=
data
[
0
][
'
email
'
];
document
.
getElementById
(
`email
${
modal_id
}
`
).
value
=
data
[
0
][
'
email
'
];
document
.
getElementById
(
`email
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`email
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
if
(
data
[
0
][
'
tipo
'
]
==
"
participante
"
){
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
${
modal_id
}
`
).
value
=
(
new
Date
(
y
,
m
-
1
,
d
)).
toLocaleDateString
();
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
value
=
(
new
Date
(
y
,
m
-
1
,
d
)).
toLocaleDateString
();
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
else
{
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
value
=
null
;
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
value
=
data
[
0
][
'
cpf
'
];
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
value
=
data
[
0
][
'
cpf
'
];
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
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