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
566e8d48
Commit
566e8d48
authored
May 27, 2021
by
Danillo Bion
Browse files
Merge branch 'master' of
https://github.com/lmts-ufape/submeta
into modificacoes_layout_4
parents
8fdd6e65
f564a7e8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
566e8d48
...
@@ -505,27 +505,27 @@ class TrabalhoController extends Controller
...
@@ -505,27 +505,27 @@ class TrabalhoController extends Controller
public
function
show
(
$id
)
public
function
show
(
$id
)
{
{
//
//
$projeto
=
Trabalho
::
find
(
$id
);
$projeto
=
Trabalho
::
find
(
$id
);
$edital
=
Evento
::
find
(
$projeto
->
evento_id
);
$edital
=
Evento
::
find
(
$projeto
->
evento_id
);
$grandeArea
=
GrandeArea
::
where
(
'id'
,
$projeto
->
grande_area_id
)
->
select
(
'nome'
)
->
first
();
$grandeAreas
=
GrandeArea
::
all
();
$area
=
Area
::
where
(
'id'
,
$projeto
->
area_id
)
->
select
(
'nome'
)
->
first
();
$areas
=
Area
::
all
();
$subarea
=
Subarea
::
where
(
'id'
,
$projeto
->
sub_area_id
)
->
select
(
'nome'
)
->
first
();
$subareas
=
Subarea
::
all
();
$proponente
=
Proponente
::
find
(
$projeto
->
proponente_id
);
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
get
();
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
return
view
(
'projeto.visualizar'
)
->
with
([
'projeto'
=>
$projeto
,
return
view
(
'projeto.visualizar'
)
->
with
([
'projeto'
=>
$projeto
,
'grandeArea'
=>
$grandeArea
,
'grandeAreas'
=>
$grandeAreas
,
'area'
=>
$area
,
'areas'
=>
$areas
,
'subArea'
=>
$subarea
,
'subAreas'
=>
$subareas
,
'proponente'
=>
$proponente
,
'edital'
=>
$edital
,
'edital'
=>
$edital
,
'users'
=>
$users
,
'users'
=>
$users
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'participantes'
=>
$participantes
,
'participantes'
=>
$participantes
,
'arquivos'
=>
$arquivos
,
'arquivos'
=>
$arquivos
,]);
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
]);
}
}
/**
/**
...
@@ -1371,7 +1371,7 @@ class TrabalhoController extends Controller
...
@@ -1371,7 +1371,7 @@ class TrabalhoController extends Controller
public
function
atualizar
(
Request
$request
,
$id
)
{
public
function
atualizar
(
Request
$request
,
$id
)
{
$edital
=
Evento
::
find
(
$request
->
editalId
);
$edital
=
Evento
::
find
(
$request
->
editalId
);
$hoje
=
now
();
$hoje
=
now
();
$projeto
=
Trabalho
::
find
(
$id
);
$projeto
=
Trabalho
::
find
(
$id
);
if
(
!
(
$edital
->
inicioSubmissao
<
$hoje
&&
$edital
->
fimSubmissao
>=
$hoje
))
{
if
(
!
(
$edital
->
inicioSubmissao
<
$hoje
&&
$edital
->
fimSubmissao
>=
$hoje
))
{
...
...
public/css/layout.css
View file @
566e8d48
...
@@ -220,7 +220,8 @@ body{
...
@@ -220,7 +220,8 @@ body{
border-radius
:
5px
;
border-radius
:
5px
;
}
}
.flexcroll
{
width
:
500px
;
.flexcroll
{
width
:
99%
;
height
:
400px
;
height
:
400px
;
overflow-y
:
inherit
;
overflow-y
:
inherit
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
...
...
resources/views/index.blade.php
View file @
566e8d48
...
@@ -54,8 +54,28 @@
...
@@ -54,8 +54,28 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
li
>
</
li
>
@
elseif
(
$fimSub
<
$today
&&
$fimRev
>=
$today
||
$i
==
1
)
@
elseif
(
$fimSub
<
$today
)
<
li
class
=
"col-sm-12 li-editais avaliacao"
style
=
"display: none;"
>
<
li
class
=
"col-sm-12 li-editais encerrado"
style
=
"display: none;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1"
>
<
img
class
=
"img-arquivo"
src
=
"{{ asset('img/icons/logo_arquivo.png') }}"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-8"
>
<
div
>
{{
$evento
->
nome
}}
</
div
>
<
div
class
=
"color-subtitle-edital"
>
Submissão
até
o
dia
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))
}}
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id' =>
$evento->id
]) }}"
>
<
button
class
=
"btn btn-opcoes-edital background-red"
style
=
"float: right;"
>
Encerrado
</
button
>
</
a
>
</
div
>
</
div
>
</
div
>
</
li
>
{{
--
<
li
class
=
"col-sm-12 li-editais avaliacao"
style
=
"display: none;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1"
>
<
div
class
=
"col-sm-1"
>
...
@@ -74,8 +94,8 @@
...
@@ -74,8 +94,8 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
li
>
</
li
>
--
}}
@
elseif
(
$fimRev
<=
$today
)
{{
--
@
elseif
(
$fimRev
<=
$today
)
<
li
class
=
"col-sm-12 li-editais encerrado"
style
=
"display: none;"
>
<
li
class
=
"col-sm-12 li-editais encerrado"
style
=
"display: none;"
>
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
...
@@ -95,7 +115,7 @@
...
@@ -95,7 +115,7 @@
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
li
>
</
li
>
--
}}
@
endif
@
endif
@
endforeach
@
endforeach
</
ul
>
</
ul
>
...
@@ -107,7 +127,7 @@
...
@@ -107,7 +127,7 @@
<
div
class
=
"col-md-4"
style
=
"float: right;"
>
<
div
class
=
"col-md-4"
style
=
"float: right;"
>
<
select
id
=
""
class
=
"form-control select-submeta"
onchange
=
"exibirEditais(this)"
>
<
select
id
=
""
class
=
"form-control select-submeta"
onchange
=
"exibirEditais(this)"
>
<
option
value
=
"aberto"
selected
>
Aberto
</
option
>
<
option
value
=
"aberto"
selected
>
Aberto
</
option
>
<
option
value
=
"avaliacao"
>
Em
Avaliação
</
option
>
{{
--
<
option
value
=
"avaliacao"
>
Em
Avaliação
</
option
>
--
}}
<
option
value
=
"encerrado"
>
Encerrado
</
option
>
<
option
value
=
"encerrado"
>
Encerrado
</
option
>
<
option
value
=
"todos"
>
Todos
</
option
>
<
option
value
=
"todos"
>
Todos
</
option
>
</
select
>
</
select
>
...
...
resources/views/layouts/app.blade.php
View file @
566e8d48
...
@@ -108,11 +108,12 @@
...
@@ -108,11 +108,12 @@
<div
style=
"color: rgb(0, 140, 255); margin: 5px; text-align: center; font-size: 20px;"
>
<div
style=
"color: rgb(0, 140, 255); margin: 5px; text-align: center; font-size: 20px;"
>
Entrar
Entrar
</div>
</div>
<input
type=
"hidden"
name=
"login"
value=
"0"
>
<div
style=
"margin-top: 30px;"
>
<div
style=
"margin-top: 30px;"
>
<label
for=
"email"
class=
"col-form-label negrito"
style=
"color: rgb(0, 140, 255);"
>
{{ __('Endereço de E-mail') }}
</label>
<label
for=
"email"
class=
"col-form-label negrito"
style=
"color: rgb(0, 140, 255);"
>
{{ __('Endereço de E-mail') }}
</label>
<input
id=
"email"
type=
"email"
class=
"form-control @error('email') is-invalid @enderror"
name=
"email"
value=
"{{ old('email') }}"
required
autocomplete=
"email"
autofocus
>
<input
id=
"email"
type=
"email"
class=
"form-control @error('email') is-invalid @enderror"
name=
"email"
value=
"{{ old('email') }}"
required
autocomplete=
"email"
autofocus
>
@error('email')
@error('email')
<span
class=
"invalid-feedback"
role=
"alert"
>
<span
class=
"invalid-feedback"
role=
"alert"
>
<strong>
{{ $message }}
</strong>
<strong>
{{ $message }}
</strong>
...
@@ -333,7 +334,7 @@
...
@@ -333,7 +334,7 @@
event
.
stopPropagation
();
event
.
stopPropagation
();
});
});
});
});
@
if
(
old
(
'
email
'
)
!=
null
)
@
if
(
old
(
'
login
'
)
!=
null
)
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'
#dropdownMenuLink
'
).
click
();
$
(
'
#dropdownMenuLink
'
).
click
();
});
});
...
...
resources/views/projeto/editar.blade.php
View file @
566e8d48
This diff is collapsed.
Click to expand it.
resources/views/projeto/visualizar.blade.php
View file @
566e8d48
This diff is collapsed.
Click to expand it.
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