"app/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "741ef9bb3d6d1ba0857fbf8e5160df9947b0c873"
Unverified Commit a0d90418 authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #568 from GuilhermeGz/master

Alteração no acesso de editar proposta por admin e alterada listagem de avaliadores para avaliação de relatório
parents a5c6815f 43ca658e
...@@ -51,9 +51,11 @@ ...@@ -51,9 +51,11 @@
<div class="col-md-12"> <div class="col-md-12">
<h5 style="color: #1492E6;">{{$trabalho->titulo}} <h5 style="color: #1492E6;">{{$trabalho->titulo}}
@if(Auth::user()->tipo == 'administrador')
<a class="ml-2 mb-5" href="{{ route('trabalho.editar', ['id' => $trabalho->id]) }}"> <a class="ml-2 mb-5" href="{{ route('trabalho.editar', ['id' => $trabalho->id]) }}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#234B8B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34"></path><polygon points="18 2 22 6 12 16 8 16 8 12 18 2"></polygon></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#234B8B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34"></path><polygon points="18 2 22 6 12 16 8 16 8 12 18 2"></polygon></svg>
</a> </a>
@endif
</h5> </h5>
</div> </div>
...@@ -634,14 +636,14 @@ ...@@ -634,14 +636,14 @@
</div> </div>
@php @php
$avaliacoesId = \App\AvaliacaoRelatorio::where("arquivo_id",$participante->planoTrabalho->id)->where("tipo",$tipoTemp)->pluck('user_id'); $avaliacoesId = \App\AvaliacaoRelatorio::where("arquivo_id",$participante->planoTrabalho->id)->where("tipo",$tipoTemp)->pluck('user_id');
$avalProjeto = \App\User::whereNotIn('id', $avaliacoesId)->where('tipo','avaliador')->orderBy('name')->get(); $avalProjeto = \Illuminate\Support\Facades\DB::table('users')->join('avaliadors','users.id','=','avaliadors.user_id')->whereNotIn('users.id', $avaliacoesId)->orderBy('users.name')->get();
@endphp @endphp
<select name="avaliadores_{{$participante->planoTrabalho->id}}_id[]" multiple <select name="avaliadores_{{$participante->planoTrabalho->id}}_id[]" multiple
class="form-control" id="avaliacaoSelect" class="form-control" id="avaliacaoSelect"
style="height: 200px;font-size:15px"> style="height: 200px;font-size:15px">
@foreach ($avalProjeto as $avaliador) @foreach ($avalProjeto as $avaliador)
<option value="{{ $avaliador->id }}"> {{ $avaliador->name }} <option value="{{ $avaliador->user_id }}"> {{ $avaliador->name }}
> {{$avaliador->instituicao ?? 'Instituição Indefinida'}} > {{$avaliador->instituicao ?? 'Instituição Indefinida'}}
> {{$avaliador->tipo}} > {{$avaliador->tipo}}
> {{$avaliador->email}}</option> > {{$avaliador->email}}</option>
......
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