Unverified Commit 8aebe419 authored by José Rômulo's avatar José Rômulo Committed by GitHub
Browse files

Merge pull request #164 from J-Romulo/master

Correções visualizar parecer para avaliador
parents d4e489d3 ea8c0a0f
...@@ -80,7 +80,7 @@ class AvaliadorController extends Controller ...@@ -80,7 +80,7 @@ class AvaliadorController extends Controller
}else{ }else{
$anexoParecer = $request->anexoParecer; $anexoParecer = $request->anexoParecer;
$path = 'anexoParecer/' . $avaliador->id . $trabalho->id . '/'; $path = 'anexoParecer/' . $avaliador->id . $trabalho->id . '/';
$nome = "parecer.pdf"; $nome = $anexoParecer->getClientOriginalName();
Storage::putFileAs($path, $anexoParecer, $nome); Storage::putFileAs($path, $anexoParecer, $nome);
$anexoParecer = $path . $nome; $anexoParecer = $path . $nome;
......
...@@ -86,9 +86,15 @@ ...@@ -86,9 +86,15 @@
<form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST"> <form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST">
@csrf @csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" > <input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" >
<button type="submit" class="btn btn-primary mr-2 ml-2" > @if($trabalho->pivot->parecer == null)
Parecer <button type="submit" class="btn btn-primary mr-2 ml-2" >
</button> Parecer
</button>
@else
<button type="submit" class="btn btn-secondary mr-2 ml-2" >
Enviado
</button>
@endif
</form> </form>
</div> </div>
......
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