Commit 2adf25a7 authored by Yuri Resende's avatar Yuri Resende
Browse files

Alterando a visualização dos projetos submetidos para o coordenador e para o proponente

parent 520f206f
...@@ -848,6 +848,16 @@ class TrabalhoController extends Controller ...@@ -848,6 +848,16 @@ class TrabalhoController extends Controller
return abort(404); 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) public function baixarAnexoTemp($eventoId, $nomeAnexo)
{ {
$proponente = Proponente::where('user_id', Auth::user()->id)->first(); $proponente = Proponente::where('user_id', Auth::user()->id)->first();
......
...@@ -435,8 +435,9 @@ ...@@ -435,8 +435,9 @@
</div> </div>
<hr style="border-top: 1px solid#1492E6"> <hr style="border-top: 1px solid#1492E6">
{{-- Anexo do Projeto --}}
<div class="row justify-content-start"> <div class="row justify-content-start">
@if($evento->tipo != "CONTINUO")
{{-- Anexo do Projeto --}}
{{-- Arquivo --}} {{-- Arquivo --}}
<div class="col-sm-4"> <div class="col-sm-4">
<label for="anexoProjeto" class="col-form-label font-tam" <label for="anexoProjeto" class="col-form-label font-tam"
...@@ -522,14 +523,25 @@ ...@@ -522,14 +523,25 @@
@endif @endif
</div> </div>
@endif @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> </div>
@endif
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@if($evento->tipo != "CONTINUO")
<!--Relatórios--> <!--Relatórios-->
<div class="row justify-content-center" style="margin-top: 20px;"> <div class="row justify-content-center" style="margin-top: 20px;">
<div class="col-md-12"> <div class="col-md-12">
...@@ -914,6 +926,7 @@ ...@@ -914,6 +926,7 @@
</div> </div>
</div> </div>
<!--Avaliadores--> <!--Avaliadores-->
<div class="row justify-content-center" style="margin-top: 20px;"> <div class="row justify-content-center" style="margin-top: 20px;">
<div class="col-md-12"> <div class="col-md-12">
...@@ -1279,7 +1292,7 @@ ...@@ -1279,7 +1292,7 @@
</div> </div>
</div> </div>
</div> </div>
@endif
<!--Aprovar ou Negar Proposta--> <!--Aprovar ou Negar Proposta-->
<div class="row justify-content-center" style="margin-top: 20px;"> <div class="row justify-content-center" style="margin-top: 20px;">
<div class="col-md-12"> <div class="col-md-12">
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
{{-- Anexo do Projeto --}} {{-- Anexo do Projeto --}}
<div class="row justify-content-start"> <div class="row justify-content-start">
@if($edital->tipo != "CONTINUO")
{{-- Arquivo --}} {{-- Arquivo --}}
<div class="col-sm-4" style="float: left"> <div class="col-sm-4" style="float: left">
<label for="anexoProjeto" class="col-form-label font-tam" style="font-weight: bold">{{ __('Projeto: ') }}</label> <label for="anexoProjeto" class="col-form-label font-tam" style="font-weight: bold">{{ __('Projeto: ') }}</label>
...@@ -81,6 +82,16 @@ ...@@ -81,6 +82,16 @@
@endif @endif
</div> </div>
@endif @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>
</div> </div>
......
...@@ -42,10 +42,11 @@ ...@@ -42,10 +42,11 @@
@endcomponent @endcomponent
@endif @endif
@if($edital->tipo != "CONTINUO")
@component('projeto.formularioVisualizar.relatorio',['edital' => $edital,'projeto' => $projeto,'flagSubstituicao' =>$flagSubstituicao, @component('projeto.formularioVisualizar.relatorio',['edital' => $edital,'projeto' => $projeto,'flagSubstituicao' =>$flagSubstituicao,
'AvalRelatParcial' => $AvalRelatParcial, 'AvalRelatFinal' => $AvalRelatFinal, 'cont' => 0]) 'AvalRelatParcial' => $AvalRelatParcial, 'AvalRelatFinal' => $AvalRelatFinal, 'cont' => 0])
@endcomponent @endcomponent
@endif
@component('projeto.formularioVisualizar.resultado2', @component('projeto.formularioVisualizar.resultado2',
['projeto' => $projeto]) ['projeto' => $projeto])
@endcomponent @endcomponent
......
...@@ -219,6 +219,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () { ...@@ -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/evento-temp/{nomeAnexo}', 'TrabalhoController@baixarEventoTemp')->name('baixar.evento.temp');
Route::get('/baixar/documentosParticipante', 'ParticipanteController@baixarDocumento')->name('baixar.documentosParticipante'); Route::get('/baixar/documentosParticipante', 'ParticipanteController@baixarDocumento')->name('baixar.documentosParticipante');
Route::get('/baixar/anexoDocExtra/{id}', 'TrabalhoController@baixarAnexoDocExtra')->name('baixar.anexo.docExtra'); 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'); Route::get('/baixar/edital/{id}', 'EventoController@baixarEdital')->name('baixar.edital');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment