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

Merge pull request #167 from J-Romulo/master

Correção botao "parecer" em perfil avaliador
parents 3899c871 29dfb44b
......@@ -223,7 +223,45 @@
</div>
</div>
</div>
<hr>
<h4>Avaliadores</h4>
<table class="table table-bordered" style="margin-top:20px">
<thead>
<tr>
<th scope="col">Nome</th>
<th scope="col">E-mail</th>
<th scope="col">Status avaliação</th>
<th scope="col" style="text-align:center">Ação</th>
</tr>
</thead>
<tbody>
@foreach($trabalho->avaliadors as $avaliador)
<tr>
<td>{{$avaliador->user->name}}</td>
<td>{{$avaliador->user->email}}</td>
<td>@if($avaliador->pivot->parecer == null) Pendente @else Avaliado @endif</td>
<td>
<div class="btn-group dropright dropdown-options">
<a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
</a>
<div class="dropdown-menu">
@if($avaliador->pivot->parecer != null)
<a href="{{ route('admin.visualizarParecer', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id]) }}" class="dropdown-item text-center">
Vizualizar Parecer
</a>
@else
<a href="{{ route('admin.removerProjAval', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id]) }}" class="dropdown-item text-center">
Desatribuir Avaliador
</a>
@endif
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</p>
</div>
{{-- </div> --}}
......
......@@ -86,7 +86,7 @@
<form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST">
@csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" >
@if($trabalho->pivot->parecer == null)
@if($trabalho->pivot->AnexoParecer == null)
<button type="submit" class="btn btn-primary mr-2 ml-2" >
Parecer
</button>
......
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