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
f719d063
Commit
f719d063
authored
Jun 09, 2020
by
alinetenorio
Browse files
removendo grandeArea, area e subarea do cadastro de proponente
parent
894289f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/Auth/RegisterController.php
View file @
f719d063
...
...
@@ -66,14 +66,11 @@ class RegisterController extends Controller
'cargo'
=>
[
'required'
],
'vinculo'
=>
[
'required'
],
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,grandeArea,area,subarea,bolsistaProdutividade,linkLattes'
],
'grandeArea'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,area,subarea,bolsistaProdutividade,linkLattes'
],
'area'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,subarea,bolsistaProdutividade,linkLattes'
],
'subarea'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,bolsistaProdutividade,linkLattes'
],
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,subarea,linkLattes'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,grandeArea,area,subarea,bolsistaProdutividade'
],
'titulacaoMaxima'
=>
[
'required_with:anoTitulacao,areaFormacao,bolsistaProdutividade,linkLattes'
],
'anoTitulacao'
=>
[
'required_with:titulacaoMaxima,areaFormacao,bolsistaProdutividade,linkLattes'
],
'areaFormacao'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,bolsistaProdutividade,linkLattes'
],
'bolsistaProdutividade'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,linkLattes'
],
'linkLattes'
=>
[
'required_with:titulacaoMaxima,anoTitulacao,areaFormacao,bolsistaProdutividade'
],
]);
}
...
...
@@ -111,10 +108,7 @@ class RegisterController extends Controller
$proponente
->
vinculo
=
$data
[
'vinculo'
];
$proponente
->
titulacaoMaxima
=
$data
[
'titulacaoMaxima'
];
$proponente
->
anoTitulacao
=
$data
[
'anoTitulacao'
];
$proponente
->
areaFormacao
=
$data
[
'areaFormacao'
];
$proponente
->
grandeArea
=
$data
[
'grandeArea'
];
$proponente
->
area
=
$data
[
'area'
];
$proponente
->
subArea
=
$data
[
'subarea'
];
$proponente
->
areaFormacao
=
$data
[
'areaFormacao'
];
$proponente
->
bolsistaProdutividade
=
$data
[
'bolsistaProdutividade'
];
$proponente
->
nivel
=
$data
[
'nivel'
];
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
...
...
@@ -126,8 +120,7 @@ class RegisterController extends Controller
return
$user
;
}
public
function
showRegistrationForm
(){
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'auth.register'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);
public
function
showRegistrationForm
(){
return
view
(
'auth.register'
);
}
}
app/Http/Controllers/ProponenteController.php
View file @
f719d063
...
...
@@ -17,23 +17,19 @@ class ProponenteController extends Controller
}
public
function
create
(){
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'proponente.cadastro'
)
->
with
([
'grandeAreas'
=>
$grandesAreas
]);;
return
view
(
'proponente.cadastro'
);
}
public
function
store
(
Request
$request
){
if
(
Auth
::
user
()
->
proponentes
==
null
)
{
$validated
=
$request
->
validate
([
'senha'
=>
'required'
,
$validated
=
$request
->
validate
([
'cargo'
=>
'required'
,
'vinculo'
=>
'required'
,
'titulacaoMaxima'
=>
'required'
,
'anoTitulacao'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'area'
=>
'required'
,
'areaFormacao'
=>
'required'
,
'bolsistaProdutividade'
=>
'required'
,
'nivel'
=>
'required'
,
'linkLattes'
=>
'required'
,
]);
...
...
@@ -43,10 +39,7 @@ class ProponenteController extends Controller
$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
->
areaFormacao
=
$request
->
areaFormacao
;
$proponente
->
bolsistaProdutividade
=
$request
->
bolsistaProdutividade
;
$proponente
->
nivel
=
$request
->
nivel
;
$proponente
->
linkLattes
=
$request
->
linkLattes
;
...
...
resources/views/auth/register.blade.php
View file @
f719d063
...
...
@@ -177,41 +177,7 @@
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
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 class="
form
-
group
row
">
<div class="
col
-
md
-
4
">
<label for="
subarea
" class="
col
-
form
-
label
">{{ __('Subárea*') }}</label>
<input id="
subarea
" type="
text
" class="
form
-
control
@
error
(
'subarea'
)
is
-
invalid
@
enderror
" name="
subarea
" value="
{{
old
(
'subarea'
)
}}
">
@error('subarea')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"linkLattes"
class
=
"col-form-label"
>
{{
__
(
'Link do curriculum lattes*'
)
}}
</
label
>
...
...
@@ -227,13 +193,13 @@
<
div
class
=
"col-md-3"
>
<
label
for
=
"bolsistaProdutividade"
class
=
"col-form-label"
>
{{
__
(
'Bolsista de Produtividade*'
)
}}
</
label
><
br
>
<
select
name
=
"bolsistaProdutividade"
id
=
"bolsistaProdutividade"
class
=
"form-control"
onchange
=
"mudarNivel()"
>
<option value="
sim
">Sim</option>
<
option
value
=
"nao"
>
Não
</
option
>
<
option
value
=
"sim"
>
Sim
</
option
>
</
select
>
</
div
>
<div class="
col
-
md
-
1
" id="
nivelInput
" style="
display
:
block
;
">
<label for="
nivel
" class="
col
-
form
-
label
">{{ __('Nivel') }}</label>
<
div
class
=
"col-md-1"
id
=
"nivelInput"
style
=
"display:
none
;"
>
<
label
for
=
"nivel"
class
=
"col-form-label"
>
{{
__
(
'Nivel
*
'
)
}}
</
label
>
<
select
name
=
"nivel"
id
=
"nivel"
class
=
"form-control"
>
<
option
value
=
"2"
>
2
</
option
>
<
option
value
=
"1D"
>
1
D
</
option
>
...
...
resources/views/participante/editais.blade.php
0 → 100644
View file @
f719d063
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
@
if
(
auth
()
->
user
()
->
tipo
===
"participante"
)
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
></
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('projetos.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Projetos
submetidos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
@
endif
</
div
>
\ No newline at end of file
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