Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
a1966b04
Commit
a1966b04
authored
3 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Adição de nova opção na filtragem(abrirao)
parent
b44f203c
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/guzzlehttp/guzzle-6.5.8
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/coordenador/home.blade.php
+36
-8
resources/views/coordenador/home.blade.php
with
36 additions
and
8 deletions
+36
-8
resources/views/coordenador/home.blade.php
View file @
a1966b04
...
...
@@ -14,6 +14,7 @@
<
option
value
=
"todos"
selected
>
Todos
</
option
>
<
option
value
=
"aberto"
>
Aberto
(
s
)
</
option
>
<
option
value
=
"encerrado"
>
Encerrado
(
s
)
</
option
>
<
option
value
=
"abrira"
>
Abrirão
</
option
>
</
select
>
</
div
>
<
div
class
=
"col-sm"
style
=
"margin-bottom: 10px"
>
...
...
@@ -43,25 +44,26 @@
<
hr
>
</
div
>
</
div
>
@
php
$hoje
=
now
();
@
endphp
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
@
if
(
count
(
$eventos
)
>
0
)
@
foreach
(
$eventos
as
$evento
)
@
if
(
Auth
::
check
())
@
if
(
$evento
->
fimSubmissao
>=
$hoje
)
@
if
(
$evento
->
fimSubmissao
>=
$hoje
&&
$hoje
>=
$evento
->
inicioSubmissao
)
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"aberto"
>
@
else
@
else
if
(
$hoje
>
$evento
->
fimSubmissao
)
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"encerrado"
>
@
else
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"vaiAbrir"
>
@
endif
@
else
@
if
(
$evento
->
fimSubmissao
>=
$hoje
)
@
if
(
$evento
->
fimSubmissao
>=
$hoje
&&
$hoje
>=
$evento
->
inicioSubmissao
)
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"aberto"
>
@
else
@
else
if
(
$hoje
>
$evento
->
fimSubmissao
)
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"encerrado"
>
@
else
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"vaiAbrir"
>
@
endif
@
endif
<
div
class
=
"card"
style
=
"width: 18rem; border-radius:12px; border-width:0px; margin:10px"
>
...
...
@@ -202,6 +204,8 @@
function
exibirEditais
(
select
)
{
let
abertos
=
document
.
getElementsByClassName
(
"aberto"
);
let
encerrados
=
document
.
getElementsByClassName
(
"encerrado"
);
let
vaiAbrir
=
document
.
getElementsByClassName
(
"vaiAbrir"
);
if
(
select
.
value
==
"todos"
){
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
...
...
@@ -211,6 +215,10 @@
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
""
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
""
;
}
}
else
if
(
select
.
value
==
"aberto"
)
{
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
""
;
...
...
@@ -219,11 +227,31 @@
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
"none"
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
"none"
;
}
}
else
if
(
select
.
value
==
"abrira"
){
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
"none"
;
}
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
"none"
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
""
;
}
}
else
{
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
"none"
;
}
for
(
let
l
=
0
;
l
<
vaiAbrir
.
length
;
l
++
){
vaiAbrir
[
l
]
.
style
.
display
=
"none"
;
}
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
""
;
}
...
...
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
Menu
Projects
Groups
Snippets
Help