Commit 900cd536 authored by Gabriel-31415's avatar Gabriel-31415
Browse files

encaminhamento do botao salvar rascunho para a tela de projetos do proponente

parent fbc5e0d2
......@@ -27,10 +27,9 @@
</div>
<div class="col-sm-3">
<!-- Se usuário não é proponente, redirecionar para view de cadastro -->
@if(Auth::user()->proponentes == null)
@if(Auth::user()->proponentes->where('user_id', Auth::user()->id)->count() == 0) == null)
<a href="{{ route('proponente.create' )}}" class="btn btn-primary" style="position:relative; float: right;">Criar projeto</a>
@elseif(Auth::user()->participantes->where('user_id', Auth::user()->id)->count() == 0)
@else
<a href="{{ route('trabalho.index', ['id' => $edital->id] )}}" class="btn btn-primary" style="position:relative; float: right;">Criar projeto</a>
@endif
</div>
......
......@@ -14,7 +14,7 @@
<div class="container" >
<div class="row" >
<div class="col-sm-12">
<h3>Projetos submetidos</h3>
<h3>Meus Projetos</h3>
</div>
</div>
</div>
......@@ -30,7 +30,7 @@
</thead>
<tbody>
@foreach ($projetos as $projeto)
@if ($projeto->status != 'Rascunho')
<tr>
<td>
{{ $projeto->titulo }}
......@@ -72,7 +72,7 @@
</div>
</td>
</tr>
@endif
<!-- Modal -->
<div class="modal fade" id="modal{{$projeto->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
......
......@@ -26,7 +26,7 @@
<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-3">
<a href="{{ route('proponente.create' )}}" class="btn btn-primary" style="position:relative; float: right;">Criar projeto</a>
<a href="{{ route('trabalho.index', ['id' => $edital->id] )}}" class="btn btn-primary" style="position:relative; float: right;">Criar projeto</a>
</div>
</div>
</div>
......
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