Unverified Commit 3e48f4d1 authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #440 from antonioDurval/master

Correções de erro e atualizações da semana
parents b2677c52 de299588
...@@ -110,12 +110,16 @@ class ProponenteController extends Controller ...@@ -110,12 +110,16 @@ class ProponenteController extends Controller
} }
public function projetosEdital($id) { public function projetosEdital($id) {
$edital = Evento::find($id); $edital = Evento::find($id);
$projetos = Trabalho::where('evento_id', '=', $id)->where('proponente_id', Auth::user()->proponentes->id)->orderBy('titulo')->paginate(10); if(Auth::user()->proponentes != null){
$hoje = Carbon::today('America/Recife'); $projetos = Trabalho::where('evento_id', '=', $id)->where('proponente_id', Auth::user()->proponentes->id)->orderBy('titulo')->paginate(10);
$hoje = $hoje->toDateString(); $hoje = Carbon::today('America/Recife');
$hoje = $hoje->toDateString();
return view('proponente.projetosEdital')->with(['edital' => $edital, 'projetos' => $projetos, 'hoje'=>$hoje]);
return view('proponente.projetosEdital')->with(['edital' => $edital, 'projetos' => $projetos, 'hoje'=>$hoje]);
}else{
return redirect()->route('inicial');
}
} }
public function solicitarDesligamento(Request $request){ public function solicitarDesligamento(Request $request){
......
...@@ -991,13 +991,13 @@ ...@@ -991,13 +991,13 @@
<input class="col-md-1" type="radio" id="aprovado" name="statusProp" <input class="col-md-1" type="radio" id="aprovado" name="statusProp"
value="aprovado" required value="aprovado" required
@if($trabalho->status=="aprovado") checked @endif> @if($trabalho->status=="aprovado") checked @endif>
<a style="color: #234B8B; font-weight: bold;font-size: 18px;">Recomendado</a> <a style="color: #234B8B; font-weight: bold;font-size: 18px;">Recomendada</a>
<br> <br>
<input class="col-md-1" type="radio" id="reprovado" name="statusProp" <input class="col-md-1" type="radio" id="reprovado" name="statusProp"
value="reprovado" required value="reprovado" required
@if($trabalho->status=="reprovado") checked @endif> @if($trabalho->status=="reprovado") checked @endif>
<a style="color: #234B8B; font-weight: bold;font-size: 18px;">Não Recomendado</a> <a style="color: #234B8B; font-weight: bold;font-size: 18px;">Não Recomendada</a>
</div> </div>
</div> </div>
...@@ -1575,7 +1575,7 @@ ...@@ -1575,7 +1575,7 @@
document.getElementById("aprovado").onclick = function () { document.getElementById("aprovado").onclick = function () {
var s = document.getElementById("comentario"); var s = document.getElementById("comentario");
s.innerHTML = 'Proposta cumpriu todos os requisitos estabelecidos no edital'; s.innerHTML = 'Proposta cumpriu todos os requisitos estabelecidos no edital.';
}; };
document.getElementById("reprovado").onclick = function () { document.getElementById("reprovado").onclick = function () {
var s = document.getElementById("comentario"); var s = document.getElementById("comentario");
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div class="col-md-11"> <div class="col-md-11">
<br> <br>
<input class="form-control @error('linkLattesEstudante') is-invalid @enderror" type="text" name="linkLattesEstudante" <input class="form-control @error('linkLattesEstudante') is-invalid @enderror" type="text" name="linkLattesEstudante"
readonly="readonly"
@if(Auth()->user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null) @if(Auth()->user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null)
value="{{ Auth()->user()->proponentes->linkLattes }}" value="{{ Auth()->user()->proponentes->linkLattes }}"
@else @else
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<div class="col-md-3" style="margin-top: 15px"> <div class="col-md-3" style="margin-top: 15px">
<input class="col-md-1" type="radio" id="aprovado" name="statusProp" value="aprovado" required disabled <input class="col-md-1" type="radio" id="aprovado" name="statusProp" value="aprovado" required disabled
@if($projeto->status=="aprovado") checked @endif> @if($projeto->status=="aprovado") checked @endif>
<a style="color: #234B8B; font-weight: bold;font-size: 18px;">Recomendado</a> <a style="color: #234B8B; font-weight: bold;font-size: 18px;">Recomendada</a>
<br> <br>
<input class="col-md-1" type="radio" id="reprovado" name="statusProp" value="reprovado" required disabled <input class="col-md-1" type="radio" id="reprovado" name="statusProp" value="reprovado" required disabled
@if($projeto->status=="reprovado") checked @endif> @if($projeto->status=="reprovado") checked @endif>
<a style="color: #234B8B; font-weight: bold;font-size: 18px;">Não Recomendado</a> <a style="color: #234B8B; font-weight: bold;font-size: 18px;">Não Recomendada</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -87,12 +87,13 @@ ...@@ -87,12 +87,13 @@
<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">
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;"> @if($hoje <= $projeto->evento->inicioProjeto)
Editar <a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
</a> Editar
<hr class="dropdown-hr"> </a>
<hr class="dropdown-hr">
@endif
@if( $projeto->status== 'aprovado') @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;">
......
...@@ -108,11 +108,14 @@ ...@@ -108,11 +108,14 @@
<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($hoje <= $edital->inicioProjeto)
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;"> <a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
Editar Editar
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@endif
@if( $projeto->status== 'aprovado') @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
......
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