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
37d6dc55
Commit
37d6dc55
authored
May 14, 2021
by
Carlos André
Browse files
view editais proponente
parent
86c0bb23
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/editais.blade.php
View file @
37d6dc55
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<
div
class
=
"col-sm-2"
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-info"
style
=
"float: right;"
>
Criar
Edital
</
a
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-info"
style
=
"float: right;"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
@
if
(
session
(
'mensagem'
))
@
if
(
session
(
'mensagem'
))
<
div
class
=
"row"
>
<
div
class
=
"row"
>
...
...
resources/views/proponente/editais.blade.php
View file @
37d6dc55
...
@@ -6,10 +6,26 @@
...
@@ -6,10 +6,26 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-4"
>
<
h3
>
Editais
</
h3
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-2"
>
<
button
class
=
"btn"
onclick
=
"buscarEdital(this.parentElement.parentElement.children[1].children[0])"
>
<
img
src
=
"
{
{asset('img/icons/logo_lupa.png')}
}
"
alt
=
""
>
</
button
>
</
div
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
class
=
"form-control form-control-edit"
placeholder
=
"Digite o nome do edital"
onkeyup
=
"buscarEdital(this)"
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-1"
>
</
div
>
<
div
class
=
"col-sm-5"
style
=
"float: center;"
>
<
h4
class
=
"titulo-table"
>
Editais
</
h4
>
</
div
>
<
div
class
=
"col-sm-2"
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
...
@@ -24,7 +40,7 @@
...
@@ -24,7 +40,7 @@
<
th
scope
=
"col"
>
Opção
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
>
<
tbody
id
=
"eventos"
>
@
foreach
(
$eventos
as
$evento
)
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
tr
>
<
td
>
<
td
>
...
@@ -80,6 +96,22 @@
...
@@ -80,6 +96,22 @@
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
>
<
script
>
function
buscarEdital
(
input
)
{
var
editais
=
document
.
getElementById
(
'eventos'
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
var
nomeEvento
=
editais
[
i
]
.
children
[
0
]
.
children
[
0
]
.
textContent
;
if
(
nomeEvento
.
substr
(
0
)
.
indexOf
(
input
.
value
)
>=
0
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
else
{
editais
[
i
]
.
style
.
display
=
"none"
;
}
}
}
else
{
for
(
var
i
=
0
;
i
<
editais
.
length
;
i
++
)
{
editais
[
i
]
.
style
.
display
=
""
;
}
}
}
</
script
>
</
script
>
@
endsection
@
endsection
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