diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index e8ee43a5345a6eb9f5157fef5c1686db9cf37f88..7d9c5388dc79e8743b48627873bf8a6e6617b06e 100644 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -505,27 +505,27 @@ class TrabalhoController extends Controller public function show($id) { // - $projeto = Trabalho::find($id); - $edital = Evento::find($projeto->evento_id); - $grandeArea = GrandeArea::where('id', $projeto->grande_area_id)->select('nome')->first(); - $area = Area::where('id', $projeto->area_id)->select('nome')->first(); - $subarea = Subarea::where('id', $projeto->sub_area_id)->select('nome')->first(); - $proponente = Proponente::find($projeto->proponente_id); - $funcaoParticipantes = FuncaoParticipantes::all(); - $participantes = Participante::where('trabalho_id', $id)->get(); - $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get(); - $users = User::whereIn('id', $participantesUsersIds)->get(); - $arquivos = Arquivo::where('trabalhoId', $id)->get(); + $projeto = Trabalho::find($id); + $edital = Evento::find($projeto->evento_id); + $grandeAreas = GrandeArea::all(); + $areas = Area::all(); + $subareas = Subarea::all(); + $funcaoParticipantes = FuncaoParticipantes::all(); + $participantes = Participante::where('trabalho_id', $id)->get(); + $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get(); + $users = User::whereIn('id', $participantesUsersIds)->get(); + $arquivos = Arquivo::where('trabalhoId', $id)->get(); return view('projeto.visualizar')->with(['projeto' => $projeto, - 'grandeArea' => $grandeArea, - 'area' => $area, - 'subArea' => $subarea, - 'proponente' => $proponente, - 'edital' => $edital, - 'users' => $users, - 'funcaoParticipantes' => $funcaoParticipantes, - 'participantes' => $participantes, - 'arquivos' => $arquivos,]); + 'grandeAreas' => $grandeAreas, + 'areas' => $areas, + 'subAreas' => $subareas, + 'edital' => $edital, + 'users' => $users, + 'funcaoParticipantes' => $funcaoParticipantes, + 'participantes' => $participantes, + 'arquivos' => $arquivos, + 'enum_turno' => Participante::ENUM_TURNO, + ]); } /** @@ -1371,7 +1371,7 @@ class TrabalhoController extends Controller public function atualizar(Request $request, $id) { $edital = Evento::find($request->editalId); $hoje = now(); - + $projeto = Trabalho::find($id); if (!($edital->inicioSubmissao < $hoje && $edital->fimSubmissao >= $hoje)) { diff --git a/public/css/layout.css b/public/css/layout.css index 5f4b373b9d59c16c5db86f50efcd4dd29c769b46..7c9d06a6ecf4cd8602ba97bb52996b2195be40af 100644 --- a/public/css/layout.css +++ b/public/css/layout.css @@ -220,7 +220,8 @@ body{ border-radius: 5px; } -.flexcroll{ width:500px; +.flexcroll{ + width:99%; height:400px; overflow-y:inherit; overflow-x:hidden; diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 43473e71f1f11a42f0ef072d6fc3fd8817c0a74d..64325983d33377ec15e53c850588ce78a2dc0867 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -54,8 +54,28 @@ - @elseif($fimSub < $today && $fimRev >= $today || $i == 1) - + {{-- - @elseif($fimRev <= $today) + --}} + {{-- @elseif($fimRev <= $today) + --}} @endif @endforeach @@ -107,7 +127,7 @@
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index de54286845de809cb0a0e03c24d2bb88e0e282bc..4395189becf5e03210a1fb1cc9ee9a78d0eb1365 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -108,11 +108,12 @@
Entrar
+
- + @error('email') {{ $message }} @@ -333,7 +334,7 @@ event.stopPropagation(); }); }); - @if(old('email') != null) + @if(old('login') != null) $(document).ready(function() { $('#dropdownMenuLink').click(); }); diff --git a/resources/views/projeto/editar.blade.php b/resources/views/projeto/editar.blade.php index 1d572ee54fa245fab2a797f232894b27836f9a64..5ee3461935f3b7921803fa893660410608f61869 100644 --- a/resources/views/projeto/editar.blade.php +++ b/resources/views/projeto/editar.blade.php @@ -1,129 +1,136 @@ @extends('layouts.app') @section('content') -
- -
-
-
-
-
Editar Projeto
-

-

- @csrf - - - {{-- Nome do Projeto --}} -
-
- - - - @error('nomeTrabalho') - - {{ $message }} - - @enderror +
+ + @csrf + + +
+
+ + + {{--

1º Passo

+
Preencha os campos com as informações do projeto
--}} +
+
+ +
+
+
+
Informações do projeto
+

+ +
+ + + @error('nomeProjeto') + + {{ $message }} + + @enderror
-
- - {{-- Grande Area --}} -
-
- - - @error('grandeArea') - - {{ $message }} - - @enderror +
+ + + @error('grandeArea') + + {{ $message }} + + @enderror
-
- - - - @error('area') - - {{ $message }} - - @enderror +
+ + + + @error('area') + + {{ $message }} + + @enderror
-
- - - - @error('subArea') - - {{ $message }} - - @enderror +
+ + + + + @error('subArea') + + {{ $message }} + + @enderror
+
- - - - - - - - - -
-

Coordenador

- - {{-- Coordenador --}} -
- -
- - +
+
+
+
+ + + {{--

2º Passo

+
Preencha os campos com as informações do proponente
--}} +
+
+
+
+
+
Informações do proponente
+

+ +
+ + +
-
- - user()->proponentes->linkLattes != null) + +
+ + user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null) value="{{ Auth()->user()->proponentes->linkLattes }}" @else - value="" - @endif > - + value="" + @endif required> + Ex.: http://lattes.cnpq.br/8363536830656923 @error('linkLattesEstudante') {{ $message }} @enderror
-
- - +
+ + @error('pontuacaoPlanilha') @@ -131,33 +138,49 @@ @enderror
-
- - +
+ + + Ex.: http://dgp.cnpq.br/dgp/espelhogrupo/228363 @error('linkGrupo') {{ $message }} @enderror
- +
- -
-

Anexos

- - {{-- Anexo do Projeto --}} -
- {{-- Arquivo --}} -
- Arquivo atual - +
+
+
+
+ + + {{--

3º Passo

+
Anexos
--}} +
+
+
+
+
+
Anexos
Para alterar os arquivos envie os novos
+

+ +
+ Arquivo atual + @if(old('anexoProjetoPreenchido') != null || (isset($rascunho) && $rascunho->anexoProjeto != "")) + Arquivo atual + @endif + anexoProjeto != "") value="sim" @else value="{{old('anexoProjetoPreenchido')}}" @endif >
- - + +
@error('anexoProjeto') @@ -167,827 +190,1087 @@ @enderror
-
- Arquivo atual +
+ Arquivo atual + @if(old('anexoLattesPreenchido') != null || (isset($rascunho) && $rascunho->anexoLattesCoordenador != "")) + Arquivo atual + @endif + anexoLattesCoordenador != "") value="sim" @else value="{{old('anexoLattesPreenchido')}}" @endif >
- - + +
- @error('anexoLatterCoordenador') + Dos últimos 5 anos + @error('anexoLattesCoordenador') {{ $message }} @enderror
- - - - - -
- Arquivo atual -
- - +
+ Arquivo atual + @if(old('anexoPlanilhaPreenchido') != null || (isset($rascunho) && $rascunho->anexoPlanilhaPontuacao != "")) + Arquivo atual + @endif + anexoPlanilhaPontuacao != "") value="sim" @else value="{{old('anexoPlanilhaPreenchido')}}" @endif >
-
- - + +
- @error('anexoComiteEtica') + @error('anexoPlanilha') {{ $message }} @enderror -
- -
- Arquivo atual - -
- -
- - -
-
- @error('anexoPlanilha') + @error('anexoPlanilhaPontuacao') {{ $message }} @enderror
- -
- - +
+ Arquivo atual + @if(old('anexoConsuPreenchido') != null || (isset($rascunho) && $rascunho->anexoDecisaoCONSU != "" && $rascunho->anexoDecisaoCONSU != null)) + Arquivo atual + @endif + anexoDecisaoCONSU != "") value="sim" @else value="{{old('anexoConsuPreenchido')}}" @endif required>
-
- - + +
- @error('justificativaAutorizacaoEtica') + @error('anexoCONSU') {{ $message }} @enderror
- - @if($edital->tipo == 'PIBIC' || $edital->tipo == 'PIBIC-EM') - {{-- Decisão do CONSU --}} -
- Arquivo atual - -
- -
- - +
+ Arquivo atual
+ + + +
+ + + + + - @error('anexoCONSU') - - {{ $message }} - - @enderror
- @endif +
+
+
+
+
-
-

Participantes

- + @php + $resultado_participante_um = array_key_exists(0, $participantes->toArray()); + $resultado_participante_dois = array_key_exists(1, $participantes->toArray()); + $resultado_participante_tres = array_key_exists(2, $participantes->toArray()); + @endphp + + + {{--

4º Passo

+
Área do(s) participante(s)
--}} +
+
+
+
+
Participante(s)
+
+
+

+
+ +
+
Selecione o número de participantes do projeto
+
+ + + +
+
+ +
+