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 @@
@@ -171,12 +167,12 @@
role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
-
+
@@ -899,7 +895,7 @@
-
+
Avaliadores -
@@ -946,7 +942,7 @@
@@ -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') }}
-
+
-
+
{{-- Email | Senha | Confirmar Senha --}}
-
+
@if(!(is_null($proponente)))
-
+
Dados do proponente
@@ -120,14 +120,14 @@
-
+
@error('cargo')
{{ $message }}
@enderror
-
+
-
+
@error('vinculo')
{{ $message }}
@enderror
-
+
-
+
@error('outro')
{{ $message }}
@@ -160,7 +160,7 @@
@enderror
-
+
@@ -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++)
-