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
2946a070
"app/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "4dad19901050d043997ea92c166b1af5f0325e1b"
Commit
2946a070
authored
May 12, 2022
by
unknown
Browse files
Adição de um campo busca na listagem das Propostas
parent
a690b026
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/analisar.blade.php
View file @
2946a070
...
...
@@ -5,7 +5,7 @@
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 100px;"
>
<
div
class
=
"col-md-11"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-
7
"
>
<
div
class
=
"col-sm-
4
"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
...
...
@@ -42,6 +42,11 @@
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
style
=
"display:flex; align-items: end;"
>
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Título do projeto ou nome do Proponente"
onkeyup
=
"buscar(this)"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
div
>
<
div
class
=
"col-sm-5"
style
=
"top: 40px; text-align: end;"
>
<
h6
style
=
"color: #234B8B; font-weight: bold;font-size: 13px; text-align: right;padding-bottom: 35px"
>
<
img
src
=
"
{
{asset('img/icons/pendente.png')}
}
"
style
=
"width: 22px"
/>
...
...
@@ -58,7 +63,7 @@
</
div
>
</
div
>
</
div
>
<
div
id
=
"projetos"
>
@
foreach
(
$trabalhos
as
$trabalho
)
<!--
Informações
Proponente
-->
...
...
@@ -71,7 +76,7 @@
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem; padding-left: 25px;padding-right: 25px;"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-10"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Título
:
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-10
tituloProj
"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Título
:
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-2"
>
@
if
(
$trabalho
->
status
==
"aprovado"
)
<
img
src
=
"
{
{asset('img/icons/aprovado.png')}
}
"
style
=
"width: 23%;margin: auto;display: flex;margin-top: 0px;justify-content: center;align-items: center;"
alt
=
""
>
...
...
@@ -87,7 +92,7 @@
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Proponente
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
<
p
class
=
"proponenteProj"
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Proponente
:</
b
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
p
>
</
div
>
<
div
class
=
"col-md-12"
>
<
p
style
=
"color: #4D4D4D; padding: 0px"
><
b
>
Discentes
:</
b
>
...
...
@@ -108,6 +113,7 @@
</
div
>
</
div
>
@
endforeach
</
div
>
<
div
class
=
"row justify-content-center"
>
...
...
@@ -128,6 +134,27 @@
function
myFunc
(
i
){
document
.
getElementById
(
"vizuProposta"
+
i
)
.
click
();
}
function
buscar
(
input
)
{
let
trabalhos
=
document
.
getElementById
(
"projetos"
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
){
let
tituloProjeto
=
trabalhos
[
i
]
.
getElementsByClassName
(
"tituloProj"
)[
0
]
.
textContent
let
nomeProponente
=
trabalhos
[
i
]
.
getElementsByClassName
(
"proponenteProj"
)[
0
]
.
textContent
if
(
tituloProjeto
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
||
nomeProponente
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
)
{
trabalhos
[
i
]
.
style
.
display
=
""
;
}
else
{
trabalhos
[
i
]
.
style
.
display
=
"none"
;
}
}
}
else
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
)
{
trabalhos
[
i
]
.
style
.
display
=
""
;
}
}
}
</
script
>
@
endsection
<
style
>
...
...
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