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
f564a7e8
Unverified
Commit
f564a7e8
authored
May 26, 2021
by
carlos1270
Committed by
GitHub
May 26, 2021
Browse files
Merge pull request #84 from carlos1270/master
View inicio
parents
7c3e7461
940b007c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
f564a7e8
...
...
@@ -505,27 +505,27 @@ class TrabalhoController extends Controller
public
function
show
(
$id
)
{
//
$projeto
=
Trabalho
::
find
(
$id
);
$edital
=
Evento
::
find
(
$projeto
->
evento_id
);
$grandeArea
=
GrandeArea
::
where
(
'id'
,
$projeto
->
grande_area_id
)
->
select
(
'nome'
)
->
first
();
$area
=
Area
::
where
(
'id'
,
$projeto
->
area_id
)
->
select
(
'nome'
)
->
first
();
$subarea
=
Subarea
::
where
(
'id'
,
$projeto
->
sub_area_id
)
->
select
(
'nome'
)
->
first
();
$proponente
=
Proponente
::
find
(
$projeto
->
proponente_id
);
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
$projeto
=
Trabalho
::
find
(
$id
);
$edital
=
Evento
::
find
(
$projeto
->
evento_id
);
$grandeAreas
=
GrandeArea
::
all
();
$areas
=
Area
::
all
();
$subareas
=
Subarea
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
return
view
(
'projeto.visualizar'
)
->
with
([
'projeto'
=>
$projeto
,
'grandeArea'
=>
$grandeArea
,
'area'
=>
$area
,
'subArea'
=>
$subarea
,
'proponente'
=>
$proponente
,
'edital'
=>
$edital
,
'users'
=>
$users
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'participantes'
=>
$participantes
,
'arquivos'
=>
$arquivos
,]);
'grandeAreas'
=>
$grandeAreas
,
'areas'
=>
$areas
,
'subAreas'
=>
$subareas
,
'edital'
=>
$edital
,
'users'
=>
$users
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'participantes'
=>
$participantes
,
'arquivos'
=>
$arquivos
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
]);
}
/**
...
...
@@ -1371,7 +1371,7 @@ class TrabalhoController extends Controller
public
function
atualizar
(
Request
$request
,
$id
)
{
$edital
=
Evento
::
find
(
$request
->
editalId
);
$hoje
=
now
();
$projeto
=
Trabalho
::
find
(
$id
);
if
(
!
(
$edital
->
inicioSubmissao
<
$hoje
&&
$edital
->
fimSubmissao
>=
$hoje
))
{
...
...
public/css/layout.css
View file @
f564a7e8
...
...
@@ -220,7 +220,8 @@ body{
border-radius
:
5px
;
}
.flexcroll
{
width
:
500px
;
.flexcroll
{
width
:
99%
;
height
:
400px
;
overflow-y
:
inherit
;
overflow-x
:
hidden
;
...
...
resources/views/index.blade.php
View file @
f564a7e8
...
...
@@ -54,8 +54,28 @@
</
div
>
</
div
>
</
li
>
@
elseif
(
$fimSub
<
$today
&&
$fimRev
>=
$today
||
$i
==
1
)
<
li
class
=
"col-sm-12 li-editais avaliacao"
style
=
"display: none;"
>
@
elseif
(
$fimSub
<
$today
)
<
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
=
"row"
>
<
div
class
=
"col-sm-1"
>
...
...
@@ -74,8 +94,8 @@
</
div
>
</
div
>
</
div
>
</
li
>
@
elseif
(
$fimRev
<=
$today
)
</
li
>
--
}}
{{
--
@
elseif
(
$fimRev
<=
$today
)
<
li
class
=
"col-sm-12 li-editais encerrado"
style
=
"display: none;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
...
...
@@ -95,7 +115,7 @@
</
div
>
</
div
>
</
div
>
</
li
>
</
li
>
--
}}
@
endif
@
endforeach
</
ul
>
...
...
@@ -107,7 +127,7 @@
<
div
class
=
"col-md-4"
style
=
"float: right;"
>
<
select
id
=
""
class
=
"form-control select-submeta"
onchange
=
"exibirEditais(this)"
>
<
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
=
"todos"
>
Todos
</
option
>
</
select
>
...
...
resources/views/layouts/app.blade.php
View file @
f564a7e8
...
...
@@ -108,11 +108,12 @@
<div
style=
"color: rgb(0, 140, 255); margin: 5px; text-align: center; font-size: 20px;"
>
Entrar
</div>
<input
type=
"hidden"
name=
"login"
value=
"0"
>
<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>
<input
id=
"email"
type=
"email"
class=
"form-control @error('email') is-invalid @enderror"
name=
"email"
value=
"{{ old('email') }}"
required
autocomplete=
"email"
autofocus
>
@error('email')
<span
class=
"invalid-feedback"
role=
"alert"
>
<strong>
{{ $message }}
</strong>
...
...
@@ -333,7 +334,7 @@
event
.
stopPropagation
();
});
});
@
if
(
old
(
'
email
'
)
!=
null
)
@
if
(
old
(
'
login
'
)
!=
null
)
$
(
document
).
ready
(
function
()
{
$
(
'
#dropdownMenuLink
'
).
click
();
});
...
...
resources/views/projeto/editar.blade.php
View file @
f564a7e8
This diff is collapsed.
Click to expand it.
resources/views/projeto/visualizar.blade.php
View file @
f564a7e8
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