Commit 7092f348 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Adicionada restrição de substituição apenas para propostas aprovadas

parent 8f5d9d89
...@@ -82,6 +82,10 @@ ...@@ -82,6 +82,10 @@
<td style="color: rgb(0, 0, 0); text-align: center">Submetido</td> <td style="color: rgb(0, 0, 0); text-align: center">Submetido</td>
@elseif($projeto->status == 'rascunho') @elseif($projeto->status == 'rascunho')
<td style="color: rgb(0, 0, 0); text-align: center">Rascunho</td> <td style="color: rgb(0, 0, 0); text-align: center">Rascunho</td>
@elseif($projeto->status == 'aprovado')
<td style="color: rgb(0, 0, 0); text-align: center">Aprovado</td>
@elseif($projeto->status == 'negado')
<td style="color: rgb(0, 0, 0); text-align: center">Negado</td>
@endif @endif
<td> <td>
<div class="dropright dropdown-options" style="width: 100%; text-align:center; float:none"> <div class="dropright dropdown-options" style="width: 100%; text-align:center; float:none">
...@@ -94,9 +98,9 @@ ...@@ -94,9 +98,9 @@
Editar Editar
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@elseif($projeto->evento->resultado_final <= $hoje) @elseif($projeto->evento->resultado_final <= $hoje || $projeto->status== 'aprovado')
<a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;"> <a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;">
Substituir participante</a> Solicitar Substituição</a>
@endif @endif
<a href="{{ route('trabalho.show', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center"> <a href="{{ route('trabalho.show', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center">
Visualizar Visualizar
......
...@@ -106,7 +106,8 @@ ...@@ -106,7 +106,8 @@
Editar Editar
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@elseif($projeto->evento->resultado_final <= $hoje) @endif
@if( $projeto->status== 'aprovado')
<a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;"> <a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;">
Solicitar Substituições Solicitar Substituições
</a> </a>
......
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