diff --git a/app/Http/Controllers/ProponenteController.php b/app/Http/Controllers/ProponenteController.php index e23e697c7edd88031fe97a4ae75dead09940dcc9..5d0e4dae6495b20f146c2065cace9d78c4be4229 100755 --- a/app/Http/Controllers/ProponenteController.php +++ b/app/Http/Controllers/ProponenteController.php @@ -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){ diff --git a/resources/views/administrador/analisarProposta.blade.php b/resources/views/administrador/analisarProposta.blade.php index fd0355879c7e70dd2a8d3d35339a0fe9f97cfee4..13aaed6049883be67033dee93324c96ddf44da1f 100644 --- a/resources/views/administrador/analisarProposta.blade.php +++ b/resources/views/administrador/analisarProposta.blade.php @@ -156,14 +156,10 @@
{{$participante->user->name}}
- +
Informações - -
- - Remover - +
@@ -171,12 +167,12 @@ role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
- +
Avaliadores - @@ -946,7 +942,7 @@
{{$avaliador->user->name}}
- + @if($avaliador->trabalhos->where('id', $trabalho->id)->first()->pivot->status == false) Pendente @else Avaliado @endif @@ -995,13 +991,13 @@ status=="aprovado") checked @endif> - Recomendado + Recomendada
status=="reprovado") checked @endif> - Não Recomendado + Não Recomendada
@@ -1579,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"); @@ -1927,7 +1923,7 @@ } } - + } @endsection diff --git a/resources/views/administrador/editar_user.blade.php b/resources/views/administrador/editar_user.blade.php index ab4be32a0ec3714f9a882da58a12400ee0e1df02..444ba4c3b38e7c291f05129bb43783bdfc763a8f 100755 --- a/resources/views/administrador/editar_user.blade.php +++ b/resources/views/administrador/editar_user.blade.php @@ -7,28 +7,28 @@

{{ __('Editar um usuário') }}

- +
@csrf {{-- Nome | CPF --}}
- +
- + @error('name') {{ $message }} @enderror
- +
- + @error('cpf') {{ $message }} @@ -44,11 +44,11 @@ @if($user->instituicao != "UFAPE") - @endif + @endif - - + + @error('instituicaoSelect') {{ $message }} @@ -62,7 +62,7 @@ {{ $message }} - @enderror + @enderror
@@ -75,27 +75,27 @@ -
+
- + @error('celular') {{ $message }} @enderror
- +
- + {{-- Email | Senha | Confirmar Senha --}}
- +
- + @error('email') {{ $message }} @@ -104,10 +104,10 @@
- + @if(!(is_null($proponente)))
- +

Dados do proponente

@@ -120,14 +120,14 @@ - + @error('cargo') {{ $message }} @enderror
- +
- + @error('vinculo') {{ $message }} @enderror
- + - +
@@ -173,18 +173,18 @@ - + @error('titulacaoMaxima') {{ $message }} @enderror
- +
- + @error('anoTitulacao') {{ $message }} @@ -194,7 +194,7 @@
- + @error('areaFormacao') {{ $message }} @@ -202,31 +202,31 @@ @enderror
- +
- +
- + @error('SIAPE') {{ $message }} @enderror
- +
- + @error('linkLattes') {{ $message }} @enderror
- +

- + @@ -262,7 +262,7 @@ - +
- + @error('vinculo') {{ $message }} @enderror
- +
- +
@@ -356,18 +356,18 @@ - + @error('titulacaoMaxima') {{ $message }} @enderror
- +
- + @error('anoTitulacao') {{ $message }} @@ -377,7 +377,7 @@
- + @error('areaFormacao') {{ $message }} @@ -385,31 +385,31 @@ @enderror
- +
- +
- + @error('SIAPE') {{ $message }} @enderror
- +
- + @error('linkLattes') {{ $message }} @enderror
- +

- + @@ -444,7 +444,7 @@
- + @@ -456,7 +456,7 @@
@endif - +
@@ -479,18 +479,18 @@ $('#SIAPE').mask('00000000'); }); - + function mudar() { var divProponente = document.getElementById('proponente'); var comboBoxTipo = document.getElementById('tipo'); - + if (comboBoxTipo.value == "proponente") { divProponente.style.display = "block"; } else { divProponente.style.display = "none"; } } - + function outroVinculo() { var comboBoxVinculo = document.getElementById('vinculo'); @@ -522,7 +522,7 @@ // instituicaoSelect.style.display = "none"; // instituicao.style.display = "inline"; // } - if(instituicaoSelect.value === "Outra"){ + if(instituicaoSelect.value === "Outra"){ instituicaoSelect.parentElement.className = 'col-md-2'; instituicao.parentElement.style.display = ''; }else if(instituicaoSelect.value === "UFAPE"){ diff --git a/resources/views/evento/formulario/participantes.blade.php b/resources/views/evento/formulario/participantes.blade.php index 741bde561a3aa421db426fbd2c75f4a3dffa0427..5c446f8eeffa97a4b00d994cb0bb1667fa179f40 100755 --- a/resources/views/evento/formulario/participantes.blade.php +++ b/resources/views/evento/formulario/participantes.blade.php @@ -20,17 +20,22 @@
@for($i = 0; $i < $edital->numParticipantes; $i++) -