Commit 52265def authored by Carlos André's avatar Carlos André
Browse files

ajustes

parent 37d6dc55
...@@ -6,6 +6,18 @@ ...@@ -6,6 +6,18 @@
<div class="container" > <div class="container" >
<div class="row" > <div class="row" >
<div class="col-sm-1" style="text-align: left; flaot:left;">
<a href="{{ route('proponente.index') }}" class="btn btn-secondary" style="position:relative; float: right;">Voltar</a>
</div>
<div class="col-sm-7" style="text-align: center;">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-8">
<h4 class="titulo-table">Editais</h4>
</div>
</div>
</div>
<div class="col-sm-4"> <div class="col-sm-4">
<div class="row"> <div class="row">
<div class="col-sm-2"> <div class="col-sm-2">
...@@ -18,14 +30,6 @@ ...@@ -18,14 +30,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-1">
</div>
<div class="col-sm-5" style="float: center;">
<h4 class="titulo-table">Editais</h4>
</div>
<div class="col-sm-2">
</div>
</div> </div>
</div> </div>
<hr> <hr>
......
...@@ -13,8 +13,29 @@ ...@@ -13,8 +13,29 @@
@endif @endif
<div class="container" > <div class="container" >
<div class="row" > <div class="row" >
<div class="col-sm-12"> <div class="col-sm-1">
<h3>Meus Projetos</h3> <a href="{{ route('proponente.index') }}" class="btn btn-secondary" style="position:relative; float: right;">Voltar</a>
</div>
<div class="col-sm-7" style="text-align: center">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-8">
<h4 class="titulo-table">Meus Projetos</h4>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row">
<div class="col-sm-2">
<button class="btn" onclick="buscarEdital(this.parentElement.parentElement.children[1].children[0])">
<img src="{{asset('img/icons/logo_lupa.png')}}" alt="">
</button>
</div>
<div class="col-sm-10">
<input type="text" class="form-control form-control-edit" placeholder="Digite o nome do edital" onkeyup="buscarEdital(this)">
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -21,17 +21,15 @@ ...@@ -21,17 +21,15 @@
@endif @endif
<div class="container" > <div class="container" >
<div class="row" > <div class="row" >
<div class="col-sm-9">
<h3>Projetos do edital {{ $edital->nome }}</h3>
<h6 style="color: rgb(4, 78, 4);">Submissão irá até o dia {{ date('d-m-Y', strtotime($edital->fimSubmissao)) }}</h6>
</div>
<div class="col-sm-1"> <div class="col-sm-1">
<a href="{{ route('proponente.editais') }}" class="btn btn-primary" style="position:relative; float: right;">Voltar</a> <a href="{{ route('proponente.editais') }}" class="btn btn-secondary" style="position:relative; float: right;">Voltar</a>
</div>
<div class="col-sm-9" style="text-align: center">
<h4 class="titulo-table">Projetos do edital {{ $edital->nome }}</h4>
<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>
</div> </div>
<div class="col-sm-2"> <div class="col-sm-2">
<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> </div>
...@@ -45,7 +43,7 @@ ...@@ -45,7 +43,7 @@
<th scope="col">Opção</th> <th scope="col">Opção</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody id="projetos">
@foreach ($projetos as $projeto) @foreach ($projetos as $projeto)
@if ($projeto->proponente_id === Auth()->user()->proponentes->id) @if ($projeto->proponente_id === Auth()->user()->proponentes->id)
<tr> <tr>
...@@ -120,7 +118,22 @@ ...@@ -120,7 +118,22 @@
@section('javascript') @section('javascript')
<script> <script>
function buscarEdital(input) {
var editais = document.getElementById('projetos').children;
if(input.value.length > 2) {
for(var i = 0; i < editais.length; i++) {
var nomeEvento = editais[i].children[0].textContent;
if(nomeEvento.substr(0).indexOf(input.value) >= 0) {
editais[i].style.display = "";
} else {
editais[i].style.display = "none";
}
}
} else {
for(var i = 0; i < editais.length; i++) {
editais[i].style.display = "";
}
}
}
</script> </script>
@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