diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index 2b2e3c680e6015e7ccd338b178e96a12d4ef796c..88fb0c9fd59bf69f46af969809e95e7138771c89 100644 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -49,18 +49,48 @@ class TrabalhoController extends Controller if($proponente == null){ return view('proponente.cadastro')->with(['mensagem' => 'Você não possui perfil de Proponente, para submeter algum projeto preencha o formulário.']);; } - + $estados = array( + 'AC' => 'Acre', + 'AL' => 'Alagoas', + 'AP' => 'Amapá', + 'AM' => 'Amazonas', + 'BA' => 'Bahia', + 'CE' => 'Ceará', + 'DF' => 'Distrito Federal', + 'ES' => 'Espirito Santo', + 'GO' => 'Goiás', + 'MA' => 'Maranhão', + 'MS' => 'Mato Grosso do Sul', + 'MT' => 'Mato Grosso', + 'MG' => 'Minas Gerais', + 'PA' => 'Pará', + 'PB' => 'Paraíba', + 'PR' => 'Paraná', + 'PE' => 'Pernambuco', + 'PI' => 'Piauí', + 'RJ' => 'Rio de Janeiro', + 'RN' => 'Rio Grande do Norte', + 'RS' => 'Rio Grande do Sul', + 'RO' => 'Rondônia', + 'RR' => 'Roraima', + 'SC' => 'Santa Catarina', + 'SP' => 'São Paulo', + 'SE' => 'Sergipe', + 'TO' => 'Tocantins', + ); $rascunho = Trabalho::where('proponente_id', $proponente->id)->where('evento_id',$edital->id)->where('status', 'Rascunho') ->orderByDesc('updated_at')->first(); - //dd($rascunho); + // dd($estados); return view('evento.submeterTrabalho',[ + // return view('evento.backupForm',[ 'edital' => $edital, 'grandeAreas' => $grandeAreas, 'funcaoParticipantes'=> $funcaoParticipantes, 'rascunho' => $rascunho, - 'enum_turno' => Participante::ENUM_TURNO + 'enum_turno' => Participante::ENUM_TURNO, + 'estados' => $estados, ]); } diff --git a/public/js/form.js b/public/js/form.js new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/resources/views/componentes/input.blade.php b/resources/views/componentes/input.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..8f45163f74eca4958d9c95d1ffa9852cd6c1d72a --- /dev/null +++ b/resources/views/componentes/input.blade.php @@ -0,0 +1,6 @@ +
+ +
+ {{ $slot }} +
+
diff --git a/resources/views/componentes/select.blade.php b/resources/views/componentes/select.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..2b85bab8933935c0c3a4e9f5e089e3f5ca75ebf8 --- /dev/null +++ b/resources/views/componentes/select.blade.php @@ -0,0 +1,4 @@ +
+ + {{ $slot }} +
\ No newline at end of file diff --git a/resources/views/evento/backupForm.blade.php b/resources/views/evento/backupForm.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..7627c6b6f4b24c6c70e60dee55e64b23aa5d9852 --- /dev/null +++ b/resources/views/evento/backupForm.blade.php @@ -0,0 +1,1410 @@ +@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 > + 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
+

+ +
+ + @if(old('anexoProjetoPreenchido') != null || (isset($rascunho) && $rascunho->anexoProjeto != "")) + Arquivo atual + @endif + anexoProjeto != "") value="sim" @else value="{{old('anexoProjetoPreenchido')}}" @endif > + +
+ +
+ + +
+
+ @error('anexoProjeto') + + {{ $message }} + + @enderror +
+ +
+ + @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 +
+
+ + @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 +
+
+ + @if(old('anexoConsuPreenchido') != null || (isset($rascunho) && $rascunho->anexoDecisaoCONSU != "" && $rascunho->anexoDecisaoCONSU != null)) + Arquivo atual + @endif + anexoDecisaoCONSU != "") value="sim" @else value="{{old('anexoConsuPreenchido')}}" @endif > +
+ +
+ + +
+
+ @error('anexoCONSU') + + {{ $message }} + + @enderror +
+
+ + + + +
+ + + + + +
+ +
+
+
+
+
+ + +

4º Passo

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

+
+ + + +
    +
  1. + +
  2. + +
+ +
+
+ + + +

5º Passo

+
Finalizar
+
+
+
+
+
+
Finalizar
+

+
+
+
* Campos obrigatórios
+ + +
+
+
+
+
+ +
+
+
+ + + +
+ + +@endsection + +@section('javascript') + +@endsection diff --git a/resources/views/evento/formulario/anexos.blade.php b/resources/views/evento/formulario/anexos.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..843866d9de5b210488fa30f9f80d17f30a06df7d --- /dev/null +++ b/resources/views/evento/formulario/anexos.blade.php @@ -0,0 +1,101 @@ + +

3º Passo

+
Anexos
+
+
+
+
+
+
Anexos
+

+ +
+ @component('componentes.input', ['label' => 'Anexo do projeto']) + + @endcomponent + +
+ +
+ @component('componentes.input', ['label' => 'Anexo do currículo Lattes do Coordenador']) + + @endcomponent +
+
+ @component('componentes.input', ['label' => 'Anexo da Planilha de Pontuação']) + + @endcomponent +
+
+ @component('componentes.input', ['label' => 'Decisão do CONSU']) + + @endcomponent +
+
+ + + + +
+ + + + + +
+ +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/evento/formulario/finalizar.blade.php b/resources/views/evento/formulario/finalizar.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..de350b2029a5588fc0d292edc879ca763e79549d --- /dev/null +++ b/resources/views/evento/formulario/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/formulario/participantes.blade.php b/resources/views/evento/formulario/participantes.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..c51176ac0c7253bcd87ccd16519cb34a9998b8f2 --- /dev/null +++ b/resources/views/evento/formulario/participantes.blade.php @@ -0,0 +1,192 @@ + +

4º Passo

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

+
+
    +
  1. +
    +
    +
    + {{-- + --}} + + +
    +
    +
    +
    +
    Dados do participante
    +
    + @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']) + + @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']) + + @endcomponent +
    +
    +
    +
    +
    +
    +
    +
    + +
  2. + +
+ +
+
+ + diff --git a/resources/views/evento/formulario/projeto.blade.php b/resources/views/evento/formulario/projeto.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..8f9fe49b3dd790e9bc3e3b547d1c5e12e799d965 --- /dev/null +++ b/resources/views/evento/formulario/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/formulario/proponente.blade.php b/resources/views/evento/formulario/proponente.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..064df0dbae024cfad95cd94e6aca46c1a6824c44 --- /dev/null +++ b/resources/views/evento/formulario/proponente.blade.php @@ -0,0 +1,62 @@ + +

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 +
+ +
+
+
+
+
+ \ No newline at end of file diff --git a/resources/views/evento/submeterTrabalho.blade.php b/resources/views/evento/submeterTrabalho.blade.php index 2d7430193990c757bafdbca784abd88a6c4ee1a1..23bf3e2b6d1fc802753e8b668454d0b8cc14106b 100644 --- a/resources/views/evento/submeterTrabalho.blade.php +++ b/resources/views/evento/submeterTrabalho.blade.php @@ -1,1166 +1,38 @@ @extends('layouts.app') @section('content') +
-
+ {{-- 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 -
- -
-
-
-
-
- - -

3º Passo

-
Anexos
-
-
-
-
-
-
Anexos
-

- -
- - @if(old('anexoProjetoPreenchido') != null || (isset($rascunho) && $rascunho->anexoProjeto != "")) - Arquivo atual - @endif - anexoProjeto != "") value="sim" @else value="{{old('anexoProjetoPreenchido')}}" @endif > -
- -
- - -
-
- @error('anexoProjeto') - - {{ $message }} - - @enderror -
- -
- - @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 -
-
- - @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 -
-
- - @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 -
-
- - - - -
- - - - - -
- -
-
-
-
-
- - -

4º Passo

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

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

5º Passo

-
Finalizar
-
-
-
-
-
-
Finalizar
-

-
-
-
* Campos obrigatórios
- - - - -
-
-
-
-
- + @component('evento.formulario.anexos') + @endcomponent + + @component('evento.formulario.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno]) + @endcomponent + + @component('evento.formulario.finalizar') + @endcomponent +
- - + + + - \ No newline at end of file