Commit e4a1c30d authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Ajustes nas opções de ações que podem ser feitas pelo proponente a uma proposta

parent 78fef228
...@@ -76,16 +76,10 @@ ...@@ -76,16 +76,10 @@
{{ $projeto->titulo }} {{ $projeto->titulo }}
</td> </td>
<td style="text-align: center">{{ date('d-m-Y \à\s H:i\h', strtotime($projeto->updated_at)) }}</td> <td style="text-align: center">{{ date('d-m-Y \à\s H:i\h', strtotime($projeto->updated_at)) }}</td>
@if($projeto->status == 'avaliado') @if($projeto->status !=null)
<td style="color: rgb(6, 85, 6); text-align: center">Avaliado</td> <td style="color: rgb(6, 85, 6); text-align: center;text-transform: capitalize;">{{$projeto->status}}</td>
@elseif($projeto->status == 'submetido' || $projeto->status == 'submetido') @else
<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')
<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">
...@@ -93,30 +87,53 @@ ...@@ -93,30 +87,53 @@
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px"> <img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
</a> </a>
<div class="dropdown-menu"> <div class="dropdown-menu">
@if($projeto->evento->inicioSubmissao <= $hoje && $hoje <= $projeto->evento->fimSubmissao)
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;"> @if( $projeto->status== 'aprovado')
Editar <a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;">
Solicitar Substituições
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@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('docComplementar.listar', ['projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center">
Solicitar Substituição</a> Documentos Complementares
</a>
<hr class="dropdown-hr">
<a href="" class="dropdown-item" style="text-align: center">
Solicitar Certificado
</a>
<hr class="dropdown-hr">
@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
</a> </a>
<hr class="dropdown-hr">
<a href="{{route('planos.listar', ['id' => $projeto->id])}}" class="dropdown-item" style="text-align: center">
Relatórios
</a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
{{-- <a href="" class="dropdown-item" style="text-align: center"> {{-- <a href="" class="dropdown-item" style="text-align: center">
Recorrer Recorrer
</a> </a>
--}} --}}
<!-- Button trigger modal deletar --> <!-- Button trigger modal -->
<div class="container">
<div class="row">
<div class="col text-center" style="margin-left: 20px">
<button type="button" class="dropdown-item dropdown-item-delete" data-toggle="modal" data-target="#modal{{$projeto->id}}" style="text-align: center"> <button type="button" class="dropdown-item dropdown-item-delete" data-toggle="modal" data-target="#modal{{$projeto->id}}" style="text-align: center">
<img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> Deletar <img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> Deletar
</button> </button>
</div> </div>
</div> </div>
</div>
</div>
</div>
</td> </td>
</tr> </tr>
@endif @endif
......
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
<th scope="col" style="width:100%">Nome do projeto</th> <th scope="col" style="width:100%">Nome do projeto</th>
<th scope="col">Data de Criação</th> <th scope="col">Data de Criação</th>
<th scope="col" style="text-align:center">Status</th> <th scope="col" style="text-align:center">Status</th>
<th scope="col" style="text-align:center">Opção</th>
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -88,13 +89,12 @@ ...@@ -88,13 +89,12 @@
{{ $projeto->titulo }} {{ $projeto->titulo }}
</td> </td>
<td style="text-align: center">{{ date('d-m-Y', strtotime($projeto->updated_at)) }}</td> <td style="text-align: center">{{ date('d-m-Y', strtotime($projeto->updated_at)) }}</td>
@if($projeto->status == 'Avaliado' || $projeto->status == 'avaliado') @if($projeto->status !=null)
<td style="color: rgb(6, 85, 6); text-align: center">Avaliado</td> <td style="color: rgb(6, 85, 6); text-align: center;text-transform: capitalize;">{{$projeto->status}}</td>
@elseif($projeto->status == 'Submetido' || $projeto->status == 'submetido') @else
<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' || $projeto->status == 'rascunho')
<td style="color: rgb(0, 0, 0); text-align: center">Rascunho</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">
<a id="options" class="dropdown-toggle btn btn-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a id="options" class="dropdown-toggle btn btn-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
...@@ -112,6 +112,17 @@ ...@@ -112,6 +112,17 @@
Solicitar Substituições Solicitar Substituições
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
<a href="{{route('docComplementar.listar', ['projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center">
Documentos Complementares
</a>
<hr class="dropdown-hr">
<a href="" class="dropdown-item" style="text-align: center">
Solicitar Certificado
</a>
<hr class="dropdown-hr">
@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
...@@ -129,11 +140,18 @@ ...@@ -129,11 +140,18 @@
--}} --}}
<!-- Button trigger modal --> <!-- Button trigger modal -->
<div class="container">
<div class="row">
<div class="col text-center" style="margin-left: 20px">
<button type="button" class="dropdown-item dropdown-item-delete" data-toggle="modal" data-target="#modal{{$projeto->id}}" style="text-align: center"> <button type="button" class="dropdown-item dropdown-item-delete" data-toggle="modal" data-target="#modal{{$projeto->id}}" style="text-align: center">
<img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> Deletar <img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> Deletar
</button> </button>
</div> </div>
</div> </div>
</div>
</div>
</div>
</td> </td>
</tr> </tr>
@endif @endif
......
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