diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index f1115bd1597e7757db057f14062514626bf27ae8..b2f0a3ccc85b6a1f256bd42062e75e524b49596e 100644 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -303,7 +303,7 @@ class TrabalhoController extends Controller // Anexo grupo pesquisa if(isset($request->anexoGrupoPesquisa)){ - $trabalho->anexoGrupoPesquisa = Storage::putFileAs($pasta, $request->anexoPlanilha, "Grupo_de_pesquisa.". $request->file('anexoGrupoPesquisa')->extension()); + $trabalho->anexoGrupoPesquisa = Storage::putFileAs($pasta, $request->anexoGrupoPesquisa, "Grupo_de_pesquisa.". $request->file('anexoGrupoPesquisa')->extension()); } return $trabalho; @@ -331,6 +331,8 @@ class TrabalhoController extends Controller 'funcaoParticipantes' => $funcaoParticipantes, 'participantes' => $participantes, 'arquivos' => $arquivos, + 'estados' => $this->estados, + 'visualizar' => true, 'enum_turno' => Participante::ENUM_TURNO, ]); } @@ -794,8 +796,8 @@ class TrabalhoController extends Controller } public function baixarAnexoGrupoPesquisa($id) { $projeto = Trabalho::find($id); - if (Storage::disk()->exists($projeto->anexoProjeto)) { - return Storage::download($projeto->anexoProjeto); + if (Storage::disk()->exists($projeto->anexoGrupoPesquisa)) { + return Storage::download($projeto->anexoGrupoPesquisa); } return abort(404); } @@ -877,6 +879,7 @@ class TrabalhoController extends Controller return redirect()->route('inicial')->with(['error'=> 0, 'mensagem' => 'As submissões para o edital '. $edital->titulo .' foram encerradas.']); } + $projeto = $this->atribuirDados($request, $edital); $projeto->save(); // Email de submissão @@ -920,7 +923,7 @@ class TrabalhoController extends Controller $projeto->proponente_id = $proponente->id; // Salvando anexos no storage - + $projeto->save(); $pasta = 'trabalhos/' . $edital->id . '/' . $projeto->id; $projeto = $this->armazenarAnexosFinais($request, $pasta, $projeto, $edital); diff --git a/resources/views/evento/formulario/anexos.blade.php b/resources/views/evento/formulario/anexos.blade.php index 555e5def6ae32999fbd8a433ae6165f0f6d3c352..d4619080232caa4079d5e2ac3750f2dafdcc172e 100644 --- a/resources/views/evento/formulario/anexos.blade.php +++ b/resources/views/evento/formulario/anexos.blade.php @@ -28,16 +28,16 @@
@component('componentes.input', ['label' => 'Decisão do CONSU (.pdf)']) - + @endcomponent
+
@component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)']) @endcomponent
-
diff --git a/resources/views/evento/formulario/finalizar.blade.php b/resources/views/evento/formulario/finalizar.blade.php index d9c44e63754232f8ef4b35a4dfe535891e3b054f..4393262d4d5842ca01e31cbcc22ccf766ae7dc61 100644 --- a/resources/views/evento/formulario/finalizar.blade.php +++ b/resources/views/evento/formulario/finalizar.blade.php @@ -12,7 +12,7 @@
* Campos obrigatórios
- +
diff --git a/resources/views/evento/rascunho/anexos.blade.php b/resources/views/evento/rascunho/anexos.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..555e5def6ae32999fbd8a433ae6165f0f6d3c352 --- /dev/null +++ b/resources/views/evento/rascunho/anexos.blade.php @@ -0,0 +1,70 @@ + +

3º Passo

+
Anexos
+
+
+
+
+
+
Anexos
+

+ +
+ @component('componentes.input', ['label' => 'Projeto (.pdf)']) + + @endcomponent + +
+ +
+ @component('componentes.input', ['label' => 'Currículo Lattes do Proponente (.pdf)']) + + @endcomponent +
+
+ @component('componentes.input', ['label' => 'Planilha de Pontuação (.xlsx,.xls,.ods)']) + + @endcomponent +
+
+ @component('componentes.input', ['label' => 'Decisão do CONSU (.pdf)']) + + @endcomponent +
+
+ @component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)']) + + @endcomponent + +
+
+
+ + + + +
+ + +
+ @component('componentes.input', ['label' => 'Sim, declaro que necessito de autorizações especiais (.pdf)']) + + @endcomponent +
+ + +
+ + +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/evento/rascunho/finalizar.blade.php b/resources/views/evento/rascunho/finalizar.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..4393262d4d5842ca01e31cbcc22ccf766ae7dc61 --- /dev/null +++ b/resources/views/evento/rascunho/finalizar.blade.php @@ -0,0 +1,21 @@ + +

5º Passo

+
Finalizar
+
+
+
+
+
+
Finalizar
+

+
+
+
* Campos obrigatórios
+ + +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/evento/rascunho/participantes.blade.php b/resources/views/evento/rascunho/participantes.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..92963fa258c8db58c8a9c83def9c4621667a98c9 --- /dev/null +++ b/resources/views/evento/rascunho/participantes.blade.php @@ -0,0 +1,199 @@ + +

4º Passo

+
Área do(s) discente(s)
+
+
+
+
+
Discente(s)
+
+ + {{-- --}} + +
+
+

+
+
    +
  1. +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    Dados do discente
    +
    + @component('componentes.input', ['label' => 'Nome completo']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'E-mail']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Data de nascimento']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'CPF']) + + + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'RG']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Celular']) + + @endcomponent +
    +
    Endereço
    +
    + @component('componentes.input', ['label' => 'CEP']) + + @endcomponent +
    + +
    + @component('componentes.select', ['label' => 'Estado']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Cidade']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Bairro']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Rua']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Número']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Complemento', 'obrigatorio' => '']) + + @endcomponent +
    +
    Dados do curso
    +
    + @component('componentes.input', ['label' => 'Universidade']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Curso']) + + @endcomponent +
    +
    + @component('componentes.select', ['label' => 'Turno']) + + @endcomponent +
    + @php + $options = array('6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); + @endphp +
    + @component('componentes.select', ['label' => 'Total de períodos do curso']) + + @endcomponent +
    +
    + @component('componentes.select', ['label' => 'Período atual']) + + @endcomponent +
    +
    + @component('componentes.select', ['label' => 'Ordem de prioridade']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Coeficiente de rendimento']) + + @endcomponent +
    +
    Plano de trabalho
    +
    + @component('componentes.input', ['label' => 'Título']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Anexo(.pdf)']) + + @endcomponent +
    +
    +
    +
    +
    +
    +
    +
    + +
  2. + +
+ +
+
+ + diff --git a/resources/views/evento/rascunho/projeto.blade.php b/resources/views/evento/rascunho/projeto.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..b11d0c9b98b098c902eb7e4614880b511caa0c86 --- /dev/null +++ b/resources/views/evento/rascunho/projeto.blade.php @@ -0,0 +1,73 @@ + +

1º Passo

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

+ +
+ + + @error('nomeProjeto') + + {{ $message }} + + @enderror +
+ +
+ + + @error('grandeArea') + + {{ $message }} + + @enderror +
+
+ + + + @error('area') + + {{ $message }} + + @enderror +
+
+ + + + + @error('subArea') + + {{ $message }} + + @enderror +
+ +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/evento/rascunho/proponente.blade.php b/resources/views/evento/rascunho/proponente.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..e25cd7b41201761ff2bf9e739967b88911d3af36 --- /dev/null +++ b/resources/views/evento/rascunho/proponente.blade.php @@ -0,0 +1,63 @@ + +

2º Passo

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

+ +
+ + + +
+ +
+ + user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null) + value="{{ Auth()->user()->proponentes->linkLattes }}" + @else + value="" + @endif required > + Ex.: http://lattes.cnpq.br/8363536830656923 + @error('linkLattesEstudante') + + {{ $message }} + + @enderror +
+ +
+ + + + Ex.: http://dgp.cnpq.br/dgp/espelhogrupo/228363 + @error('linkGrupo') + + {{ $message }} + + @enderror +
+
+ + + + @error('pontuacaoPlanilha') + + {{ $message }} + + @enderror +
+ +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/evento/submeterRascunho.blade.php b/resources/views/evento/submeterRascunho.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..868c5da99b3772ccd3a9f67f61d57427952b24df --- /dev/null +++ b/resources/views/evento/submeterRascunho.blade.php @@ -0,0 +1,683 @@ +@extends('layouts.app') + +@section('content') + +
+ {{-- action="{{route('trabalho.store')}}" --}} +
+ @csrf + + +
+ @if (session('mensagem')) + + @endif +
+ + @component('evento.formulario.projeto', ['grandeAreas' => $grandeAreas]) + @endcomponent + + @component('evento.formulario.proponente') + @endcomponent + + @component('evento.formulario.anexos') + @endcomponent + + @component('evento.formulario.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno]) + @endcomponent + + @component('evento.formulario.finalizar') + @endcomponent + +
+
+
+
+ @component('componentes.participante', ['enum_turno' => $enum_turno,'estados' => $estados, ]) + + @endcomponent +
+ + + +
+ + + +@endsection + +@section('javascript') + + + + + + + + + +@endsection diff --git a/resources/views/evento/submeterTrabalho.blade.php b/resources/views/evento/submeterTrabalho.blade.php index 7071e31bcc45de6de392a3fe7f36bf94db134453..0c842de91e88bbac3104c503d6e3cb0f5df19b71 100644 --- a/resources/views/evento/submeterTrabalho.blade.php +++ b/resources/views/evento/submeterTrabalho.blade.php @@ -675,4 +675,4 @@ input.value = resultado; } -@endsection +@endsection \ No newline at end of file diff --git a/resources/views/projeto/Backupvisualizar.blade.php b/resources/views/projeto/Backupvisualizar.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..180bbffa2a85b63903d2bc5c82309df9f2544d67 --- /dev/null +++ b/resources/views/projeto/Backupvisualizar.blade.php @@ -0,0 +1,2084 @@ +@extends('layouts.app') + +@section('content') +
+ {{--
+ @csrf --}} + + +
+
+ + + {{--

1º Passo

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

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

2º Passo

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

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

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') + + {{ $message }} + + @enderror --}} +
+ +
+ Arquivo atual + {{-- @if(old('anexoLattesPreenchido') != null || (isset($rascunho) && $rascunho->anexoLattesCoordenador != "")) + Arquivo atual + @endif + anexoLattesCoordenador != "") value="sim" @else value="{{old('anexoLattesPreenchido')}}" @endif > + +
+ +
+ + +
+
+ Dos últimos 5 anos + @error('anexoLattesCoordenador') + + {{ $message }} + + @enderror --}} +
+
+ Arquivo atual + {{-- @if(old('anexoPlanilhaPreenchido') != null || (isset($rascunho) && $rascunho->anexoPlanilhaPontuacao != "")) + Arquivo atual + @endif + anexoPlanilhaPontuacao != "") value="sim" @else value="{{old('anexoPlanilhaPreenchido')}}" @endif > +
+ +
+ + +
+
+ @error('anexoPlanilha') + + {{ $message }} + + @enderror + @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('anexoCONSU') + + {{ $message }} + + @enderror --}} +
+
+ Arquivo atual
+ {{-- + + +
+ --}} + + {{-- + + --}} +
+ +
+
+
+
+
+ + @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)
--}} +
+
+
+
+
Discente(s)
+ {{--
--}} +
+

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

5º Passo

+
Finalizar
--}} + {{--
+
+
+
+
+
Finalizar
+

+
+
+
* Campos obrigatórios
+ + + +
+
+
+
+
--}} + + +
+
+ {{--
--}} + + + + + +
+@endsection + +@section('javascript') +{{-- + --}} + + + +@endsection diff --git a/resources/views/projeto/formulario/anexos.blade.php b/resources/views/projeto/editaFormulario/anexos.blade.php similarity index 99% rename from resources/views/projeto/formulario/anexos.blade.php rename to resources/views/projeto/editaFormulario/anexos.blade.php index f9648caa16f60094cfbd49438028d85802dd1a81..367b3d9eccf3ecfcc6ba68f5cfd04aaf86d7c863 100644 --- a/resources/views/projeto/formulario/anexos.blade.php +++ b/resources/views/projeto/editaFormulario/anexos.blade.php @@ -76,7 +76,7 @@ -
+
diff --git a/resources/views/projeto/formulario/finalizar.blade.php b/resources/views/projeto/editaFormulario/finalizar.blade.php similarity index 100% rename from resources/views/projeto/formulario/finalizar.blade.php rename to resources/views/projeto/editaFormulario/finalizar.blade.php diff --git a/resources/views/projeto/formulario/participantes.blade.php b/resources/views/projeto/editaFormulario/participantes.blade.php similarity index 100% rename from resources/views/projeto/formulario/participantes.blade.php rename to resources/views/projeto/editaFormulario/participantes.blade.php diff --git a/resources/views/projeto/formulario/projeto.blade.php b/resources/views/projeto/editaFormulario/projeto.blade.php similarity index 100% rename from resources/views/projeto/formulario/projeto.blade.php rename to resources/views/projeto/editaFormulario/projeto.blade.php diff --git a/resources/views/projeto/formulario/proponente.blade.php b/resources/views/projeto/editaFormulario/proponente.blade.php similarity index 100% rename from resources/views/projeto/formulario/proponente.blade.php rename to resources/views/projeto/editaFormulario/proponente.blade.php diff --git a/resources/views/projeto/editar.blade.php b/resources/views/projeto/editar.blade.php index ba9da60675e758d1f0511d9c92dfdfa18c9d8b9b..42c934905995ca157c15810c7e47f4c46e461171 100644 --- a/resources/views/projeto/editar.blade.php +++ b/resources/views/projeto/editar.blade.php @@ -16,21 +16,21 @@ @endif
- @component('projeto.formulario.projeto', + @component('projeto.editaFormulario.projeto', ['grandeAreas' => $grandeAreas, 'projeto' => $projeto, 'areas' => $areas, 'subareas' => $subAreas]) @endcomponent - @component('projeto.formulario.proponente', ['projeto' => $projeto]) + @component('projeto.editaFormulario.proponente', ['projeto' => $projeto]) @endcomponent - @component('projeto.formulario.anexos', ['projeto' => $projeto]) + @component('projeto.editaFormulario.anexos', ['projeto' => $projeto]) @endcomponent - @component('projeto.formulario.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno, 'projeto' => $projeto, 'participantes' => $participantes, 'arquivos' =>$arquivos]) + @component('projeto.editaFormulario.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno, 'projeto' => $projeto, 'participantes' => $participantes, 'arquivos' =>$arquivos]) @endcomponent - @component('projeto.formulario.finalizar', ['projeto' => $projeto]) + @component('projeto.editaFormulario.finalizar', ['projeto' => $projeto]) @endcomponent
@@ -254,6 +254,7 @@ min: jQuery.validator.format("Por favor, forneça um valor maior ou igual a {0}.") }); $( "#criarProjetoForm" ).validate( { + ignore: false, lang: 'PT_BR', rules: { firstname: "required", diff --git a/resources/views/projeto/formularioVisualizar/anexos.blade.php b/resources/views/projeto/formularioVisualizar/anexos.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..a0c6947fd396a5452c4814444019ce453620e4ca --- /dev/null +++ b/resources/views/projeto/formularioVisualizar/anexos.blade.php @@ -0,0 +1,122 @@ + +

3º Passo

+
Anexos
+
+
+
+
+
+
Anexos
+

+ {{-- Anexo do Projeto --}} +
+
+
+ @component('componentes.input', ['label' => 'Projeto (.pdf)']) + @endcomponent +
+
+ +
+
+
+ {{-- Anexo do currículo --}} +
+
+
+ @component('componentes.input', ['label' => 'Currículo Lattes do Proponente (.pdf)']) + + @endcomponent +
+
+ +
+
+
+ {{-- Anexo da Planilha de Pontuação --}} +
+
+
+ @component('componentes.input', ['label' => 'Planilha de Pontuação (.xlsx,.xls,.ods)']) + + @endcomponent +
+
+ +
+
+
+ + {{-- Anexo da Decisão do CONSU --}} +
+
+
+ @component('componentes.input', ['label' => 'Decisão do CONSU (.pdf)']) + + @endcomponent +
+
+ +
+
+
+ + {{-- Anexo do Grupo de Pesquisa --}} +
+
+
+ @component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)']) + + @endcomponent +
+
+ +
+
+
+ {{-- Anexo da autorizações especiais --}} + {{--
--}} +
+
+
+
+
+ +
+
+ + + +
+
+
+ + +
+ @component('componentes.input', ['label' => 'Sim, declaro que necessito de autorizações especiais (.pdf)']) + + @endcomponent +
+ + +
+
+ +
+
+ +
+ + +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/projeto/formularioVisualizar/finalizar.blade.php b/resources/views/projeto/formularioVisualizar/finalizar.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..fcec615a5628cdbd99db47972cd4384e7f8b470d --- /dev/null +++ b/resources/views/projeto/formularioVisualizar/finalizar.blade.php @@ -0,0 +1,21 @@ + +

5º Passo

+
Finalizar
+
+
+
+
+
+
Finalizar
+

+
+
+
* Campos obrigatórios
+ + +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/projeto/formularioVisualizar/participantes.blade.php b/resources/views/projeto/formularioVisualizar/participantes.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..85441ba3e95c0a1ede7091884a73c3b6bf010b99 --- /dev/null +++ b/resources/views/projeto/formularioVisualizar/participantes.blade.php @@ -0,0 +1,215 @@ + +

4º Passo

+
Área do(s) discente(s)
+
+
+
+
+
Discente(s)
+
+ + +
+
+

+
+
    +
  1. +
    +
    + @foreach ($participantes as $key => $p) +
    + + {{--
    + +
    --}} +
    +
    +
    +
    + + +
    Dados do discente
    +
    + @component('componentes.input', ['label' => 'Nome completo']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'E-mail']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Data de nascimento']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'CPF']) + + + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'RG']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Celular']) + + @endcomponent +
    +
    Endereço
    +
    + @component('componentes.input', ['label' => 'CEP']) + + @endcomponent +
    + +
    + @component('componentes.select', ['label' => 'Estado']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Cidade']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Bairro']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Rua']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Número']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Complemento', 'obrigatorio' => '']) + + @endcomponent +
    +
    Dados do curso
    +
    + @component('componentes.input', ['label' => 'Universidade']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Curso']) + + @endcomponent +
    +
    + @component('componentes.select', ['label' => 'Turno']) + + @endcomponent +
    + @php + $options = array('6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); + @endphp +
    + @component('componentes.select', ['label' => 'Total de períodos do curso']) + + @endcomponent +
    +
    + @component('componentes.select', ['label' => 'Período atual']) + + @endcomponent +
    +
    + @php + $ordens = array('1' => 1, '2' => 2,'3' => 3,); + @endphp + @component('componentes.select', ['label' => 'Ordem de prioridade']) + + @endcomponent +
    +
    + @component('componentes.input', ['label' => 'Coeficiente de rendimento']) + + @endcomponent +
    +
    Plano de trabalho
    +
    + {{-- @dd($arquivos) --}} + @component('componentes.input', ['label' => 'Título']) + + @endcomponent +
    +
    +
    +
    + @component('componentes.input', ['label' => 'Anexo(.pdf)']) + @endcomponent +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + +
    + @endforeach +
    +
    + +
  2. + +
+ +
+
+ + diff --git a/resources/views/projeto/formularioVisualizar/projeto.blade.php b/resources/views/projeto/formularioVisualizar/projeto.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..9482f04dd83e532a72cf3e555f4089bd31e9f5c0 --- /dev/null +++ b/resources/views/projeto/formularioVisualizar/projeto.blade.php @@ -0,0 +1,76 @@ + +

1º Passo

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

+ +
+ + + @error('nomeProjeto') + + {{ $message }} + + @enderror +
+ {{-- @dd($projeto->grandeArea->nome) --}} +
+ + + @error('grandeArea') + + {{ $message }} + + @enderror +
+
+ + + + @error('area') + + {{ $message }} + + @enderror +
+
+ + + + + @error('subArea') + + {{ $message }} + + @enderror +
+ +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/projeto/formularioVisualizar/proponente.blade.php b/resources/views/projeto/formularioVisualizar/proponente.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..3af78c51b552e3fae23681444941d7c1cffc3c88 --- /dev/null +++ b/resources/views/projeto/formularioVisualizar/proponente.blade.php @@ -0,0 +1,63 @@ + +

2º Passo

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

+ +
+ + + +
+ +
+ + user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null) + value="{{ Auth()->user()->proponentes->linkLattes }}" + @else + value="" + @endif disabled > + Ex.: http://lattes.cnpq.br/8363536830656923 + @error('linkLattesEstudante') + + {{ $message }} + + @enderror +
+ +
+ + + + Ex.: http://dgp.cnpq.br/dgp/espelhogrupo/228363 + @error('linkGrupo') + + {{ $message }} + + @enderror +
+
+ + + + @error('pontuacaoPlanilha') + + {{ $message }} + + @enderror +
+ +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/projeto/visualizar.blade.php b/resources/views/projeto/visualizar.blade.php index 180bbffa2a85b63903d2bc5c82309df9f2544d67..caa0080800c7d25b3bdb5b75d225b9aeb19e254f 100644 --- a/resources/views/projeto/visualizar.blade.php +++ b/resources/views/projeto/visualizar.blade.php @@ -1,1197 +1,50 @@ @extends('layouts.app') @section('content') +
- {{--
- @csrf --}} + {{-- action="{{route('trabalho.store')}}" --}} + + @csrf -
-
- - - {{--

1º Passo

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

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

2º Passo

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

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

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') - - {{ $message }} - - @enderror --}} -
- -
- Arquivo atual - {{-- @if(old('anexoLattesPreenchido') != null || (isset($rascunho) && $rascunho->anexoLattesCoordenador != "")) - Arquivo atual - @endif - anexoLattesCoordenador != "") value="sim" @else value="{{old('anexoLattesPreenchido')}}" @endif > - -
- -
- - -
-
- Dos últimos 5 anos - @error('anexoLattesCoordenador') - - {{ $message }} - - @enderror --}} -
-
- Arquivo atual - {{-- @if(old('anexoPlanilhaPreenchido') != null || (isset($rascunho) && $rascunho->anexoPlanilhaPontuacao != "")) - Arquivo atual - @endif - anexoPlanilhaPontuacao != "") value="sim" @else value="{{old('anexoPlanilhaPreenchido')}}" @endif > -
- -
- - -
-
- @error('anexoPlanilha') - - {{ $message }} - - @enderror - @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('anexoCONSU') - - {{ $message }} - - @enderror --}} -
-
- Arquivo atual
- {{-- - - -
- --}} - - {{-- + @endif +
- --}} -
- -
-
-
-
-
- - @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)
--}} -
-
-
-
-
Discente(s)
- {{--
--}} -
-

-
- -
-
Selecione o número de participantes do projeto
-
- - - -
-
- -
- -
- -
- -
-
- -
-
-
+ @component('projeto.formularioVisualizar.anexos', ['projeto' => $projeto]) + @endcomponent - - - {{--

5º Passo

-
Finalizar
--}} - {{--
-
-
-
-
-
Finalizar
-

-
-
-
* Campos obrigatórios
- - - -
-
-
-
-
--}} - + @component('projeto.formularioVisualizar.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno, 'projeto' => $projeto, 'participantes' => $participantes, 'arquivos' =>$arquivos]) + @endcomponent + {{-- @component('projeto.formularioVisualizar.finalizar', ['projeto' => $projeto]) + @endcomponent --}} +
- {{-- --}} - -