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
2adf25a7
Commit
2adf25a7
authored
Apr 11, 2023
by
Yuri Resende
Browse files
Alterando a visualização dos projetos submetidos para o coordenador e para o proponente
parent
520f206f
Changes
5
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
2adf25a7
...
...
@@ -848,6 +848,16 @@ class TrabalhoController extends Controller
return
abort
(
404
);
}
public
function
baixarAnexoSIPAC
(
$id
)
{
$projeto
=
Trabalho
::
find
(
$id
);
if
(
Storage
::
disk
()
->
exists
(
$projeto
->
anexo_SIPAC
))
{
ob_end_clean
();
return
Storage
::
download
(
$projeto
->
anexo_SIPAC
);
}
return
abort
(
404
);
}
public
function
baixarAnexoTemp
(
$eventoId
,
$nomeAnexo
)
{
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
2adf25a7
...
...
@@ -435,8 +435,9 @@
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-start"
>
@
if
(
$evento
->
tipo
!=
"CONTINUO"
)
{{
--
Anexo
do
Projeto
--
}}
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
...
...
@@ -522,14 +523,25 @@
@
endif
</
div
>
@
endif
@
else
<
div
class
=
"col-sm-4"
>
<
label
for
=
"anexo_SIPAC"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Anexo SIPAC: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.SIPAC', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
if
(
$evento
->
tipo
!=
"CONTINUO"
)
<!--
Relatórios
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-12"
>
...
...
@@ -914,6 +926,7 @@
</
div
>
</
div
>
<!--
Avaliadores
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-12"
>
...
...
@@ -1279,7 +1292,7 @@
</
div
>
</
div
>
</
div
>
@
endif
<!--
Aprovar
ou
Negar
Proposta
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"col-md-12"
>
...
...
resources/views/projeto/formularioVisualizar/anexos2.blade.php
View file @
2adf25a7
...
...
@@ -10,6 +10,7 @@
{{-- Anexo do Projeto --}}
<div
class=
"row justify-content-start"
>
@if($edital->tipo != "CONTINUO")
{{-- Arquivo --}}
<div
class=
"col-sm-4"
style=
"float: left"
>
<label
for=
"anexoProjeto"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Projeto: ') }}
</label>
...
...
@@ -81,6 +82,16 @@
@endif
</div>
@endif
@else
<div
class=
"col-sm-4"
>
<label
for=
"anexo_SIPAC"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Anexo SIPAC: ') }}
</label>
<a
href=
"{{ route('baixar.anexo.SIPAC', ['id' => $projeto->id])}}"
><img
class=
""
src=
"{{asset('img/icons/pdf.ico')}}"
style=
"width:40px"
alt=
""
></a>
</div>
@endif
</div>
</div>
...
...
resources/views/projeto/visualizar.blade.php
View file @
2adf25a7
...
...
@@ -42,10 +42,11 @@
@
endcomponent
@
endif
@
if
(
$edital
->
tipo
!=
"CONTINUO"
)
@
component
(
'projeto.formularioVisualizar.relatorio'
,[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
,
'flagSubstituicao'
=>
$flagSubstituicao
,
'AvalRelatParcial'
=>
$AvalRelatParcial
,
'AvalRelatFinal'
=>
$AvalRelatFinal
,
'cont'
=>
0
])
@
endcomponent
@
endif
@
component
(
'projeto.formularioVisualizar.resultado2'
,
[
'projeto'
=>
$projeto
])
@
endcomponent
...
...
routes/web.php
View file @
2adf25a7
...
...
@@ -219,6 +219,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () {
Route
::
get
(
'/baixar/evento-temp/{nomeAnexo}'
,
'TrabalhoController@baixarEventoTemp'
)
->
name
(
'baixar.evento.temp'
);
Route
::
get
(
'/baixar/documentosParticipante'
,
'ParticipanteController@baixarDocumento'
)
->
name
(
'baixar.documentosParticipante'
);
Route
::
get
(
'/baixar/anexoDocExtra/{id}'
,
'TrabalhoController@baixarAnexoDocExtra'
)
->
name
(
'baixar.anexo.docExtra'
);
Route
::
get
(
'/baixar/anexoSIPAC/{id}'
,
'TrabalhoController@baixarAnexoSIPAC'
)
->
name
(
'baixar.anexo.SIPAC'
);
});
Route
::
get
(
'/baixar/edital/{id}'
,
'EventoController@baixarEdital'
)
->
name
(
'baixar.edital'
);
...
...
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