Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
4 years ago
by
Carlos André
Browse files
Options
Download
Email Patches
Plain Diff
retirando salvar rascunho
parent
7e1ad722
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/guzzlehttp/guzzle-6.5.8
dependabot/composer/guzzlehttp/psr7-1.8.5
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/axios-0.21.2
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
minha_conta
modificacoes_aviso
modificacoes_layout_6
modificacoes_layout_7
modificacoes_layout_8
modificacoes_layout_9
modificacoes_layout_igor
modificacoes_layout_minha_conta
modificacoes_perfil_avaliador
updates_mar
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/TrabalhoController.php
+7
-7
app/Http/Controllers/TrabalhoController.php
resources/views/evento/submeterTrabalho.blade.php
+14
-8
resources/views/evento/submeterTrabalho.blade.php
with
21 additions
and
15 deletions
+21
-15
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
;
...
...
This diff is collapsed.
Click to expand it.
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>
</form>
</div>
</div>
...
...
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
Menu
Projects
Groups
Snippets
Help