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
76cac09f
Commit
76cac09f
authored
Dec 12, 2022
by
unknown
Browse files
Merge branch 'master' of
https://github.com/antonioDurval/submeta
parents
9450a10f
9639b315
Changes
6
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/Auth/RegisterController.php
View file @
76cac09f
...
@@ -137,8 +137,10 @@ class RegisterController extends Controller
...
@@ -137,8 +137,10 @@ class RegisterController extends Controller
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
$proponente
->
linkLattes
=
$data
[
'linkLattes'
];
$user
->
proponentes
()
->
save
(
$proponente
);
$user
->
proponentes
()
->
save
(
$proponente
);
if
(
$proponente
->
titulacaoMaxima
==
'Técnico'
){
$proponente
->
cursos
()
->
sync
(
$data
[
'curso'
]);
$proponente
->
cursos
()
->
sync
(
$data
[
'curso'
]);
}
}
}
return
$user
;
return
$user
;
}
}
...
...
resources/views/administrador/atribuirAvaliadores.blade.php
View file @
76cac09f
...
@@ -39,13 +39,19 @@
...
@@ -39,13 +39,19 @@
</
div
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.projetos', ['evento_id' =>
$evento->id
]) }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
@
if
(
count
(
$evento
->
trabalhos
)
>
0
)
href
=
"{{ route('admin.projetos', ['evento_id' =>
$evento->id
]) }}"
@
else
href
=
"#"
@
endif
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card text-center card-menu"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
@
if
(
count
(
$evento
->
trabalhos
)
==
0
)
<
h2
style
=
"padding-top:15px"
>
EDITAL
NÃO
POSSUI
PROJETOs
</
h2
>
@
else
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
h2
style
=
"padding-top:15px"
>
Selecionar
projetos
</
h2
>
<
h2
style
=
"padding-top:15px"
>
Selecionar
projetos
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
@
php
@
php
...
@@ -62,6 +68,10 @@
...
@@ -62,6 +68,10 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
a
>
...
...
resources/views/auth/register.blade.php
View file @
76cac09f
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
</
div
>
</
div
>
<
div
style
=
"display:none"
id
=
"cursos"
class
=
"col-md-12 mb-2"
>
<
div
style
=
"display:none"
id
=
"cursos"
class
=
"col-md-12 mb-2"
>
<
label
for
=
"curso"
class
=
"col-form-label"
>
{{
__
(
'Cursos'
)
}}
<
span
style
=
"color: red; font-weight:bold;"
>*</
span
></
label
>
<
label
for
=
"curso"
class
=
"col-form-label"
>
{{
__
(
'Cursos
que leciona
'
)
}}
<
span
style
=
"color: red; font-weight:bold;"
>*</
span
></
label
>
<
br
>
<
br
>
<
div
class
=
"row col-md-12"
>
<
div
class
=
"row col-md-12"
>
@
foreach
(
$cursos
as
$curso
)
@
foreach
(
$cursos
as
$curso
)
...
@@ -155,9 +155,9 @@
...
@@ -155,9 +155,9 @@
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
<
span
style
=
"color: red; font-weight:bold;"
>*</
span
></
label
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
<
span
style
=
"color: red; font-weight:bold;"
>*</
span
></
label
>
<
select
id
=
"titulacaoMaxima"
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"
,
onchange
=
"curso()"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
old
(
'titulacaoMaxima'
)
==
'Doutorado'
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
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'
)
==
'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'
)
==
'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'
)
==
'Graduação'
)
selected
@
endif
value
=
"Graduação"
>
Graduação
</
option
>
...
@@ -303,8 +303,8 @@
...
@@ -303,8 +303,8 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
@
endsection
@
endsection
...
@@ -328,7 +328,6 @@
...
@@ -328,7 +328,6 @@
var
divProponente
=
document
.
getElementById
(
'proponente'
);
var
divProponente
=
document
.
getElementById
(
'proponente'
);
var
comboBoxCargo
=
document
.
getElementById
(
'cargo'
);
var
comboBoxCargo
=
document
.
getElementById
(
'cargo'
);
var
comboBoxVinculo
=
document
.
getElementById
(
'vinculo'
);
var
comboBoxVinculo
=
document
.
getElementById
(
'vinculo'
);
let
cursos
=
document
.
getElementById
(
'cursos'
);
if
(
comboBoxCargo
.
value
===
"Estudante"
&&
comboBoxVinculo
.
value
!==
"Pós-doutorando"
)
{
if
(
comboBoxCargo
.
value
===
"Estudante"
&&
comboBoxVinculo
.
value
!==
"Pós-doutorando"
)
{
divProponente
.
style
.
display
=
"none"
;
divProponente
.
style
.
display
=
"none"
;
...
@@ -337,12 +336,16 @@
...
@@ -337,12 +336,16 @@
divProponente
.
style
.
display
=
"block"
;
divProponente
.
style
.
display
=
"block"
;
}
}
if
(
comboBoxCargo
.
value
===
"Professor"
)
{
outroVinculo
();
}
function
curso
()
{
let
cursos
=
document
.
getElementById
(
'cursos'
);
if
(
titulacaoMaxima
.
value
!==
"Técnico"
)
{
cursos
.
style
.
display
=
"block"
;
cursos
.
style
.
display
=
"block"
;
}
else
{
}
else
{
cursos
.
style
.
display
=
"none"
;
cursos
.
style
.
display
=
"none"
;
}
}
outroVinculo
();
}
}
function
outroVinculo
()
{
function
outroVinculo
()
{
...
...
resources/views/evento/editarEvento.blade.php
View file @
76cac09f
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</
div
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
div
class
=
"col-sm-2"
>
<
label
for
=
"numParticipantes"
class
=
"col-form-label"
>
{{
__
(
'Nº de Discentes:'
)
}}
<
span
style
=
"color: red; font-weight: bold;"
>*</
span
></
label
>
<
label
for
=
"numParticipantes"
class
=
"col-form-label"
>
{{
__
(
'Nº de Discentes:'
)
}}
<
span
style
=
"color: red; font-weight: bold;"
>*</
span
></
label
>
<
input
id
=
"numParticipantes"
type
=
"number"
min
=
"1"
max
=
"20"
class
=
"form-control @error('numParticipantes') is-invalid @enderror"
name
=
"numParticipantes"
value
=
"{{
$evento->numParticipantes
}}"
required
autocomplete
=
"numParticipantes"
autofocus
>
<
input
id
=
"numParticipantes"
type
=
"number"
min
=
"1"
class
=
"form-control @error('numParticipantes') is-invalid @enderror"
name
=
"numParticipantes"
value
=
"{{
$evento->numParticipantes
}}"
required
autocomplete
=
"numParticipantes"
autofocus
>
@
error
(
'numParticipantes'
)
@
error
(
'numParticipantes'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
resources/views/evento/formulario/proponente.blade.php
View file @
76cac09f
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
<div
class=
"col-md-10"
>
<div
class=
"col-md-10"
>
<br>
<br>
<textarea
class=
"form-control @error('conflitosInteresse') is-invalid @enderror"
autocomplete=
"conflitosInteresse"
<textarea
class=
"form-control @error('conflitosInteresse') is-invalid @enderror"
autocomplete=
"conflitosInteresse"
autofocus
id=
"conflitosInteresse"
name=
"conflitosInteresse"
rows=
"4"
>
{{ old('conflitosInteresse') }}
</textarea>
id=
"conflitosInteresse"
name=
"conflitosInteresse"
rows=
"4"
>
{{ old('conflitosInteresse') }}
</textarea>
@error('conflitosInteresse')
@error('conflitosInteresse')
<span
class=
"invalid-feedback"
role=
"alert"
>
<span
class=
"invalid-feedback"
role=
"alert"
>
<strong>
{{ $message }}
</strong>
<strong>
{{ $message }}
</strong>
...
...
resources/views/user/perfilUser.blade.php
View file @
76cac09f
...
@@ -92,14 +92,15 @@
...
@@ -92,14 +92,15 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
@
if
(
Auth
()
->
user
()
->
tipo
==
'proponente
'
)
@
if
(
isset
(
$proponente
)
&&
$proponente
->
titulacaoMaxima
!=
'Técnico
'
)
<
div
class
=
"col-md-12 mb-2"
>
<
div
class
=
"col-md-12 mb-2"
>
<
label
for
=
"curso"
class
=
"col-form-label"
>
{{
__
(
'Cursos*:'
)
}}
</
label
>
<
label
for
=
"curso"
class
=
"col-form-label"
>
{{
__
(
'Cursos
em que leciona
*:'
)
}}
</
label
>
<
br
>
<
br
>
<
div
class
=
"row col-md-12"
>
<
div
class
=
"row col-md-12"
>
@
foreach
(
$cursos
as
$curso
)
@
foreach
(
$cursos
as
$curso
)
<
div
class
=
"col-sm-6"
>
<
div
class
=
"col-sm-6"
>
<
input
type
=
"checkbox"
name
=
"curso[]"
id
=
"curso
{
{$curso->id}
}
"
value
=
"
{
{$curso->id}
}
"
@
if
((
empty
(
old
(
'curso'
))
&&
$proponente
->
cursos
->
contains
(
$curso
->
id
))
||
(
!
empty
(
old
(
'curso'
))
&&
in_array
(
$curso
->
id
,
old
(
'curso'
))))
checked
@
endif
>
<
input
type
=
"checkbox"
name
=
"curso[]"
id
=
"curso
{
{$curso->id}
}
"
value
=
"
{
{$curso->id}
}
"
@
if
((
empty
(
old
(
'curso'
))
&&
$proponente
->
cursos
->
contains
(
$curso
->
id
))
||
(
!
empty
(
old
(
'curso'
))
&&
in_array
(
$curso
->
id
,
old
(
'curso'
))))
checked
@
endif
>
<
label
class
=
"form-check-label"
for
=
"curso
{
{$curso->id}
}
"
>
<
label
class
=
"form-check-label"
for
=
"curso
{
{$curso->id}
}
"
>
{{
$curso
->
nome
}}
{{
$curso
->
nome
}}
</
label
>
</
label
>
...
@@ -233,7 +234,7 @@
...
@@ -233,7 +234,7 @@
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima*'
)
}}
</
label
>
<
label
for
=
"titulacaoMaxima"
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima*'
)
}}
</
label
>
<
select
id
=
"titulacaoMaxima"
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"
,
onchange
=
"curso()"
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
@
isset
(
$proponente
)
@
isset
(
$proponente
)
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
'Doutorado'
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
'Doutorado'
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
...
...
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