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
fa464bfc
Commit
fa464bfc
authored
May 20, 2021
by
Gabriel-31415
Browse files
ajuste
parent
976ba2e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
fa464bfc
...
...
@@ -974,6 +974,7 @@ class TrabalhoController extends Controller
}
public
function
salvar
(
Request
$request
)
{
return
response
()
->
json
(
'ok'
);
$edital
=
Evento
::
find
(
$request
->
editalId
);
$hoje
=
now
();
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
fa464bfc
...
...
@@ -15,8 +15,9 @@
</
div
>
</
div
>
@
endif
--
}}
{{
--
action
=
"
{
{route('trabalho.store')}
}
"
--
}}
<
p
class
=
"card-text"
>
<
form
method
=
"POST"
name
=
"formTrabalho"
action
=
"
{
{route('trabalho.store')}
}
"
enctype
=
"multipart/form-data"
>
<
form
method
=
"POST"
name
=
"formTrabalho"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"editalId"
value
=
"
{
{$edital->id}
}
"
>
...
...
@@ -590,7 +591,7 @@
</button>
</div> --}}
<div class="
col
-
md
-
12
">
<button type="
submit
" class="
btn
btn
-
success
" style="
width
:
100
%
">
<button
id="
button
"
type="
submit
" class="
btn
btn
-
success
" style="
width
:
100
%
">
{{ __('Enviar Projeto') }}
</button>
</div>
...
...
@@ -1168,4 +1169,26 @@
}
</
script
>
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"
></
script
>
<
script
type
=
"text/javascript"
>
$
(
"#button"
)
.
click
(
function
(
e
){
e
.
preventDefault
();
$
.
ajax
({
headers
:
{
'X-CSRF-Token'
:
$
(
'input[name="_token"]'
)
.
val
()
},
url
:
"
{
{route('trabalho.store')}
}
"
,
type
:
'post'
,
enctype
:
'multipart/form-data'
,
success
:
function
(
result
){
console
.
log
(
"success"
)
console
.
log
(
result
)
},
erro
:
(
xhr
,
status
,
error
)
=>
{
console
.
log
(
"erro"
)
}
});
});
</
script
>
@
endsection
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