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
a690b026
Commit
a690b026
authored
3 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Adicionada filtragem na tela de editais
parent
dc920129
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/coordenador/home.blade.php
+57
-6
resources/views/coordenador/home.blade.php
with
57 additions
and
6 deletions
+57
-6
resources/views/coordenador/home.blade.php
View file @
a690b026
...
@@ -9,7 +9,13 @@
...
@@ -9,7 +9,13 @@
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"row justify-content-between"
>
<
div
class
=
"row justify-content-between"
>
<
div
class
=
"col-sm"
></
div
>
<
div
class
=
"col-sm"
>
<
select
id
=
""
class
=
"form-control select-submeta"
onchange
=
"exibirEditais(this)"
style
=
"width: 140px;"
>
<
option
value
=
"todos"
selected
>
Todos
</
option
>
<
option
value
=
"aberto"
>
Aberto
(
s
)
</
option
>
<
option
value
=
"encerrado"
>
Encerrado
(
s
)
</
option
>
</
select
>
</
div
>
<
div
class
=
"col-sm"
style
=
"margin-bottom: 10px"
>
<
div
class
=
"col-sm"
style
=
"margin-bottom: 10px"
>
@
if
(
$flag
==
'false'
)
@
if
(
$flag
==
'false'
)
@
if
(
count
(
$eventos
)
>
0
)
@
if
(
count
(
$eventos
)
>
0
)
...
@@ -46,9 +52,17 @@
...
@@ -46,9 +52,17 @@
@
foreach
(
$eventos
as
$evento
)
@
foreach
(
$eventos
as
$evento
)
@
if
(
Auth
::
check
())
@
if
(
Auth
::
check
())
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
>
@
if
(
$evento
->
fimSubmissao
>=
$hoje
)
@
else
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"aberto"
>
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
>
@
else
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"encerrado"
>
@
endif
@
else
@
if
(
$evento
->
fimSubmissao
>=
$hoje
)
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"aberto"
>
@
else
<
a
href
=
"{{ route('evento.visualizarNaoLogado', ['id'=>
$evento->id
]) }}"
style
=
"text-decoration: none"
class
=
"encerrado"
>
@
endif
@
endif
@
endif
<
div
class
=
"card"
style
=
"width: 18rem; border-radius:12px; border-width:0px; margin:10px"
>
<
div
class
=
"card"
style
=
"width: 18rem; border-radius:12px; border-width:0px; margin:10px"
>
@
if
(
isset
(
$evento
->
fotoEvento
))
@
if
(
isset
(
$evento
->
fotoEvento
))
...
@@ -64,7 +78,7 @@
...
@@ -64,7 +78,7 @@
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h3
style
=
"color: #01487E; font-family:Arial, Helvetica, sans-serif; font-size:30px; font-weight:bold"
>
{{
$evento
->
nome
}}
</
h3
>
<
h3
style
=
"color: #01487E; font-family:Arial, Helvetica, sans-serif; font-size:30px; font-weight:bold"
>
{{
$evento
->
nome
}}
</
h3
>
{{
--
@
if
(
Auth
::
user
()
->
tipo
==
"administrador"
||
Auth
::
user
()
->
tipo
==
"administradorResponsavel"
)
--
}}
{{
--
@
if
(
Auth
::
user
()
->
tipo
==
"administrador"
||
Auth
::
user
()
->
tipo
==
"administradorResponsavel"
)
--
}}
@
can
(
'isCoordenador'
,
$evento
)
{{
--
@
can
(
'isCoordenador'
,
$evento
)
<
div
class
=
"btn-group dropright dropdown-options"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
a
id
=
"options"
class
=
"dropdown-toggle"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
...
@@ -89,7 +103,7 @@
...
@@ -89,7 +103,7 @@
</
form
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endcan
@
endcan
--
}}
{{
--
@
endif
--
}}
{{
--
@
endif
--
}}
</
div
>
</
div
>
...
@@ -182,3 +196,40 @@
...
@@ -182,3 +196,40 @@
</
div
>
</
div
>
@
endsection
@
endsection
@
section
(
'javascript'
)
<
script
>
function
exibirEditais
(
select
)
{
let
abertos
=
document
.
getElementsByClassName
(
"aberto"
);
let
encerrados
=
document
.
getElementsByClassName
(
"encerrado"
);
if
(
select
.
value
==
"todos"
){
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
""
;
}
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
""
;
}
}
else
if
(
select
.
value
==
"aberto"
)
{
for
(
let
i
=
0
;
i
<
abertos
.
length
;
i
++
){
abertos
[
i
]
.
style
.
display
=
""
;
}
for
(
let
j
=
0
;
j
<
encerrados
.
length
;
j
++
){
encerrados
[
j
]
.
style
.
display
=
"none"
;
}
}
else
{
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
=
""
;
}
}
}
</
script
>
@
endsection
\ No newline at end of file
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