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
bdcd27f3
Commit
bdcd27f3
authored
Jun 28, 2021
by
Gabriel-31415
Browse files
update editar formulario
parent
9392de1b
Changes
8
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
bdcd27f3
...
...
@@ -879,6 +879,7 @@ class TrabalhoController extends Controller
return
redirect
()
->
route
(
'inicial'
)
->
with
([
'error'
=>
0
,
'mensagem'
=>
'As submissões para o edital '
.
$edital
->
titulo
.
' foram encerradas.'
]);
}
$projeto
=
$this
->
atribuirDados
(
$request
,
$edital
);
$projeto
->
save
();
// Email de submissão
...
...
@@ -922,7 +923,7 @@ class TrabalhoController extends Controller
$projeto
->
proponente_id
=
$proponente
->
id
;
// Salvando anexos no storage
$projeto
->
save
();
$pasta
=
'trabalhos/'
.
$edital
->
id
.
'/'
.
$projeto
->
id
;
$projeto
=
$this
->
armazenarAnexosFinais
(
$request
,
$pasta
,
$projeto
,
$edital
);
...
...
resources/views/evento/formulario/anexos.blade.php
View file @
bdcd27f3
...
...
@@ -31,13 +31,13 @@
<input
type=
"file"
class=
"input-group-text"
name=
"anexoCONSU"
placeholder=
"anexoCONSU"
accept=
".pdf"
required
/>
@endcomponent
</div>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
@component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoGrupoPesquisa"
placeholder=
"Anexo do Grupo de Pesquisa"
accept=
"application/pdf"
required
/>
@endcomponent
</div>
<div
class=
"col-md-6"
></div>
<div
class=
"form-group col-md-6"
>
<label
for=
"botao"
class=
"col-form-label @error('botao') is-invalid @enderror"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Se possuir, coloque todas em único arquivo pdf."
style=
"margin-right: 15px;"
>
{{ __('Possui autorizações especiais?') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
type=
"radio"
checked
id=
"radioSim"
onchange=
"displayAutorizacoesEspeciais('sim')"
>
...
...
resources/views/projeto/
f
ormulario/anexos.blade.php
→
resources/views/projeto/
editaF
ormulario/anexos.blade.php
View file @
bdcd27f3
...
...
@@ -76,7 +76,7 @@
</div>
</div>
<div
class=
"col-md-6"
></div>
<div
class=
"form-group col-md-6"
>
<label
for=
"botao"
class=
"col-form-label @error('botao') is-invalid @enderror"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Se possuir, coloque todas em único arquivo pdf."
style=
"margin-right: 15px;"
>
{{ __('Possui autorizações especiais?') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
type=
"radio"
checked
id=
"radioSim"
onchange=
"displayAutorizacoesEspeciais('sim')"
>
...
...
resources/views/projeto/
f
ormulario/finalizar.blade.php
→
resources/views/projeto/
editaF
ormulario/finalizar.blade.php
View file @
bdcd27f3
File moved
resources/views/projeto/
f
ormulario/participantes.blade.php
→
resources/views/projeto/
editaF
ormulario/participantes.blade.php
View file @
bdcd27f3
File moved
resources/views/projeto/
f
ormulario/projeto.blade.php
→
resources/views/projeto/
editaF
ormulario/projeto.blade.php
View file @
bdcd27f3
File moved
resources/views/projeto/
f
ormulario/proponente.blade.php
→
resources/views/projeto/
editaF
ormulario/proponente.blade.php
View file @
bdcd27f3
File moved
resources/views/projeto/editar.blade.php
View file @
bdcd27f3
...
...
@@ -16,21 +16,21 @@
@
endif
<
div
class
=
"row justify-content-center"
>
@
component
(
'projeto.
f
ormulario.projeto'
,
@
component
(
'projeto.
editaF
ormulario.projeto'
,
[
'grandeAreas'
=>
$grandeAreas
,
'projeto'
=>
$projeto
,
'areas'
=>
$areas
,
'subareas'
=>
$subAreas
])
@
endcomponent
@
component
(
'projeto.
f
ormulario.proponente'
,
[
'projeto'
=>
$projeto
])
@
component
(
'projeto.
editaF
ormulario.proponente'
,
[
'projeto'
=>
$projeto
])
@
endcomponent
@
component
(
'projeto.
f
ormulario.anexos'
,
[
'projeto'
=>
$projeto
])
@
component
(
'projeto.
editaF
ormulario.anexos'
,
[
'projeto'
=>
$projeto
])
@
endcomponent
@
component
(
'projeto.
f
ormulario.participantes'
,
[
'estados'
=>
$estados
,
'enum_turno'
=>
$enum_turno
,
'projeto'
=>
$projeto
,
'participantes'
=>
$participantes
,
'arquivos'
=>
$arquivos
])
@
component
(
'projeto.
editaF
ormulario.participantes'
,
[
'estados'
=>
$estados
,
'enum_turno'
=>
$enum_turno
,
'projeto'
=>
$projeto
,
'participantes'
=>
$participantes
,
'arquivos'
=>
$arquivos
])
@
endcomponent
@
component
(
'projeto.
f
ormulario.finalizar'
,
[
'projeto'
=>
$projeto
])
@
component
(
'projeto.
editaF
ormulario.finalizar'
,
[
'projeto'
=>
$projeto
])
@
endcomponent
</
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