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
44de0ba1
Unverified
Commit
44de0ba1
authored
Jun 10, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 10, 2020
Browse files
Merge branch 'master' into carlos
parents
68954a6f
873445f4
Changes
26
Expand all
Hide whitespace changes
Inline
Side-by-side
app/Avaliador.php
View file @
44de0ba1
...
@@ -3,9 +3,11 @@
...
@@ -3,9 +3,11 @@
namespace
App
;
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Avaliador
extends
Model
class
Avaliador
extends
Model
{
{
use
SoftDeletes
;
protected
$fillable
=
[
protected
$fillable
=
[
'status'
,
'status'
,
'parecer'
,
'parecer'
,
...
...
app/Http/Controllers/AdministradorController.php
View file @
44de0ba1
...
@@ -5,7 +5,6 @@ namespace App\Http\Controllers;
...
@@ -5,7 +5,6 @@ namespace App\Http\Controllers;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
App\Administrador
;
use
App\Administrador
;
use
App\User
;
use
App\User
;
use
App\GrandeArea
;
use
App\Avaliador
;
use
App\Avaliador
;
use
App\AdministradorResponsavel
;
use
App\AdministradorResponsavel
;
use
App\Participante
;
use
App\Participante
;
...
@@ -60,9 +59,8 @@ class AdministradorController extends Controller
...
@@ -60,9 +59,8 @@ class AdministradorController extends Controller
return
view
(
'administrador.visualizarParecer'
)
->
with
([
'trabalho'
=>
$trabalho
,
'parecer'
=>
$parecer
,
'avaliador'
=>
$avaliador
]);
return
view
(
'administrador.visualizarParecer'
)
->
with
([
'trabalho'
=>
$trabalho
,
'parecer'
=>
$parecer
,
'avaliador'
=>
$avaliador
]);
}
}
public
function
create
()
{
public
function
create
()
{
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'administrador.novo_user'
);
return
view
(
'administrador.novo_user'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
}
}
public
function
salvar
(
Request
$request
)
{
public
function
salvar
(
Request
$request
)
{
...
@@ -125,10 +123,7 @@ class AdministradorController extends Controller
...
@@ -125,10 +123,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
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
...
@@ -182,8 +177,7 @@ class AdministradorController extends Controller
...
@@ -182,8 +177,7 @@ class AdministradorController extends Controller
'cargo'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'grandeArea'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'nivel'
=>
'required'
,
'nivel'
=>
'required'
,
'linkLattes'
=>
'required'
,
'linkLattes'
=>
'required'
,
...
@@ -216,10 +210,7 @@ class AdministradorController extends Controller
...
@@ -216,10 +210,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
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
grandeArea
=
$request
->
grandeArea
;
$proponente
->
area
=
"teste"
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
...
...
app/Http/Controllers/Auth/RegisterController.php
View file @
44de0ba1
...
@@ -7,11 +7,11 @@ use App\Providers\RouteServiceProvider;
...
@@ -7,11 +7,11 @@ use App\Providers\RouteServiceProvider;
use
Illuminate\Foundation\Auth\RegistersUsers
;
use
Illuminate\Foundation\Auth\RegistersUsers
;
use
Illuminate\Support\Facades\Hash
;
use
Illuminate\Support\Facades\Hash
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Validation\Rule
;
use
App\User
;
use
App\User
;
use
App\Participante
;
use
App\Participante
;
use
App\Proponente
;
use
App\Proponente
;
use
App\GrandeArea
;
class
RegisterController
extends
Controller
class
RegisterController
extends
Controller
{
{
...
@@ -65,16 +65,19 @@ class RegisterController extends Controller
...
@@ -65,16 +65,19 @@ class RegisterController extends Controller
'instituicao'
=>
[
'required'
,
'string'
,
'max:255'
],
'instituicao'
=>
[
'required'
,
'string'
,
'max:255'
],
'cargo'
=>
[
'required'
],
'cargo'
=>
[
'required'
],
'vinculo'
=>
[
'required'
],
'vinculo'
=>
[
'required'
],
'outro'
=>
[
'required_if:vinculo,Outro'
],
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'titulacaoMaxima'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,bolsistaProdutividade,linkLattes'
],
'grandeArea'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,area,subarea,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'area'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,subarea,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,bolsistaProdutividade,linkLattes'
],
'subarea'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,subarea,linkLattes'
],
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,linkLattes'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade'
],
'bolsistaProdutividade'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
'nivel'
=>
[
'required_if:bolsistaProdutividade,sim'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,bolsistaProdutividade'
],
'linkLattes'
=>
Rule
::
requiredIf
(
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$data
[
'cargo'
])
&&
$data
[
'cargo'
]
===
'Estudante'
&&
isset
(
$data
[
'vinculo'
])
&&
$data
[
'vinculo'
]
===
'Pós-doutorando'
)),
]);
]);
}
}
...
@@ -106,17 +109,24 @@ class RegisterController extends Controller
...
@@ -106,17 +109,24 @@ class RegisterController extends Controller
$user
->
save
();
$user
->
save
();
$proponente
=
new
Proponente
();
$proponente
=
new
Proponente
();
$proponente
->
SIAPE
=
$data
[
'SIAPE'
];
if
(
$data
[
'SIAPE'
]
!=
null
){
$proponente
->
SIAPE
=
$data
[
'SIAPE'
];
}
$proponente
->
cargo
=
$data
[
'cargo'
];
$proponente
->
cargo
=
$data
[
'cargo'
];
$proponente
->
vinculo
=
$data
[
'vinculo'
];
if
(
$data
[
'vinculo'
]
!=
'Outro'
){
$proponente
->
vinculo
=
$data
[
'vinculo'
];
}
else
{
$proponente
->
vinculo
=
$data
[
'outro'
];
}
$proponente
->
titulacaoMaxima
=
$data
[
'titulacaoMaxima'
];
$proponente
->
titulacaoMaxima
=
$data
[
'titulacaoMaxima'
];
$proponente
->
anoTitulacao
=
$data
[
'anoTitulacao'
];
$proponente
->
anoTitulacao
=
$data
[
'anoTitulacao'
];
$proponente
->
areaFormacao
=
$data
[
'areaFormacao'
];
$proponente
->
areaFormacao
=
$data
[
'areaFormacao'
];
$proponente
->
grandeArea
=
$data
[
'grandeArea'
];
$proponente
->
area
=
$data
[
'area'
];
$proponente
->
subArea
=
$data
[
'subarea'
];
$proponente
->
bolsistaProdutividade
=
$data
[
'bolsistaProdutividade'
];
$proponente
->
bolsistaProdutividade
=
$data
[
'bolsistaProdutividade'
];
$proponente
->
nivel
=
$data
[
'nivel'
];
if
(
$data
[
'bolsistaProdutividade'
]
==
'sim'
){
$proponente
->
nivel
=
$data
[
'nivel'
];
}
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
$user
->
proponentes
()
->
save
(
$proponente
);
$user
->
proponentes
()
->
save
(
$proponente
);
...
@@ -126,8 +136,7 @@ class RegisterController extends Controller
...
@@ -126,8 +136,7 @@ class RegisterController extends Controller
return
$user
;
return
$user
;
}
}
public
function
showRegistrationForm
(){
public
function
showRegistrationForm
(){
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'auth.register'
);
return
view
(
'auth.register'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
}
}
}
}
app/Http/Controllers/ProponenteController.php
View file @
44de0ba1
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Validation\Rule
;
use
Auth
;
use
Auth
;
use
App\User
;
use
App\User
;
use
App\Proponente
;
use
App\Proponente
;
use
App\GrandeArea
;
use
App\Evento
;
use
App\Evento
;
class
ProponenteController
extends
Controller
class
ProponenteController
extends
Controller
...
@@ -17,49 +18,56 @@ class ProponenteController extends Controller
...
@@ -17,49 +18,56 @@ class ProponenteController extends Controller
}
}
public
function
create
(){
public
function
create
(){
return
view
(
'proponente.cadastro'
);
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'proponente.cadastro'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);;
}
}
public
function
store
(
Request
$request
){
public
function
store
(
Request
$request
){
if
(
Auth
::
user
()
->
proponentes
==
null
)
{
if
(
Auth
()
->
user
()
->
proponentes
==
null
)
{
$validated
=
$request
->
validate
([
$validated
=
$request
->
validate
([
'senha'
=>
'required'
,
'cargo'
=>
'required'
,
'cargo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'vinculo'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'outro'
=>
[
'required_if:vinculo,Outro'
],
'areaFormacao'
=>
'required'
,
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,bolsistaProdutividade,linkLattes'
],
'area'
=>
'required'
,
'titulacaoMaxima'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'bolsistaProdutividade'
=>
'required'
,
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,bolsistaProdutividade,linkLattes'
],
'nivel'
=>
'required'
,
'anoTitulacao'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'linkLattes'
=>
'required'
,
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,linkLattes'
],
'bolsistaProdutividade'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
'nivel'
=>
[
'required_if:bolsistaProdutividade,sim'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,bolsistaProdutividade'
],
'linkLattes'
=>
Rule
::
requiredIf
(
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
!==
'Estudante'
)
||
(
isset
(
$request
[
'cargo'
])
&&
$request
[
'cargo'
]
===
'Estudante'
&&
isset
(
$request
[
'vinculo'
])
&&
$request
[
'vinculo'
]
===
'Pós-doutorando'
)),
]);
]);
$proponente
=
new
Proponente
();
if
(
$request
[
'cargo'
]
===
"Estudante"
&&
$request
[
'vinculo'
]
!==
"Pós-doutorando"
){
$proponente
->
SIAPE
=
$request
->
SIAPE
;
return
redirect
(
route
(
'proponente.create'
))
->
with
([
'mensagem'
=>
'Operação não permitida para seu perfil'
]);
$proponente
->
cargo
=
$request
->
cargo
;
}
else
{
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
=
new
Proponente
();
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
SIAPE
=
$request
->
SIAPE
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
cargo
=
$request
->
cargo
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
vinculo
=
$request
->
vinculo
;
$proponente
->
grandeArea
=
$request
->
area
;
$proponente
->
titulacaoMaxima
=
$request
->
titulacaoMaxima
;
$proponente
->
area
=
"teste"
;
$proponente
->
anoTitulacao
=
$request
->
anoTitulacao
;
$proponente
->
subArea
=
"teste"
;
$proponente
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
$proponente
->
user_id
=
Auth
::
user
()
->
id
;
$proponente
->
user_id
=
Auth
::
user
()
->
id
;
$proponente
->
save
();
$proponente
->
save
();
$user
=
User
::
find
(
Auth
()
->
user
()
->
id
);
$user
=
User
::
find
(
Auth
()
->
user
()
->
id
);
$user
->
tipo
=
"proponente"
;
$user
->
tipo
=
"proponente"
;
$user
->
save
();
$user
->
save
();
$eventos
=
Evento
::
all
();
return
redirect
(
route
(
'admin.editais'
,
[
'eventos'
=>
$eventos
]))
->
with
([
'mensagem'
=>
'Cadastro feito com sucesso! Você já pode criar projetos'
]);
}
}
else
{
return
redirect
(
route
(
'proponente.create'
))
->
with
([
'mensagem'
=>
'Você já é proponente!'
]);
}
}
$eventos
=
Evento
::
all
();
return
redirect
(
route
(
'admin.editais'
,
[
'eventos'
=>
$eventos
]))
->
with
([
'mensagem'
=>
'Usuário cadastrado com sucesso'
]);
}
}
}
}
app/Http/Controllers/TrabalhoController.php
View file @
44de0ba1
...
@@ -505,9 +505,12 @@ class TrabalhoController extends Controller
...
@@ -505,9 +505,12 @@ class TrabalhoController extends Controller
* @param \App\Trabalho $trabalho
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
* @return \Illuminate\Http\Response
*/
*/
public
function
destroy
(
Trabalho
$trabalho
)
public
function
destroy
(
Request
$request
)
{
{
//
$trabalho
=
Trabalho
::
find
(
$request
->
id
);
//dd($trabalho);
$trabalho
->
delete
();
return
redirect
()
->
back
();
}
}
public
function
novaVersao
(
Request
$request
){
public
function
novaVersao
(
Request
$request
){
...
...
app/Participante.php
View file @
44de0ba1
...
@@ -9,7 +9,7 @@ class Participante extends Model
...
@@ -9,7 +9,7 @@ class Participante extends Model
protected
$fillable
=
[
'name'
,
'user_id'
,
'trabalho_id'
,
'participante_id'
];
protected
$fillable
=
[
'name'
,
'user_id'
,
'trabalho_id'
,
'participante_id'
];
public
function
user
(){
public
function
user
(){
return
$this
->
belongsTo
Many
(
'App\User'
);
return
$this
->
belongsTo
(
'App\User'
);
}
}
public
function
trabalhos
(){
public
function
trabalhos
(){
return
$this
->
belongsToMany
(
'App\Trabalho'
,
'trabalho_participante'
);
return
$this
->
belongsToMany
(
'App\Trabalho'
,
'trabalho_participante'
);
...
...
app/Trabalho.php
View file @
44de0ba1
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
namespace
App
;
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Trabalho
extends
Model
class
Trabalho
extends
Model
{
{
use
SoftDeletes
;
/**
/**
* The attributes that are mass assignable.
* The attributes that are mass assignable.
*
*
...
@@ -38,6 +41,8 @@ class Trabalho extends Model
...
@@ -38,6 +41,8 @@ class Trabalho extends Model
'pivot'
,
'pivot'
,
];
];
public
function
recurso
(){
public
function
recurso
(){
return
$this
->
hasMany
(
'App\Recurso'
,
'trabalhoId'
);
return
$this
->
hasMany
(
'App\Recurso'
,
'trabalhoId'
);
}
}
...
...
database/migrations/2020_02_05_123048_create_trabalhos_table.php
View file @
44de0ba1
...
@@ -36,6 +36,7 @@ class CreateTrabalhosTable extends Migration
...
@@ -36,6 +36,7 @@ class CreateTrabalhosTable extends Migration
$table
->
unsignedBigInteger
(
'evento_id'
);
$table
->
unsignedBigInteger
(
'evento_id'
);
$table
->
unsignedBigInteger
(
'coordenador_id'
);
$table
->
unsignedBigInteger
(
'coordenador_id'
);
$table
->
unsignedBigInteger
(
'proponente_id'
);
$table
->
unsignedBigInteger
(
'proponente_id'
);
$table
->
softDeletes
();
$table
->
timestamps
();
$table
->
timestamps
();
});
});
...
...
database/migrations/2020_05_20_211421_create_proponentes_table.php
View file @
44de0ba1
...
@@ -16,18 +16,15 @@ class CreateProponentesTable extends Migration
...
@@ -16,18 +16,15 @@ class CreateProponentesTable extends Migration
Schema
::
create
(
'proponentes'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'proponentes'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
bigIncrements
(
'id'
);
//$table->string('CPF');
//$table->string('CPF');
$table
->
string
(
'SIAPE'
);
$table
->
string
(
'SIAPE'
)
->
nullable
()
;
//$table->string('email')->unique();
//$table->string('email')->unique();
$table
->
string
(
'cargo'
);
$table
->
string
(
'cargo'
);
$table
->
string
(
'vinculo'
);
$table
->
string
(
'vinculo'
);
$table
->
string
(
'titulacaoMaxima'
);
$table
->
string
(
'titulacaoMaxima'
);
$table
->
string
(
'anoTitulacao'
);
$table
->
string
(
'anoTitulacao'
);
$table
->
string
(
'areaFormacao'
);
$table
->
string
(
'areaFormacao'
);
$table
->
string
(
'grandeArea'
);
$table
->
string
(
'area'
);
$table
->
string
(
'subArea'
);
$table
->
string
(
'bolsistaProdutividade'
);
$table
->
string
(
'bolsistaProdutividade'
);
$table
->
string
(
'nivel'
);
$table
->
string
(
'nivel'
)
->
nullable
()
;
$table
->
string
(
'linkLattes'
);
$table
->
string
(
'linkLattes'
);
$table
->
timestamps
();
$table
->
timestamps
();
...
...
database/migrations/2020_05_23_054805_create_avaliadors_table.php
View file @
44de0ba1
...
@@ -16,6 +16,7 @@ class CreateAvaliadorsTable extends Migration
...
@@ -16,6 +16,7 @@ class CreateAvaliadorsTable extends Migration
Schema
::
create
(
'avaliadors'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'avaliadors'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
bigIncrements
(
'id'
);
$table
->
timestamps
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
...
...
database/migrations/2020_05_26_223341_create_avaliadors_trabalhos_table.php
View file @
44de0ba1
...
@@ -21,6 +21,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
...
@@ -21,6 +21,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
string
(
'recomendacao'
)
->
nullable
();
$table
->
string
(
'recomendacao'
)
->
nullable
();
$table
->
softDeletes
();
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
...
...
database/seeds/AreaSeeder.php
View file @
44de0ba1
...
@@ -124,6 +124,54 @@ class AreaSeeder extends Seeder
...
@@ -124,6 +124,54 @@ class AreaSeeder extends Seeder
'nome'
=>
'Engenharia Civil'
,
'nome'
=>
'Engenharia Civil'
,
'grande_area_id'
=>
'3'
'grande_area_id'
=>
'3'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Minas'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Materiais e Metalúrgica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Elétrica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Mecânica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Química'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Sanitária'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Produção'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Nuclear'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia de Transportes'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Naval e Oceânica'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Aeroespacial'
,
'grande_area_id'
=>
'3'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Biomédica'
,
'grande_area_id'
=>
'3'
]);
// Ciências da Saúde -----------------
// Ciências da Saúde -----------------
...
@@ -131,6 +179,39 @@ class AreaSeeder extends Seeder
...
@@ -131,6 +179,39 @@ class AreaSeeder extends Seeder
'nome'
=>
'Medicina'
,
'nome'
=>
'Medicina'
,
'grande_area_id'
=>
'4'
'grande_area_id'
=>
'4'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Odontologia'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Farmácia'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Enfermagem'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Nutrição'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Saúde Coletiva'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Fonoaudiologia'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Fisioterapia e Terapia Ocupacional'
,
'grande_area_id'
=>
'4'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Educação Física'
,
'grande_area_id'
=>
'4'
]);
//Ciências Agrárias ------------------
//Ciências Agrárias ------------------
...
@@ -138,6 +219,30 @@ class AreaSeeder extends Seeder
...
@@ -138,6 +219,30 @@ class AreaSeeder extends Seeder
'nome'
=>
'Agronomia'
,
'nome'
=>
'Agronomia'
,
'grande_area_id'
=>
'5'
'grande_area_id'
=>
'5'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Recursos Florestais e Engenharia Florestal'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Agrícola'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Zootecnia'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Medicina Veterinária'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Recursos Pesqueiros e Engenharia de Pesca'
,
'grande_area_id'
=>
'5'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência e Tecnologia de Alimentos'
,
'grande_area_id'
=>
'5'
]);
//Ciências Sociais Aplicadas ----------
//Ciências Sociais Aplicadas ----------
...
@@ -145,6 +250,54 @@ class AreaSeeder extends Seeder
...
@@ -145,6 +250,54 @@ class AreaSeeder extends Seeder
'nome'
=>
'Direito'
,
'nome'
=>
'Direito'
,
'grande_area_id'
=>
'6'
'grande_area_id'
=>
'6'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Administração'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Economia'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Arquitetura e Urbanismo'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Planejamento Urbano e Regional'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Demografia'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência da Informação'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Museologia'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Comunicação'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Serviço Social'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Economia Doméstica'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Desenho Industrial'
,
'grande_area_id'
=>
'6'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Turismo'
,
'grande_area_id'
=>
'6'
]);
//Ciências Humanas ----------------------
//Ciências Humanas ----------------------
...
@@ -152,13 +305,57 @@ class AreaSeeder extends Seeder
...
@@ -152,13 +305,57 @@ class AreaSeeder extends Seeder
'nome'
=>
'Filosofia'
,
'nome'
=>
'Filosofia'
,
'grande_area_id'
=>
'7'
'grande_area_id'
=>
'7'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Sociologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Antropologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Arqueologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'História'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Geografia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Psicologia'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Educação'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência Política'
,
'grande_area_id'
=>
'7'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Teologia'
,
'grande_area_id'
=>
'7'
]);
//Lingüística, Letras e Artes-----------
//Lingüística, Letras e Artes-----------
DB
::
table
(
'areas'
)
->
insert
([
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Lingüística'
,
'nome'
=>
'Lingüística'
,
'grande_area_id'
=>
'8'
'grande_area_id'
=>
'8'
]);
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Letras'
,
'grande_area_id'
=>
'8'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Artes'
,
'grande_area_id'
=>
'8'
]);
...
...
database/seeds/ParticipanteSeeder.php
View file @
44de0ba1
...
@@ -18,6 +18,12 @@ class ParticipanteSeeder extends Seeder
...
@@ -18,6 +18,12 @@ class ParticipanteSeeder extends Seeder
]);
]);
// $participante = App\Participante::find(1);
// $user = App\User::where('name','Participante1')->first();
// $user->participantes()->save($participante);
// $user->save();
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Participante2'
)
->
pluck
(
'id'
);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Participante2'
)
->
pluck
(
'id'
);
DB
::
table
(
'participantes'
)
->
insert
([
DB
::
table
(
'participantes'
)
->
insert
([
...
...
database/seeds/ProponenteSeeder.php
View file @
44de0ba1
...
@@ -22,12 +22,9 @@ class ProponenteSeeder extends Seeder
...
@@ -22,12 +22,9 @@ class ProponenteSeeder extends Seeder
//'email' => '123123123',
//'email' => '123123123',
'cargo'
=>
'123123123'
,
'cargo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'titulacaoMaxima'
=>
'
123123123
'
,
'titulacaoMaxima'
=>
'
Mestrado
'
,
'anoTitulacao'
=>
'123123123'
,
'anoTitulacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'grandeArea'
=>
'123123123'
,
'area'
=>
'123123123'
,
'subArea'
=>
'123123123'
,
'bolsistaProdutividade'
=>
'123123123'
,
'bolsistaProdutividade'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'linkLattes'
=>
'123123123'
,
'linkLattes'
=>
'123123123'
,
...
...
database/seeds/SubAreaSeeder.php
View file @
44de0ba1
This diff is collapsed.
Click to expand it.
resources/lang/en/validation.php
View file @
44de0ba1
...
@@ -56,10 +56,10 @@ return [
...
@@ -56,10 +56,10 @@ return [
'not_in'
=>
'O :attribute selecionado é inválido.'
,
'not_in'
=>
'O :attribute selecionado é inválido.'
,
'numeric'
=>
':Attribute deve ser um número.'
,
'numeric'
=>
':Attribute deve ser um número.'
,
'regex'
=>
'O formato de :attribute é inválido.'
,
'regex'
=>
'O formato de :attribute é inválido.'
,
'required'
=>
'O campo
:attribute
é obrigatório.'
,
'required'
=>
'O campo é obrigatório.'
,
'required_if'
=>
'O campo
:attribute
é obrigatório
quando :other é :value
.'
,
'required_if'
=>
'O campo é obrigatório.'
,
'required_unless'
=>
'O :attribute é necessário a menos que :other esteja em :values.'
,
'required_unless'
=>
'O :attribute é necessário a menos que :other esteja em :values.'
,
'required_with'
=>
'O campo
:attribute
é obrigatório
quando :values está presente
.'
,
'required_with'
=>
'O campo é obrigatório.'
,
'required_with_all'
=>
'O campo :attribute é obrigatório quando :values estão presentes.'
,
'required_with_all'
=>
'O campo :attribute é obrigatório quando :values estão presentes.'
,
'required_without'
=>
'O campo :attribute é obrigatório quando :values não está presente.'
,
'required_without'
=>
'O campo :attribute é obrigatório quando :values não está presente.'
,
'required_without_all'
=>
'O campo :attribute é obrigatório quando nenhum destes estão presentes: :values.'
,
'required_without_all'
=>
'O campo :attribute é obrigatório quando nenhum destes estão presentes: :values.'
,
...
...
resources/views/administrador/editais.blade.php
View file @
44de0ba1
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
{{
$evento
->
nome
}}
{{
$evento
->
nome
}}
</
a
>
</
a
>
</
td
>
</
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
>
<
td
>
@
if
(
auth
()
->
user
()
->
id
==
$evento
->
criador_id
)
@
if
(
auth
()
->
user
()
->
id
==
$evento
->
criador_id
)
<
div
class
=
"btn-group dropright dropdown-options"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
...
@@ -82,7 +82,6 @@
...
@@ -82,7 +82,6 @@
<
thead
>
<
thead
>
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
...
@@ -96,8 +95,7 @@
...
@@ -96,8 +95,7 @@
{{
$evento
->
nome
}}
{{
$evento
->
nome
}}
</
a
>
</
a
>
</
td
>
</
td
>
<
td
></
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
...
...
resources/views/administrador/editar_user.blade.php
View file @
44de0ba1
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
<
option
value
=
"administrador"
>
Administrador
</
option
>
<
option
value
=
"administrador"
>
Administrador
</
option
>
@
endif
@
endif
@
if
(
$user
->
tipo
==
'administradorResponsavel'
)
@
if
(
$user
->
tipo
==
'administradorResponsavel'
)
<
option
value
=
"administradorResponsavel"
selected
>
Administrador
Respons
a
vel
</
option
>
<
option
value
=
"administradorResponsavel"
selected
>
Administrador
Respons
á
vel
</
option
>
@
else
@
else
<
option
value
=
"administradorResponsavel"
>
Administrador
Respons
a
vel
</
option
>
<
option
value
=
"administradorResponsavel"
>
Administrador
Respons
á
vel
</
option
>
@
endif
@
endif
@
endif
@
endif
@
if
(
$user
->
tipo
==
'avaliador'
)
@
if
(
$user
->
tipo
==
'avaliador'
)
...
@@ -112,25 +112,29 @@
...
@@ -112,25 +112,29 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
i
nculo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
í
nculo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->titulacaoMaxima}
}
"
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Doutorado"
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Mestrado"
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Especialização"
)
selected
@
endif
value
=
"Especialização"
>
Especialização
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Graduação"
)
selected
@
endif
value
=
"Graduação"
>
Graduação
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Técnico"
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
</
select
>
<
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"
>
{{
__
(
'
A
rea Formação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'
Á
rea Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
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
>
<
input
value
=
"
{
{$proponente->grandeArea}
}
"
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
i
vel'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
í
vel'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
...
@@ -144,25 +148,22 @@
...
@@ -144,25 +148,22 @@
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
""
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
input
value
=
""
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
i
nculo'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'V
í
nculo'
)
}}
</
label
>
<
input
value
=
""
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
input
value
=
""
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação M
a
xima'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação M
á
xima'
)
}}
</
label
>
<
input
value
=
""
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
input
value
=
""
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
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"
>
{{
__
(
'
A
rea Formação'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'
Á
rea Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
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
>
<
input
value
=
""
id
=
"grandeArea"
type
=
"text"
class
=
"form-control @error('grandeArea') is-invalid @enderror"
name
=
"grandeArea"
autocomplete
=
"grandeArea"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
""
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
input
value
=
""
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
i
vel'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'N
í
vel'
)
}}
</
label
>
<
input
value
=
""
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
input
value
=
""
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
...
...
resources/views/administrador/novo_user.blade.php
View file @
44de0ba1
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
<
div
>
<
div
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
label
for
=
"tipo"
class
=
"col-form-label"
>
{{
__
(
'Tipo'
)
}}
</
label
>
<
select
name
=
"tipo"
id
=
"tipo"
onchange
=
"mudar()"
>
<
select
name
=
"tipo"
id
=
"tipo"
onchange
=
"mudar()"
class
=
"form-control"
>
@
if
(
auth
()
->
user
()
->
tipo
==
'administrador'
)
@
if
(
auth
()
->
user
()
->
tipo
==
'administrador'
)
<
option
value
=
"administrador"
>
Administrador
</
option
>
<
option
value
=
"administrador"
>
Administrador
</
option
>
<
option
value
=
"administradorResponsavel"
>
Administrador
respons
a
vel
</
option
>
<
option
value
=
"administradorResponsavel"
>
Administrador
respons
á
vel
</
option
>
@
endif
@
endif
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
<
option
value
=
"proponente"
>
Proponente
</
option
>
<
option
value
=
"proponente"
>
Proponente
</
option
>
...
@@ -96,8 +96,9 @@
...
@@ -96,8 +96,9 @@
@
enderror
@
enderror
<
div
>
<
div
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vinculo'
)
}}
</
label
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vínculo'
)
}}
</
label
>
<
select
name
=
"vinculo"
id
=
""
>
<
select
name
=
"vinculo"
id
=
""
class
=
"form-control"
>
<
option
value
=
""
disabled
selected
hidden
>--
Vínculo
--</
option
>
<
option
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
...
@@ -105,8 +106,15 @@
...
@@ -105,8 +106,15 @@
</
select
>
</
select
>
</
div
>
</
div
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima'
)
}}
</
label
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
</
label
>
<
input
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
""
autocomplete
=
"nome"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
value
=
"Especialização"
>
Especialização
</
option
>
<
option
value
=
"Graduação"
>
Graduação
</
option
>
<
option
value
=
"Técnico"
>
Técnico
</
option
>
</
select
>
@
error
(
'titulacaoMaxima'
)
@
error
(
'titulacaoMaxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -123,37 +131,28 @@
...
@@ -123,37 +131,28 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
A
rea de Formação'
)
}}
</
label
>
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
Á
rea de Formação'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
@
error
(
'areaFormacao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
@
enderror
@
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
>
<
div
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade'
)
}}
</
label
><
br
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade'
)
}}
</
label
><
br
>
<select name="
bolsistaProdutividade
" id="">
<
select
name
=
"bolsistaProdutividade"
id
=
""
class
=
"form-control"
>
<option value="
sim
">Sim
</option>
<
option
value
=
"
"
disabled
selected
hidden
>--
Bolsista
--
</
option
>
<
option
value
=
"nao"
>
Não
</
option
>
<
option
value
=
"nao"
>
Não
</
option
>
<
option
value
=
"sim"
>
Sim
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
<
div
>
<
div
>
<label for="
nivel
" class="
col
-
form
-
label
">{{ __('Nivel') }}</label>
<
label
for
=
"nivel"
class
=
"col-form-label"
>
{{
__
(
'Nível'
)
}}
</
label
>
<select name="
nivel
" id="">
<
select
name
=
"nivel"
id
=
""
class
=
"form-control"
>
<
option
value
=
""
disabled
selected
hidden
>--
Nível
--</
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1D"
>
1
B
</
option
>
<
option
value
=
"1D"
>
1
B
</
option
>
...
@@ -162,7 +161,7 @@
...
@@ -162,7 +161,7 @@
</
select
>
</
select
>
</
div
>
</
div
>
<label for="
linkLattes
" class="
col
-
form
-
label
">{{ __('Link do curr
i
cul
um l
attes') }}</label>
<
label
for
=
"linkLattes"
class
=
"col-form-label"
>
{{
__
(
'Link do curr
í
cul
o L
attes'
)
}}
</
label
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
""
autocomplete
=
"nome"
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'linkLattes'
)
@
error
(
'linkLattes'
)
...
...
resources/views/auth/register.blade.php
View file @
44de0ba1
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
Email
|
Senha
|
Confirmar
Senha
--
}}
{{
--
Email
|
Senha
|
Confirmar
Senha
--
}}
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"password"
class
=
"col-form-label"
>
{{
__
(
'Senha*'
)
}}
</
label
>
<
label
for
=
"password"
class
=
"col-form-label"
>
{{
__
(
'Senha*'
)
}}
</
label
>
...
@@ -93,16 +93,17 @@
...
@@ -93,16 +93,17 @@
<
label
for
=
"password-confirm"
class
=
"col-form-label"
>
{{
__
(
'Confirme a Senha*'
)
}}
</
label
>
<
label
for
=
"password-confirm"
class
=
"col-form-label"
>
{{
__
(
'Confirme a Senha*'
)
}}
</
label
>
<
input
id
=
"password-confirm"
type
=
"password"
class
=
"form-control"
name
=
"password_confirmation"
required
autocomplete
=
"new-password"
>
<
input
id
=
"password-confirm"
type
=
"password"
class
=
"form-control"
name
=
"password_confirmation"
required
autocomplete
=
"new-password"
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"cargo"
class
=
"col-form-label"
>
{{
__
(
'Cargo*'
)
}}
</
label
>
<
label
for
=
"cargo"
class
=
"col-form-label"
>
{{
__
(
'Cargo*'
)
}}
</
label
>
<
select
id
=
"cargo"
name
=
"cargo"
class
=
"form-control"
onchange
=
"mudar()"
>
<
select
id
=
"cargo"
name
=
"cargo"
class
=
"form-control @error('cargo') is-invalid @enderror"
onchange
=
"mudar()"
>
<
option
@
if
(
old
(
'cargo'
)
==
'Professor'
)
selected
@
endif
value
=
"Professor"
>
Professor
</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Cargo
--</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Técnico'
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Professor'
)
selected
@
endif
value
=
"Professor"
>
Professor
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Estudante'
)
selected
@
endif
value
=
"Estudante"
>
Estudante
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Técnico'
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
<
option
@
if
(
old
(
'cargo'
)
==
'Estudante'
)
selected
@
endif
value
=
"Estudante"
>
Estudante
</
option
>
</
select
>
</
select
>
@
error
(
'cargo'
)
@
error
(
'cargo'
)
...
@@ -113,40 +114,47 @@
...
@@ -113,40 +114,47 @@
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vinculo*'
)
}}
</
label
>
<
label
for
=
"vinculo"
class
=
"col-form-label"
>
{{
__
(
'Vínculo*'
)
}}
</
label
>
<
select
name
=
"vinculo"
id
=
"vinculo"
class
=
"form-control"
onchange
=
"mudar()"
>
<
select
name
=
"vinculo"
id
=
"vinculo"
class
=
"form-control @error('vinculo') is-invalid @enderror"
onchange
=
"mudar()"
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor na ativa'
)
selected
@
endif
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Vínculo
--</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor aposentado'
)
selected
@
endif
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor na ativa'
)
selected
@
endif
value
=
"Servidor na ativa"
>
Servidor
na
ativa
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Professor visitante'
)
selected
@
endif
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Servidor aposentado'
)
selected
@
endif
value
=
"Servidor aposentado"
>
Servidor
aposentado
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Pós-doutorando'
)
selected
@
endif
value
=
"Pós-doutorando"
>
Pós
-
doutorando
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Professor visitante'
)
selected
@
endif
value
=
"Professor visitante"
>
Professor
visitante
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Outro'
)
selected
@
endif
value
=
"Outro"
>
Outro
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Pós-doutorando'
)
selected
@
endif
value
=
"Pós-doutorando"
>
Pós
-
doutorando
</
option
>
<
option
@
if
(
old
(
'vinculo'
)
==
'Outro'
)
selected
@
endif
value
=
"Outro"
>
Outro
</
option
>
</
select
>
</
select
>
@
error
(
'vinculo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-4"
style
=
"display: none;"
id
=
"divOutro"
>
<
div
class
=
"col-md-4"
style
=
"display: block;"
id
=
"divOutro"
>
<
label
for
=
"outro"
class
=
"col-form-label"
>
{{
__
(
'Qual?'
)
}}
</
label
>
<
label
for
=
"outro"
class
=
"col-form-label"
>
{{
__
(
'Qual?*'
)
}}
</
label
>
<
input
id
=
"outro"
type
=
"text"
class
=
"form-control @error('outro') is-invalid @enderror"
name
=
"outro"
>
<
input
id
=
"outro"
type
=
"text"
class
=
"form-control @error('outro') is-invalid @enderror"
name
=
"outro"
value
=
"{{ old('outro') }}"
>
@
error
(
'outro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
id
=
"proponente"
style
=
"display: block;"
>
<
div
id
=
"proponente"
style
=
"display: block;"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
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
=
"{{ old('SIAPE') }}"
autocomplete
=
"nome"
>
@
error
(
'SIAPE'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Maxima*'
)
}}
</
label
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima*'
)
}}
</
label
>
<
input
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
"{{ old('titulacaoMaxima') }}"
autocomplete
=
"nome"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
value
=
"{{ old('titulacaoMaxima') }}"
autocomplete
=
"nome"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Doutorado'
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Mestrado'
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Especialização'
)
selected
@
endif
value
=
"Especialização"
>
Especialização
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Graduação'
)
selected
@
endif
value
=
"Graduação"
>
Graduação
</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Técnico'
)
selected
@
endif
value
=
"Técnico"
>
Técnico
</
option
>
</
select
>
@
error
(
'titulacaoMaxima'
)
@
error
(
'titulacaoMaxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -165,11 +173,8 @@
...
@@ -165,11 +173,8 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
A
rea de Formação*'
)
}}
</
label
>
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'
Á
rea de Formação*'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
"{{ old('areaFormacao') }}"
autocomplete
=
"nome"
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
"{{ old('areaFormacao') }}"
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
@
error
(
'areaFormacao'
)
...
@@ -178,35 +183,15 @@
...
@@ -178,35 +183,15 @@
</
span
>
</
span
>
@
enderror
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área*'
)
}}
</
label
>
<
select
name
=
"grandeArea"
id
=
""
class
=
"form-control"
>
@
foreach
(
$grandeAreas
as
$area
)
<
option
@
if
(
old
(
'grandeArea'
)
==
$area
->
nome
)
selected
@
endif
value
=
"
{
{$area->nome}}">{{$area->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
md
-
4
">
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área*') }}</label>
<input id="
area
" type="
text
" class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" name="
area
" value="
{{
old
(
'area'
)
}}
">
@error('area')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<label for="
subarea
" class="
col
-
form
-
label
">{{ __('S
ubárea*
') }}</label>
<
label
for
=
"
SIAPE
"
class
=
"col-form-label"
>
{{
__
(
'S
IAPE
'
)
}}
</
label
>
<input id="
subarea
" type="
text
" class="
form
-
control
@
error
(
'
subarea
'
)
is
-
invalid
@
enderror
" name="
subarea
" value="
{{
old
(
'
subarea'
)
}}
">
<
input
id
=
"
SIAPE
"
type
=
"text"
class
=
"form-control @error('
SIAPE
') is-invalid @enderror"
name
=
"
SIAPE
"
value
=
"{{ old('
SIAPE') }}"
autocomplete
=
"nome
"
>
@error('
subarea
')
@
error
(
'
SIAPE
'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
</
span
>
...
@@ -214,7 +199,7 @@
...
@@ -214,7 +199,7 @@
</
div
>
</
div
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<label for="
linkLattes
" class="
col
-
form
-
label
">{{ __('Link do curr
i
cul
um l
attes*') }}</label>
<
label
for
=
"linkLattes"
class
=
"col-form-label"
>
{{
__
(
'Link do curr
í
cul
o L
attes*'
)
}}
</
label
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
"{{ old('linkLattes') }}"
autocomplete
=
"nome"
>
<
input
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
value
=
"{{ old('linkLattes') }}"
autocomplete
=
"nome"
>
@
error
(
'linkLattes'
)
@
error
(
'linkLattes'
)
...
@@ -226,25 +211,37 @@
...
@@ -226,25 +211,37 @@
<
div
class
=
"col-md-3"
>
<
div
class
=
"col-md-3"
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade*'
)
}}
</
label
><
br
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade*'
)
}}
</
label
><
br
>
<select name="
bolsistaProdutividade
" id="
bolsistaProdutividade
" class="
form
-
control
" onchange="
mudarNivel
()
">
<
select
name
=
"bolsistaProdutividade"
id
=
"bolsistaProdutividade"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
onchange
=
"mudarNivel()"
>
<option value="
sim
">Sim</option>
<
option
value
=
""
disabled
selected
hidden
>--
Bolsista
--</
option
>
<option value="
nao
">Não</option>
<
option
@
if
(
old
(
'bolsistaProdutividade'
)
==
'nao'
)
selected
@
endif
value
=
"nao"
>
Não
</
option
>
<
option
@
if
(
old
(
'bolsistaProdutividade'
)
==
'sim'
)
selected
@
endif
value
=
"sim"
>
Sim
</
option
>
</
select
>
</
select
>
@
error
(
'bolsistaProdutividade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-1"
id
=
"nivelInput"
style
=
"display: block;"
>
<
div
class
=
"col-md-1"
id
=
"nivelInput"
style
=
"display: block;"
>
<label for="
nivel
" class="
col
-
form
-
label
">{{ __('Nivel') }}</label>
<
label
for
=
"nivel"
class
=
"col-form-label"
>
{{
__
(
'Nível*'
)
}}
</
label
>
<select name="
nivel
" id="
nivel
" class="
form
-
control
">
<
select
name
=
"nivel"
id
=
"nivel"
class
=
"form-control @error('nivel') is-invalid @enderror"
>
<
option
value
=
""
disabled
selected
hidden
></
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
<
option
value
=
"1B"
>
1
B
</
option
>
<
option
value
=
"1B"
>
1
B
</
option
>
<
option
value
=
"1C"
>
1
C
</
option
>
<
option
value
=
"1C"
>
1
C
</
option
>
<
option
value
=
"1A"
>
1
A
</
option
>
<
option
value
=
"1A"
>
1
A
</
option
>
</
select
>
</
select
>
</div>
@
error
(
'nivel'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
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"
>
...
@@ -291,27 +288,30 @@
...
@@ -291,27 +288,30 @@
outroVinculo
();
outroVinculo
();
}
}
function outroVinculo(){
function
outroVinculo
()
{
var
comboBoxVinculo
=
document
.
getElementById
(
'vinculo'
);
var
comboBoxVinculo
=
document
.
getElementById
(
'vinculo'
);
var
divOutro
=
document
.
getElementById
(
'divOutro'
);
var
divOutro
=
document
.
getElementById
(
'divOutro'
);
if(comboBoxVinculo.value === "
Outro
"){
if
(
comboBoxVinculo
.
value
===
"Outro"
)
{
divOutro
.
style
.
display
=
"block"
;
divOutro
.
style
.
display
=
"block"
;
}else{
}
else
{
divOutro
.
style
.
display
=
"none"
;
divOutro
.
style
.
display
=
"none"
;
}
}
}
}
function mudarNivel(){
window
.
onload
=
mudarNivel
();
window
.
onload
=
outroVinculo
();
window
.
onload
=
mudar
();
function
mudarNivel
()
{
var
bolsista
=
document
.
getElementById
(
'bolsistaProdutividade'
);
var
bolsista
=
document
.
getElementById
(
'bolsistaProdutividade'
);
var
nivel
=
document
.
getElementById
(
'nivelInput'
);
var
nivel
=
document
.
getElementById
(
'nivelInput'
);
if(bolsista.value === "
sim
"){
if
(
bolsista
.
value
===
"sim"
)
{
nivel
.
style
.
display
=
"block"
;
nivel
.
style
.
display
=
"block"
;
}else{
}
else
{
nivel
.
style
.
display
=
"none"
;
nivel
.
style
.
display
=
"none"
;
}
}
console.log("
a
");
}
}
</
script
>
</
script
>
@
endsection
@
endsection
\ No newline at end of file
Prev
1
2
Next
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