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
ac7e7436
Commit
ac7e7436
authored
May 06, 2021
by
Carlos André
Browse files
retirando salvar rascunho
parent
7e1ad722
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
ac7e7436
...
...
@@ -104,7 +104,7 @@ class TrabalhoController extends Controller
}
//--Salvando os dados da submissão temporariamente
$trabalho
=
$this
->
armazenarInfoTemp
(
$request
,
$proponente
);
//
$trabalho = $this->armazenarInfoTemp($request, $proponente);
//O anexo de Decisão do CONSU dependo do tipo de edital
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
){
...
...
@@ -134,9 +134,9 @@ class TrabalhoController extends Controller
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2048'
],
]);
if
(
gettype
(
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
))
!=
'integer'
){
return
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
);
}
//
if(gettype($this->validarAnexosRascunho($request, $trabalho)) != 'integer'){
//
return $this->validarAnexosRascunho($request, $trabalho);
//
}
//$trabalho = Trabalho::create([
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
...
...
@@ -181,9 +181,9 @@ class TrabalhoController extends Controller
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2048'
],
]);
if
(
gettype
(
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
))
!=
'integer'
){
return
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
);
}
//
if(gettype($this->validarAnexosRascunho($request, $trabalho)) != 'integer'){
//
return $this->validarAnexosRascunho($request, $trabalho);
//
}
//$trabalho = Trabalho::create([
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'coordenador_id'
]
=
$coordenador
->
id
;
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
ac7e7436
...
...
@@ -584,22 +584,28 @@
<hr>
</p>
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
md
-
6
">
{{--
<div class="
col
-
md
-
6
">
<button type="
submit
" formaction="
{{
route
(
'trabalho.storeParcial'
)}}
" class="
btn
btn
-
primary
" style="
width
:
100
%
;
margin
-
bottom
:
10
px
">
{{ __('Salvar como Rascunho') }}
</button>
</div>
<div class="
col
-
md
-
6
">
</div>
--}}
<div class="
col
-
md
-
12
">
<button type="
submit
" class="
btn
btn
-
success
" style="
width
:
100
%
">
{{ __('Enviar Projeto') }}
</button>
</div>
</div>
<br>
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
12
">
@if (Auth()->user()->administradors != null)
<a href="
{{
route
(
'admin.editais'
)
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@else
<a href="
{{
route
(
'proponente.projetosEdital'
,
[
'id'
=>
$edital
->
id
])
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@endif
</div>
</div>
@if (Auth()->user()->administradors != null)
<a href="
{{
route
(
'admin.editais'
)
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@else
<a href="
{{
route
(
'proponente.projetosEdital'
,
[
'id'
=>
$edital
->
id
])
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
@endif
</form>
</div>
</div>
...
...
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