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
37d6dc55
Commit
37d6dc55
authored
4 years ago
by
Carlos André
Browse files
Options
Download
Email Patches
Plain Diff
view editais proponente
parent
86c0bb23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/views/administrador/editais.blade.php
+1
-1
resources/views/administrador/editais.blade.php
resources/views/proponente/editais.blade.php
+37
-5
resources/views/proponente/editais.blade.php
with
38 additions
and
6 deletions
+38
-6
resources/views/administrador/editais.blade.php
View file @
37d6dc55
...
...
@@ -26,7 +26,7 @@
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-info"
style
=
"float: right;"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
<
hr
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"row"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/proponente/editais.blade.php
View file @
37d6dc55
...
...
@@ -6,10 +6,26 @@
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h3
>
Editais
</
h3
>
<
div
class
=
"col-sm-4"
>
<
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
>
<
hr
>
...
...
@@ -24,7 +40,7 @@
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tbody
id
=
"eventos"
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
...
...
@@ -80,6 +96,22 @@
@
section
(
'javascript'
)
<
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
>
@
endsection
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