Commit 0e62cea7 authored by GuilhermeGz's avatar GuilhermeGz
Browse files

Adicionada janela de confirmação ao remover avaliador

parent 5dd03291
...@@ -920,7 +920,8 @@ ...@@ -920,7 +920,8 @@
href="{{ route('admin.visualizarParecerInterno', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id]) }}">Avaliado</a> @endif href="{{ route('admin.visualizarParecerInterno', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id]) }}">Avaliado</a> @endif
</h9> </h9>
<br> <br>
<a href="{{ route('admin.removerProjAval', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id,'flag'=>1]) }}" > <a onclick="return confirm('Tem certeza que deseja remover o avaliador {{$avaliador->user->name}}?')"
href="{{ route('admin.removerProjAval', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id,'flag'=>1]) }}" >
Remover Remover
</a> </a>
<br> <br>
...@@ -952,7 +953,8 @@ ...@@ -952,7 +953,8 @@
</h9> </h9>
<br> <br>
<a href="{{ route('admin.removerProjAval', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id,'flag'=>0]) }}" > <a onclick="return confirm('Tem certeza que deseja remover o avaliador {{$avaliador->user->name}}?')"
href="{{ route('admin.removerProjAval', ['trabalho_id' => $trabalho->id, 'avaliador_id' => $avaliador->id,'flag'=>0]) }}" >
Remover Remover
</a> </a>
<br> <br>
......
...@@ -117,7 +117,9 @@ ...@@ -117,7 +117,9 @@
@csrf @csrf
<input type="hidden" name="avaliador_id" value="{{ $avaliador->id }}" > <input type="hidden" name="avaliador_id" value="{{ $avaliador->id }}" >
<input type="hidden" name="evento_id" value="{{ $evento->id }}" > <input type="hidden" name="evento_id" value="{{ $evento->id }}" >
<button type="submit" class="btn btn-danger" @if($avaliador->trabalhos->where('evento_id', $evento->id)->count() != 0) disabled="disabled" @endif >Remover</button> <button type="submit" class="btn btn-danger" @if($avaliador->trabalhos->where('evento_id', $evento->id)->count() != 0) disabled="disabled" @endif
onclick="return confirm('Tem certeza que deseja remover o avaliador {{$avaliador->user->name}}?')"
>Remover</button>
</form> </form>
<form action="{{ route('admin.reenviarConvite') }}" method="POST"> <form action="{{ route('admin.reenviarConvite') }}" method="POST">
@csrf @csrf
......
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