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
}
public function projetosEdital($id) {
$edital = Evento::find($id);
$projetos = Trabalho::where('evento_id', '=', $id)->where('proponente_id', Auth::user()->proponentes->id)->orderBy('titulo')->paginate(10);
$hoje = Carbon::today('America/Recife');
$hoje = $hoje->toDateString();
return view('proponente.projetosEdital')->with(['edital' => $edital, 'projetos' => $projetos, 'hoje'=>$hoje]);
$edital = Evento::find($id);
if(Auth::user()->proponentes != null){
$projetos = Trabalho::where('evento_id', '=', $id)->where('proponente_id', Auth::user()->proponentes->id)->orderBy('titulo')->paginate(10);
$hoje = Carbon::today('America/Recife');
$hoje = $hoje->toDateString();
return view('proponente.projetosEdital')->with(['edital' => $edital, 'projetos' => $projetos, 'hoje'=>$hoje]);
}else{
return redirect()->route('inicial');
}
}
public function solicitarDesligamento(Request $request){
......
......@@ -991,13 +991,13 @@
<input class="col-md-1" type="radio" id="aprovado" name="statusProp"
value="aprovado" required
@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>
<input class="col-md-1" type="radio" id="reprovado" name="statusProp"
value="reprovado" required
@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>
......@@ -1575,7 +1575,7 @@
document.getElementById("aprovado").onclick = function () {
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 () {
var s = document.getElementById("comentario");
......
......@@ -22,6 +22,7 @@
<div class="col-md-11">
<br>
<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)
value="{{ Auth()->user()->proponentes->linkLattes }}"
@else
......
......@@ -16,12 +16,12 @@
<div class="col-md-3" style="margin-top: 15px">
<input class="col-md-1" type="radio" id="aprovado" name="statusProp" value="aprovado" required disabled
@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>
<input class="col-md-1" type="radio" id="reprovado" name="statusProp" value="reprovado" required disabled
@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>
......
......@@ -87,12 +87,13 @@
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
</a>
<div class="dropdown-menu">
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
Editar
</a>
<hr class="dropdown-hr">
@if($hoje <= $projeto->evento->inicioProjeto)
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
Editar
</a>
<hr class="dropdown-hr">
@endif
@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;">
......
......@@ -108,11 +108,14 @@
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
</a>
<div class="dropdown-menu">
@if($hoje <= $edital->inicioProjeto)
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
Editar
</a>
<hr class="dropdown-hr">
@endif
@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;">
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