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
da6655c9
Unverified
Commit
da6655c9
authored
May 12, 2023
by
Yuri Resende
Committed by
GitHub
May 12, 2023
Browse files
Merge pull request #836 from yuriresendematias/master
Corrigindo data de aniversário no modal de participante. E corrigindo…
parents
86fcbda1
a93de5b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
da6655c9
...
@@ -1253,7 +1253,8 @@ class TrabalhoController extends Controller
...
@@ -1253,7 +1253,8 @@ 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
){
$data
[
'data_de_nascimento'
]
=
$request
->
data_de_nascimento
[
$part
];
$data_nascimento
=
Carbon
::
createFromFormat
(
'd/m/Y'
,
$request
->
data_de_nascimento
[
$part
])
->
toDateString
();
$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
];
$data
[
'cep'
]
=
$request
->
cep
[
$part
];
$data
[
'cep'
]
=
$request
->
cep
[
$part
];
...
...
resources/views/evento/formulario/integrantes.blade.php
View file @
da6655c9
...
@@ -200,7 +200,9 @@
...
@@ -200,7 +200,9 @@
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
"
,
""
);
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
value
=
(
new
Date
(
data
[
2
][
'
data_de_nascimento
'
])).
toLocaleDateString
();
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
}
`
).
setAttribute
(
"
readonly
"
,
""
);
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
'
];
...
...
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