Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
9f414dff
Unverified
Commit
9f414dff
authored
Jun 05, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 05, 2020
Browse files
Merge pull request #12 from lmts-ufape/cadastroParticipante
Cadastro participante
parents
84a74fb6
2081ccfc
Changes
13
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
9f414dff
...
@@ -86,6 +86,7 @@ class AdministradorController extends Controller
...
@@ -86,6 +86,7 @@ class AdministradorController extends Controller
'cargo'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'area'
=>
'required'
,
'area'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'nivel'
=>
'required'
,
'nivel'
=>
'required'
,
...
@@ -124,6 +125,7 @@ class AdministradorController extends Controller
...
@@ -124,6 +125,7 @@ class AdministradorController extends Controller
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
area
=
"teste"
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
...
@@ -180,6 +182,7 @@ class AdministradorController extends Controller
...
@@ -180,6 +182,7 @@ class AdministradorController extends Controller
'cargo'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'grandeArea'
=>
'required'
,
'grandeArea'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'nivel'
=>
'required'
,
'nivel'
=>
'required'
,
...
@@ -213,6 +216,7 @@ class AdministradorController extends Controller
...
@@ -213,6 +216,7 @@ class AdministradorController extends Controller
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
grandeArea
;
$proponente
->
grandeArea
=
$request
->
grandeArea
;
$proponente
->
area
=
"teste"
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
...
...
app/Http/Controllers/Auth/RegisterController.php
View file @
9f414dff
...
@@ -61,14 +61,7 @@ class RegisterController extends Controller
...
@@ -61,14 +61,7 @@ class RegisterController extends Controller
'password'
=>
[
'required'
,
'string'
,
'min:8'
,
'confirmed'
],
'password'
=>
[
'required'
,
'string'
,
'min:8'
,
'confirmed'
],
'cpf'
=>
[
'required'
,
'cpf'
],
'cpf'
=>
[
'required'
,
'cpf'
],
'celular'
=>
[
'required'
,
'string'
],
'celular'
=>
[
'required'
,
'string'
],
'instituicao'
=>
[
'required'
,
'string'
,
'max:255'
],
'instituicao'
=>
[
'required'
,
'string'
,
'max:255'
],
// 'especProfissional' => [],
'rua'
=>
[
'required'
,
'string'
,
'max:255'
],
'numero'
=>
[
'nullable'
,
'string'
],
'bairro'
=>
[
'required'
,
'string'
,
'max:255'
],
'cidade'
=>
[
'required'
,
'string'
,
'max:255'
],
'uf'
=>
[
'required'
,
'string'
],
'cep'
=>
[
'required'
,
'string'
],
]);
]);
}
}
...
@@ -81,18 +74,6 @@ class RegisterController extends Controller
...
@@ -81,18 +74,6 @@ class RegisterController extends Controller
protected
function
create
(
array
$data
)
protected
function
create
(
array
$data
)
{
{
// endereço
$end
=
new
Endereco
();
$end
->
rua
=
$data
[
'rua'
];
$end
->
numero
=
$data
[
'numero'
];
$end
->
bairro
=
$data
[
'bairro'
];
$end
->
cidade
=
$data
[
'cidade'
];
$end
->
uf
=
$data
[
'uf'
];
$end
->
cep
=
$data
[
'cep'
];
$end
->
save
();
// dd($end)
$user
=
new
User
();
$user
=
new
User
();
$user
->
name
=
$data
[
'name'
];
$user
->
name
=
$data
[
'name'
];
$user
->
email
=
$data
[
'email'
];
$user
->
email
=
$data
[
'email'
];
...
@@ -102,7 +83,6 @@ class RegisterController extends Controller
...
@@ -102,7 +83,6 @@ class RegisterController extends Controller
$user
->
instituicao
=
$data
[
'instituicao'
];
$user
->
instituicao
=
$data
[
'instituicao'
];
$user
->
tipo
=
'participante'
;
$user
->
tipo
=
'participante'
;
$user
->
enderecoId
=
$end
->
id
;
$user
->
save
();
$user
->
save
();
$participante
=
new
Participante
();
$participante
=
new
Participante
();
...
...
app/Http/Controllers/ProponenteController.php
View file @
9f414dff
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Auth
;
use
App\User
;
use
App\Proponente
;
use
App\GrandeArea
;
use
App\Evento
;
class
ProponenteController
extends
Controller
class
ProponenteController
extends
Controller
{
{
...
@@ -10,4 +15,51 @@ class ProponenteController extends Controller
...
@@ -10,4 +15,51 @@ class ProponenteController extends Controller
return
view
(
'proponente.index'
);
return
view
(
'proponente.index'
);
}
}
public
function
create
(){
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'proponente.cadastro'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);;
}
public
function
store
(
Request
$request
){
if
(
Auth
::
user
()
->
proponentes
==
null
)
{
$validated
=
$request
->
validate
([
'senha'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'area'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'nivel'
=>
'required'
,
'linkLattes'
=>
'required'
,
]);
$proponente
=
new
Proponente
();
$proponente
->
SIAPE
=
$request
->
SIAPE
;
$proponente
->
cargo
=
$request
->
cargo
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
user_id
=
Auth
::
user
()
->
id
;
$proponente
->
save
();
$user
=
User
::
find
(
Auth
()
->
user
()
->
id
);
$user
->
tipo
=
"proponente"
;
$user
->
save
();
}
$eventos
=
Evento
::
all
();
return
redirect
(
route
(
'admin.editais'
,
[
'eventos'
=>
$eventos
]))
->
with
([
'mensagem'
=>
'Usuário cadastrado com sucesso'
]);
}
}
}
database/migrations/2020_05_20_211421_create_proponentes_table.php
View file @
9f414dff
...
@@ -22,6 +22,7 @@ class CreateProponentesTable extends Migration
...
@@ -22,6 +22,7 @@ class CreateProponentesTable extends Migration
$table
->
string
(
'vinculo'
);
$table
->
string
(
'vinculo'
);
$table
->
string
(
'titulacaoMaxima'
);
$table
->
string
(
'titulacaoMaxima'
);
$table
->
string
(
'anoTitulacao'
);
$table
->
string
(
'anoTitulacao'
);
$table
->
string
(
'areaFormacao'
);
$table
->
string
(
'grandeArea'
);
$table
->
string
(
'grandeArea'
);
$table
->
string
(
'area'
);
$table
->
string
(
'area'
);
$table
->
string
(
'subArea'
);
$table
->
string
(
'subArea'
);
...
...
database/seeds/ProponenteSeeder.php
View file @
9f414dff
...
@@ -24,6 +24,7 @@ class ProponenteSeeder extends Seeder
...
@@ -24,6 +24,7 @@ class ProponenteSeeder extends Seeder
'vinculo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'titulacaoMaxima'
=>
'123123123'
,
'titulacaoMaxima'
=>
'123123123'
,
'anoTitulacao'
=>
'123123123'
,
'anoTitulacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'grandeArea'
=>
'123123123'
,
'grandeArea'
=>
'123123123'
,
'area'
=>
'123123123'
,
'area'
=>
'123123123'
,
'subArea'
=>
'123123123'
,
'subArea'
=>
'123123123'
,
...
...
resources/views/administrador/editar_user.blade.php
View file @
9f414dff
...
@@ -121,6 +121,9 @@
...
@@ -121,6 +121,9 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Area Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
...
@@ -150,6 +153,9 @@
...
@@ -150,6 +153,9 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
""
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
""
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Area Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
""
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
input
value
=
""
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
...
...
resources/views/administrador/novo_user.blade.php
View file @
9f414dff
...
@@ -123,6 +123,14 @@
...
@@ -123,6 +123,14 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'Area de Formação'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
div
>
<
div
>
<
label
for
=
"area"
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
label
for
=
"area"
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
...
...
resources/views/auth/register.blade.php
View file @
9f414dff
...
@@ -94,119 +94,6 @@
...
@@ -94,119 +94,6 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
</
div
>
</
div
>
{{
--
Rua
|
Número
|
Bairro
--
}}
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
value
=
"
{
{old('cep')}
}
"
onblur
=
"pesquisacep(this.value);"
id
=
"cep"
type
=
"text"
required
autocomplete
=
"cep"
name
=
"cep"
autofocus
class
=
"form-control field__input a-field__input"
placeholder
=
"CEP"
size
=
"10"
maxlength
=
"9"
>
@
error
(
'cep'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"rua"
class
=
"col-form-label"
>
{{
__
(
'Rua'
)
}}
</
label
>
<
input
value
=
"
{
{old('rua')}
}
"
id
=
"rua"
type
=
"text"
class
=
"form-control @error('rua') is-invalid @enderror"
name
=
"rua"
required
autocomplete
=
"new-password"
>
@
error
(
'rua'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"numero"
class
=
"col-form-label"
>
{{
__
(
'Número'
)
}}
</
label
>
<
input
value
=
"
{
{old('numero')}
}
"
id
=
"numero"
type
=
"text"
class
=
"form-control @error('numero') is-invalid @enderror"
name
=
"numero"
autocomplete
=
"numero"
>
@
error
(
'numero'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"bairro"
class
=
"col-form-label"
>
{{
__
(
'Bairro'
)
}}
</
label
>
<
input
value
=
"
{
{old('bairro')}
}
"
id
=
"bairro"
type
=
"text"
class
=
"form-control @error('bairro') is-invalid @enderror"
name
=
"bairro"
required
autocomplete
=
"bairro"
>
@
error
(
'bairro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"cidade"
class
=
"col-form-label"
>
{{
__
(
'Cidade'
)
}}
</
label
>
<
input
value
=
"
{
{old('cidade')}
}
"
id
=
"cidade"
type
=
"text"
class
=
"form-control @error('cidade') is-invalid @enderror"
name
=
"cidade"
required
autocomplete
=
"cidade"
>
@
error
(
'cidade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
{{
--
<
input
id
=
"uf"
type
=
"text"
class
=
"form-control @error('uf') is-invalid @enderror"
name
=
"uf"
value
=
"{{ old('uf') }}"
required
autocomplete
=
"uf"
autofocus
>
--
}}
<
select
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AC'
)
selected
@
endif
value
=
"AC"
>
Acre
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AL'
)
selected
@
endif
value
=
"AL"
>
Alagoas
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AP'
)
selected
@
endif
value
=
"AP"
>
Amapá
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AM'
)
selected
@
endif
value
=
"AM"
>
Amazonas
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'BA'
)
selected
@
endif
value
=
"BA"
>
Bahia
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'CE'
)
selected
@
endif
value
=
"CE"
>
Ceará
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'DF'
)
selected
@
endif
value
=
"DF"
>
Distrito
Federal
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'ES'
)
selected
@
endif
value
=
"ES"
>
Espírito
Santo
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'GO'
)
selected
@
endif
value
=
"GO"
>
Goiás
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MA'
)
selected
@
endif
value
=
"MA"
>
Maranhão
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MT'
)
selected
@
endif
value
=
"MT"
>
Mato
Grosso
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MS'
)
selected
@
endif
value
=
"MS"
>
Mato
Grosso
do
Sul
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MG'
)
selected
@
endif
value
=
"MG"
>
Minas
Gerais
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PA'
)
selected
@
endif
value
=
"PA"
>
Pará
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PB'
)
selected
@
endif
value
=
"PB"
>
Paraíba
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PR'
)
selected
@
endif
value
=
"PR"
>
Paraná
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PE'
)
selected
@
endif
value
=
"PE"
>
Pernambuco
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PI'
)
selected
@
endif
value
=
"PI"
>
Piauí
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RJ'
)
selected
@
endif
value
=
"RJ"
>
Rio
de
Janeiro
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RN'
)
selected
@
endif
value
=
"RN"
>
Rio
Grande
do
Norte
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RS'
)
selected
@
endif
value
=
"RS"
>
Rio
Grande
do
Sul
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RO'
)
selected
@
endif
value
=
"RO"
>
Rondônia
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RR'
)
selected
@
endif
value
=
"RR"
>
Roraima
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'SC'
)
selected
@
endif
value
=
"SC"
>
Santa
Catarina
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'SP'
)
selected
@
endif
value
=
"SP"
>
São
Paulo
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'SE'
)
selected
@
endif
value
=
"SE"
>
Sergipe
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'TO'
)
selected
@
endif
value
=
"TO"
>
Tocantins
</
option
>
</
select
>
@
error
(
'uf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
...
@@ -226,7 +113,6 @@
...
@@ -226,7 +113,6 @@
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
$
(
document
)
.
ready
(
function
(
$
){
$
(
document
)
.
ready
(
function
(
$
){
$
(
'#cep'
)
.
mask
(
'00000-000'
);
$
(
'#cpf'
)
.
mask
(
'000.000.000-00'
);
$
(
'#cpf'
)
.
mask
(
'000.000.000-00'
);
var
SPMaskBehavior
=
function
(
val
)
{
var
SPMaskBehavior
=
function
(
val
)
{
return
val
.
replace
(
/
\
D
/
g
,
''
)
.
length
===
11
?
'(00) 00000-0000'
:
'(00) 0000-00009'
;
return
val
.
replace
(
/
\
D
/
g
,
''
)
.
length
===
11
?
'(00) 00000-0000'
:
'(00) 0000-00009'
;
...
@@ -239,71 +125,5 @@
...
@@ -239,71 +125,5 @@
$
(
'#celular'
)
.
mask
(
SPMaskBehavior
,
spOptions
);
$
(
'#celular'
)
.
mask
(
SPMaskBehavior
,
spOptions
);
});
});
function
limpa_formulário_cep
()
{
//Limpa valores do formulário de cep.
document
.
getElementById
(
'rua'
)
.
value
=
(
""
);
document
.
getElementById
(
'bairro'
)
.
value
=
(
""
);
document
.
getElementById
(
'cidade'
)
.
value
=
(
""
);
document
.
getElementById
(
'uf'
)
.
value
=
(
""
);
}
function
meu_callback
(
conteudo
)
{
if
(
!
(
"erro"
in
conteudo
))
{
//Atualiza os campos com os valores.
document
.
getElementById
(
'rua'
)
.
value
=
(
conteudo
.
logradouro
);
document
.
getElementById
(
'bairro'
)
.
value
=
(
conteudo
.
bairro
);
document
.
getElementById
(
'cidade'
)
.
value
=
(
conteudo
.
localidade
);
document
.
getElementById
(
'uf'
)
.
value
=
(
conteudo
.
uf
);
}
//end if.
else
{
//CEP não Encontrado.
limpa_formulário_cep
();
alert
(
"CEP não encontrado."
);
}
}
function
pesquisacep
(
valor
)
{
//Nova variável "cep" somente com dígitos.
var
cep
=
valor
.
replace
(
/
\
D
/
g
,
''
);
//Verifica se campo cep possui valor informado.
if
(
cep
!=
""
)
{
//Expressão regular para validar o CEP.
var
validacep
=
/^
[
0
-
9
]{
8
}
$
/
;
//Valida o formato do CEP.
if
(
validacep
.
test
(
cep
))
{
//Preenche os campos com "..." enquanto consulta webservice.
document
.
getElementById
(
'rua'
)
.
value
=
"..."
;
document
.
getElementById
(
'bairro'
)
.
value
=
"..."
;
document
.
getElementById
(
'cidade'
)
.
value
=
"..."
;
document
.
getElementById
(
'uf'
)
.
value
=
"..."
;
//Cria um elemento javascript.
var
script
=
document
.
createElement
(
'script'
);
//Sincroniza com o callback.
script
.
src
=
'https://viacep.com.br/ws/'
+
cep
+
'/json/?callback=meu_callback'
;
//Insere script no documento e carrega o conteúdo.
document
.
body
.
appendChild
(
script
);
}
//end if.
else
{
//cep é inválido.
limpa_formulário_cep
();
alert
(
"Formato de CEP inválido."
);
}
}
//end if.
else
{
//cep sem valor, limpa formulário.
limpa_formulário_cep
();
}
};
</
script
>
</
script
>
@
endsection
@
endsection
resources/views/participante/index.blade.php
View file @
9f414dff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
#
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('admin.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
resources/views/projeto/index.blade.php
View file @
9f414dff
...
@@ -10,7 +10,12 @@
...
@@ -10,7 +10,12 @@
<
h6
style
=
"color: rgb(4, 78, 4);"
>
Submissão
irá
até
o
dia
{{
date
(
'd-m-Y'
,
strtotime
(
$edital
->
fimSubmissao
))
}}
</
h6
>
<
h6
style
=
"color: rgb(4, 78, 4);"
>
Submissão
irá
até
o
dia
{{
date
(
'd-m-Y'
,
strtotime
(
$edital
->
fimSubmissao
))
}}
</
h6
>
</
div
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"{{route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/proponente/cadastro.blade.php
0 → 100644
View file @
9f414dff
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Criar perfil de proponente'
)
}}
</
h2
>
</
div
>
</
div
>
<
br
>
<
form
method
=
"POST"
action
=
"{{ route('proponente.store') }}"
>
@
csrf
<
div
class
=
"col-sm-11"
>
<
div
id
=
"proponente"
>
<
div
>
<
h4
>
Dados
do
proponente
</
h4
>
</
div
>
<
div
>
<
label
for
=
"SIAPE"
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
input
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'SIAPE'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
label
for
=
"cargo"
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'cargo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
div
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vinculo'
)
}}
</
label
>
<
select
name
=
"vinculo"
id
=
""
>
<
option
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
value
=
"Pós-doutorando"
>
Pós
-
doutorando
</
option
>
</
select
>
</
div
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
input
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'titulacaoMaxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
label
for
=
"anoTitulacao"
class
=
"col-form-label"
>
{{
__
(
'Ano da Titulação'
)
}}
</
label
>
<
input
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'anoTitulacao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'Area de Formação'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
div
>
<
label
for
=
"area"
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
select
name
=
"area"
id
=
""
>
@
foreach
(
$grandeAreas
as
$area
)
<
option
value
=
"
{
{$area->nome}}">{{$area->nome}
}
</option>
@endforeach
</select>
</div>
<div>
<label for="
bolsistaProdutividade
" class="
col
-
form
-
label
">{{ __('Bolsista de Produtividade') }}</label><br>
<select name="
bolsistaProdutividade
" id="">
<option value="
sim
">Sim</option>
<option value="
nao
">Não</option>
</select>
</div>
<div>
<label for="
nivel
" class="
col
-
form
-
label
">{{ __('Nivel') }}</label>
<select name="
nivel
" id="">
<option value="
2
">2</option>
<option value="
1
D
">1D</option>
<option value="
1
D
">1B</option>
<option value="
1
D
">1C</option>
<option value="
1
D
">1A</option>
</select>
</div>
<label for="
linkLattes
" class="
col
-
form
-
label
">{{ __('Link do curriculum lattes') }}</label>
<input id="
linkLattes
" type="
text
" class="
form
-
control
@
error
(
'linkLattes'
)
is
-
invalid
@
enderror
" name="
linkLattes
" value="" autocomplete="
nome
">
@error('linkLattes')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
<label for="
passworld
" class="
col
-
form
-
label
">{{ __('Senha') }}</label>
<input id="
passworld
" type="
text
" class="
form
-
control
@
error
(
'senha'
)
is
-
invalid
@
enderror
" name="
senha
" value="" autocomplete="
nome
">
@error('senha')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<button type="
submit
" class="
btn
btn
-
primary
" style="
position
:
relative
;
top
:
10
px
;
">{{ __('Salvar') }}</button>
</div>
</form>
</div>
@endsection
resources/views/user/perfilUser.blade.php
View file @
9f414dff
...
@@ -142,6 +142,9 @@
...
@@ -142,6 +142,9 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Area de Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
...
@@ -424,6 +427,9 @@
...
@@ -424,6 +427,9 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Area de Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
...
...
routes/web.php
View file @
9f414dff
...
@@ -30,6 +30,8 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){
...
@@ -30,6 +30,8 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){
//######### Proponente ########################################
//######### Proponente ########################################
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
//######### Participante ########################################
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment