Commit fc37f40e authored by Danillo Bion's avatar Danillo Bion
Browse files

modificacoes na tela do proponente - lista de projetos submetidos

parent 747ad96f
...@@ -28,17 +28,17 @@ ...@@ -28,17 +28,17 @@
</div> </div>
<div class="card-body" > <div class="card-body" >
<table class="table table-bordered" style="display: block; <table class="table table-bordered table-hover" style="display: block;
overflow-x: auto; overflow-x: auto;
white-space: nowrap; border-radius:10px"> white-space: nowrap; border-radius:10px">
<thead> <thead>
<tr> <tr>
<th scope="col" style="width: 100%; color:#909090">Edital</th> <th scope="col" style="width: 100%;">Edital</th>
<th scope="col" style="text-align: center; color:#909090">Inicio da Submissão</th> <th scope="col" style="text-align: center;">Inicio da Submissão</th>
<th scope="col" style="text-align: center; color:#909090">Fim da Submissão</th> <th scope="col" style="text-align: center;">Fim da Submissão</th>
<th scope="col" style="text-align: center; color:#909090">Data do Resultado</th> <th scope="col" style="text-align: center;">Data do Resultado</th>
<th scope="col" style="text-align: center; color:#909090">Baixar Edital</th> <th scope="col" style="text-align: center;">Baixar Edital</th>
<th scope="col" style="text-align: center; color:#909090">Opção</th> <th scope="col" style="text-align: center;">Opção</th>
</tr> </tr>
</thead> </thead>
<tbody id="eventos"> <tbody id="eventos">
......
@extends('layouts.app') @extends('layouts.app')
@section('content') @section('content')
<div class="container" style="margin-top: 100px;">
<div class="container">
@if(isset($mensagem)) @if(isset($mensagem))
<div class="col-sm-12"> <div class="col-sm-12">
<br> <br>
...@@ -19,26 +19,35 @@ ...@@ -19,26 +19,35 @@
</div> </div>
</div> </div>
@endif @endif
<div class="container" > <div class="row justify-content-center" style="margin-top: 2rem;">
<div class="row" > <div class="col-md-11">
<div class="col-sm-1"> <div class="card" style="border-radius: 12px; padding:14px">
<a href="{{ route('proponente.editais') }}" class="btn btn-secondary" style="position:relative; float: right;">Voltar</a>
<div class="card-body" style="margin-bottom: -2rem">
<div class="d-flex justify-content-between align-items-center">
<div class="bottomVoltar">
<a href="{{ route('proponente.editais') }}" class="btn btn-secondary" style="position:relative; float: right;"><img src="{{asset('img/icons/logo_esquerda.png')}}" alt="" width="15px"></a>
</div> </div>
<div class="col-sm-9" style="text-align: center"> <div>
<h4 class="titulo-table">Projetos do edital {{ $edital->nome }}</h4> <h5 style="color: #1492E6; margin-top:0.5rem">Projetos submetidos - {{ $edital->nome }}</h5>
<h6 class="titulo-table">Submissão irá até o dia <span style="color: rgb(0, 0, 0);">{{ date('d/m/Y', strtotime($edital->fimSubmissao)) }}</span></h6> <h6 class="titulo-table" style="color: red">Submissão irá até o dia <span style="color: red">{{ date('d/m/Y', strtotime($edital->fimSubmissao)) }}</span></h6>
</div> </div>
<div class="col-sm-2"> <div>
<a @if($edital->inicioSubmissao <= $hoje && $hoje <= $edital->fimSubmissao) href="{{ route('trabalho.index', ['id' => $edital->id] )}}" class="btn btn-info" @else href="#" data-toggle="tooltip" data-placement="top" title="O periodo de submissão foi encerrado." @endif style="position:relative; float: right;">Criar projeto</a> <a @if($edital->inicioSubmissao <= $hoje && $hoje <= $edital->fimSubmissao) href="{{ route('trabalho.index', ['id' => $edital->id] )}}" class="btn btn-info" @else href="#" data-toggle="tooltip" data-placement="top" title="O periodo de submissão foi encerrado." @endif style="position:relative; float: right;">Criar projeto</a>
</div> </div>
</div> </div>
<div style="margin-top:-10px"><hr style="border-top: 1px solid#1492E6"></div>
</div> </div>
<hr>
<table class="table table-bordered"> <div class="card-body" >
@if(count($projetos)>0)
<table class="table table-bordered table-hover" style="display: block;
overflow-x: auto;
white-space: nowrap; border-radius:10px">
<thead> <thead>
<tr> <tr>
<th scope="col">Nome do projeto</th> <th scope="col" style="width:100%">Nome do projeto</th>
<th scope="col">Status</th> <th scope="col" style="text-align:center">Status</th>
<th scope="col">Data de Criação</th> <th scope="col">Data de Criação</th>
<th scope="col">Opção</th> <th scope="col">Opção</th>
</tr> </tr>
...@@ -51,16 +60,16 @@ ...@@ -51,16 +60,16 @@
{{ $projeto->titulo }} {{ $projeto->titulo }}
</td> </td>
@if($projeto->status == 'Avaliado') @if($projeto->status == 'Avaliado')
<td style="color: rgb(6, 85, 6)">Avaliado</td> <td style="color: rgb(6, 85, 6); text-align: center">Avaliado</td>
@elseif($projeto->status == 'Submetido') @elseif($projeto->status == 'Submetido')
<td style="color: rgb(0, 0, 0)">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)">Rascunho</td> <td style="color: rgb(0, 0, 0); text-align: center">Rascunho</td>
@endif @endif
<td>{{ date('d-m-Y', strtotime($projeto->updated_at)) }}</td> <td style="text-align: center">{{ date('d-m-Y', strtotime($projeto->updated_at)) }}</td>
<td> <td>
<div class="btn-group dropright dropdown-options"> <div class="dropright dropdown-options" style="width: 100%; text-align:center; float:none">
<a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a id="options" class="dropdown-toggle btn btn-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<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">
...@@ -115,6 +124,23 @@ ...@@ -115,6 +124,23 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
@else
<div class="form-row justify-content-center" style="margin-top: 5rem; margin-bottom:9rem;">
<div class="col-md-12" style="text-align: center; margin-bottom:20px">
<img src="{{asset('img/icons/logo_projeto.png')}}" style="width:200px">
</div>
<div class="col-md-12" style="text-align: center; color:#909090">
<h5>Nenhum projeto submetido!</h5>
</div>
<div class="col-md-12" style="text-align: center;">
<a href="{{ route('trabalho.index', ['id' => $edital->id] )}}">Cliquei aqui para submeter um projeto.</a>
</div>
</div>
@endif
</div>
</div>
</div>
</div>
</div> </div>
@endsection @endsection
......
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