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
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
f564a7e8
...
@@ -507,25 +507,25 @@ class TrabalhoController extends Controller
...
@@ -507,25 +507,25 @@ class TrabalhoController extends Controller
//
//
$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
,
]);
}
}
/**
/**
...
...
public/css/layout.css
View file @
f564a7e8
...
@@ -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 @
f564a7e8
...
@@ -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 @
f564a7e8
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
<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>
...
@@ -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 @
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