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
561a6f19
Unverified
Commit
561a6f19
authored
5 years ago
by
Gabriel Antônio da Silva
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #13 from lmts-ufape/carlos
Carlos
parents
7387b6c8
9f414dff
Changes
62
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
resources/views/administrador/index.blade.php
+1
-1
resources/views/administrador/index.blade.php
resources/views/administrador/novo_user.blade.php
+8
-0
resources/views/administrador/novo_user.blade.php
resources/views/administrador/projetos.blade.php
+71
-0
resources/views/administrador/projetos.blade.php
resources/views/administrador/selecionarAvaliadores.blade.php
+141
-0
...urces/views/administrador/selecionarAvaliadores.blade.php
resources/views/administrador/selecionarProjetos.blade.php
+135
-0
resources/views/administrador/selecionarProjetos.blade.php
resources/views/administrador/visualizarParecer.blade.php
+38
-0
resources/views/administrador/visualizarParecer.blade.php
resources/views/auth/register.blade.php
+0
-180
resources/views/auth/register.blade.php
resources/views/avaliador/editais.blade.php
+6
-23
resources/views/avaliador/editais.blade.php
resources/views/avaliador/index.blade.php
+1
-20
resources/views/avaliador/index.blade.php
resources/views/avaliador/listarTrabalhos.blade.php
+20
-4
resources/views/avaliador/listarTrabalhos.blade.php
resources/views/avaliador/parecer.blade.php
+59
-0
resources/views/avaliador/parecer.blade.php
resources/views/componentes/popup.blade.php
+24
-0
resources/views/componentes/popup.blade.php
resources/views/evento/criarEvento.blade.php
+16
-1
resources/views/evento/criarEvento.blade.php
resources/views/evento/submeterTrabalho.blade.php
+442
-383
resources/views/evento/submeterTrabalho.blade.php
resources/views/naturezas/index.blade.php
+140
-33
resources/views/naturezas/index.blade.php
resources/views/participante/index.blade.php
+1
-1
resources/views/participante/index.blade.php
resources/views/projeto/editar.blade.php
+577
-0
resources/views/projeto/editar.blade.php
resources/views/projeto/index.blade.php
+76
-0
resources/views/projeto/index.blade.php
resources/views/proponente/cadastro.blade.php
+134
-0
resources/views/proponente/cadastro.blade.php
resources/views/proponente/index.blade.php
+32
-1
resources/views/proponente/index.blade.php
with
1922 additions
and
647 deletions
+1922
-647
resources/views/administrador/index.blade.php
View file @
561a6f19
...
...
@@ -19,7 +19,7 @@
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('
grandearea.index
') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"{{ route('
admin.naturezas
') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Natureza
</
h2
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/novo_user.blade.php
View file @
561a6f19
...
...
@@ -123,6 +123,14 @@
</
span
>
@
enderror
<
label
for
=
"areaFormacao"
class
=
"col-form-label"
>
{{
__
(
'Area de Formação'
)
}}
</
label
>
<
input
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
value
=
""
autocomplete
=
"nome"
>
@
error
(
'areaFormacao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
<
div
>
<
label
for
=
"area"
class
=
"col-form-label"
>
{{
__
(
'Área'
)
}}
</
label
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/projetos.blade.php
0 → 100644
View file @
561a6f19
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Trabalhos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
div
class
=
"accordion"
id
=
"accordionExample"
>
@
foreach
(
$trabalhos
as
$trabalho
)
<
div
class
=
"card "
>
<
div
class
=
"card-header "
id
=
"headingOne"
>
<
h2
class
=
"mb-0"
>
<
a
class
=
"btn btn-link btn-block text-left"
type
=
"button"
data
-
toggle
=
"collapse"
data
-
target
=
"#collapseOne{{
$trabalho->id
}}"
aria
-
expanded
=
"true"
aria
-
controls
=
"collapseOne"
>
<
h5
>
Titulo
:
{{
$trabalho
->
titulo
}}
</
h5
>
</
a
>
</
h2
>
</
div
>
<
div
id
=
"collapseOne{{
$trabalho->id
}}"
class
=
"collapse "
aria
-
labelledby
=
"headingOne"
data
-
parent
=
"#accordionExample"
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
<
form
action
=
"{{ route('admin.visualizarParecer') }}"
method
=
"post"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
button
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
disabled
=
"disabled"
@
endif
>
Visualizar
</
button
>
</
form
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/administrador/selecionarAvaliadores.blade.php
0 → 100644
View file @
561a6f19
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-md-10"
>
<
h3
>
Avaliadores
</
h3
>
</
div
>
<
div
class
=
"col-md-2"
>
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter"
>
Enviar
Convite
</
button
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$avaliadores
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$avaliador
->
area
->
nome
}}
</
td
>
<
td
style
=
"text-align:center"
>
<
form
action
=
"{{ route('admin.adicionar') }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Adicionar
</
button
>
</
form
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
h4
>
Avaliadores
Selecionados
para
o
Edital
:
{{
$evento
->
nome
}}
</
h4
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$avalSelecionados
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
Status
-
Aceito
ou
Rejeitado
</
td
>
<
td
style
=
"text-align:center"
>
<
form
action
=
"{{ route('admin.remover') }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
>
Remover
</
button
>
</
form
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"exampleModalCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
Enviar
Convite
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
action
=
"{{ route('admin.enviarConvite') }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Nome
Completo
</
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"nomeAvaliador"
id
=
"exampleInputNome1"
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleInputEmail1"
>
Email
</
label
>
<
input
type
=
"email"
class
=
"form-control"
name
=
"emailAvaliador"
id
=
"exampleInputEmail1"
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Tipo
</
label
>
<
select
class
=
"form-control"
name
=
"tipo"
id
=
"exampleFormControlSelect1"
>
<
option
value
=
"avaliador"
>
Avaliador
</
option
>
</
select
>
</
div
>
<
div
class
=
"mx-auto"
>
<
button
type
=
"submit"
class
=
"btn btn-success mx-auto"
>
Enviar
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
$
(
'#myModal'
)
.
on
(
'shown.bs.modal'
,
function
()
{
$
(
'#myInput'
)
.
trigger
(
'focus'
)
})
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/administrador/selecionarProjetos.blade.php
0 → 100644
View file @
561a6f19
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
{{
--
<
div
class
=
"col-md-12"
>
--
}}
<
h3
>
Lista
de
Projetos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
{{
--
</
div
>
--
}}
</
div
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
{{
--
<
div
class
=
"col-md-12"
>
--
}}
<
h5
>
Total
:
</
h5
>
{{
--
</
div
>
--
}}
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
Proponente
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
area
->
nome
}}
</
td
>
<
td
>
{{
$trabalho
->
proponente
->
user
->
name
}}
</
td
>
<
td
style
=
"text-align:center"
>
<
button
type
=
"button"
class
=
"btn btn-primary"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter{{
$trabalho->id
}}"
>
Atribuir
</
button
>
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"exampleModalCenter{{
$trabalho->id
}}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
Selecione
o
avaliador
(
es
)
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
action
=
"{{ route('admin.atribuicao') }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect2"
>
Example
multiple
select
</
label
>
<
select
name
=
"avaliadores_id[]"
multiple
class
=
"form-control"
id
=
"exampleFormControlSelect2"
>
@
foreach
(
$trabalho
->
aval
as
$avaliador
)
<
option
value
=
"{{
$avaliador->id
}}"
>
{{
$avaliador
->
user
->
name
}}
({{
$avaliador
->
area
->
nome
}})
</
option
>
@
endforeach
</
select
>
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
teclado
para
selecionar
mais
de
um
.
</
small
>
</
div
>
<
div
class
=
"mx-auto"
>
<
button
type
=
"submit"
class
=
"btn btn-success mx-auto"
>
Atribuir
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
h3
>
Status
dos
Projetos
em
Avaliação
:
{{
$evento
->
nome
}}
</
h3
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$avaliadores
as
$avaliador
)
@
php
$contador
=
0
;
@
endphp
@
foreach
(
$avaliador
->
trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
pivot
->
status
==
true
)
@
php
$contador
++
;
@
endphp
@
endif
@
endforeach
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$contador
}}
/
{{
$avaliador
->
trabalhos
->
count
()
}}
</
td
>
<
td
style
=
"text-align:center"
>
...
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
<!--
Button
trigger
modal
-->
@
endsection
@
section
(
'javascript'
)
<
script
>
$
(
'#myModal'
)
.
on
(
'shown.bs.modal'
,
function
()
{
$
(
'#myInput'
)
.
trigger
(
'focus'
)
})
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/administrador/visualizarParecer.blade.php
0 → 100644
View file @
561a6f19
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
h5
class
=
"card-title"
>
Parecer
do
avaliador
:
{{
$avaliador
->
user
->
name
}}
</
h5
>
<
h6
class
=
"card-title"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
>
<
p
class
=
"card-text"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Parecer
</
label
>
<
textarea
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
disabled
=
"disabled"
rows
=
"3"
>
{{
$parecer
->
parecer
}}
</
textarea
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Recomendação
:
<
strong
>
{{
$parecer
->
recomendacao
}}
</
strong
>
</
label
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Anexo
:
</
label
>
</
div
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary"
>
Voltar
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/auth/register.blade.php
View file @
561a6f19
...
...
@@ -94,119 +94,6 @@
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
</
div
>
</
div
>
{{
--
Rua
|
Número
|
Bairro
--
}}
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
value
=
"
{
{old('cep')}
}
"
onblur
=
"pesquisacep(this.value);"
id
=
"cep"
type
=
"text"
required
autocomplete
=
"cep"
name
=
"cep"
autofocus
class
=
"form-control field__input a-field__input"
placeholder
=
"CEP"
size
=
"10"
maxlength
=
"9"
>
@
error
(
'cep'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"rua"
class
=
"col-form-label"
>
{{
__
(
'Rua'
)
}}
</
label
>
<
input
value
=
"
{
{old('rua')}
}
"
id
=
"rua"
type
=
"text"
class
=
"form-control @error('rua') is-invalid @enderror"
name
=
"rua"
required
autocomplete
=
"new-password"
>
@
error
(
'rua'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"numero"
class
=
"col-form-label"
>
{{
__
(
'Número'
)
}}
</
label
>
<
input
value
=
"
{
{old('numero')}
}
"
id
=
"numero"
type
=
"text"
class
=
"form-control @error('numero') is-invalid @enderror"
name
=
"numero"
autocomplete
=
"numero"
>
@
error
(
'numero'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"bairro"
class
=
"col-form-label"
>
{{
__
(
'Bairro'
)
}}
</
label
>
<
input
value
=
"
{
{old('bairro')}
}
"
id
=
"bairro"
type
=
"text"
class
=
"form-control @error('bairro') is-invalid @enderror"
name
=
"bairro"
required
autocomplete
=
"bairro"
>
@
error
(
'bairro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"form-group row"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"cidade"
class
=
"col-form-label"
>
{{
__
(
'Cidade'
)
}}
</
label
>
<
input
value
=
"
{
{old('cidade')}
}
"
id
=
"cidade"
type
=
"text"
class
=
"form-control @error('cidade') is-invalid @enderror"
name
=
"cidade"
required
autocomplete
=
"cidade"
>
@
error
(
'cidade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
{{
--
<
input
id
=
"uf"
type
=
"text"
class
=
"form-control @error('uf') is-invalid @enderror"
name
=
"uf"
value
=
"{{ old('uf') }}"
required
autocomplete
=
"uf"
autofocus
>
--
}}
<
select
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AC'
)
selected
@
endif
value
=
"AC"
>
Acre
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AL'
)
selected
@
endif
value
=
"AL"
>
Alagoas
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AP'
)
selected
@
endif
value
=
"AP"
>
Amapá
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'AM'
)
selected
@
endif
value
=
"AM"
>
Amazonas
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'BA'
)
selected
@
endif
value
=
"BA"
>
Bahia
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'CE'
)
selected
@
endif
value
=
"CE"
>
Ceará
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'DF'
)
selected
@
endif
value
=
"DF"
>
Distrito
Federal
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'ES'
)
selected
@
endif
value
=
"ES"
>
Espírito
Santo
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'GO'
)
selected
@
endif
value
=
"GO"
>
Goiás
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MA'
)
selected
@
endif
value
=
"MA"
>
Maranhão
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MT'
)
selected
@
endif
value
=
"MT"
>
Mato
Grosso
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MS'
)
selected
@
endif
value
=
"MS"
>
Mato
Grosso
do
Sul
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'MG'
)
selected
@
endif
value
=
"MG"
>
Minas
Gerais
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PA'
)
selected
@
endif
value
=
"PA"
>
Pará
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PB'
)
selected
@
endif
value
=
"PB"
>
Paraíba
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PR'
)
selected
@
endif
value
=
"PR"
>
Paraná
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PE'
)
selected
@
endif
value
=
"PE"
>
Pernambuco
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'PI'
)
selected
@
endif
value
=
"PI"
>
Piauí
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RJ'
)
selected
@
endif
value
=
"RJ"
>
Rio
de
Janeiro
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RN'
)
selected
@
endif
value
=
"RN"
>
Rio
Grande
do
Norte
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RS'
)
selected
@
endif
value
=
"RS"
>
Rio
Grande
do
Sul
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RO'
)
selected
@
endif
value
=
"RO"
>
Rondônia
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'RR'
)
selected
@
endif
value
=
"RR"
>
Roraima
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'SC'
)
selected
@
endif
value
=
"SC"
>
Santa
Catarina
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'SP'
)
selected
@
endif
value
=
"SP"
>
São
Paulo
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'SE'
)
selected
@
endif
value
=
"SE"
>
Sergipe
</
option
>
<
option
@
if
(
old
(
'uf'
)
==
'TO'
)
selected
@
endif
value
=
"TO"
>
Tocantins
</
option
>
</
select
>
@
error
(
'uf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
...
...
@@ -226,7 +113,6 @@
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
$
(
document
)
.
ready
(
function
(
$
){
$
(
'#cep'
)
.
mask
(
'00000-000'
);
$
(
'#cpf'
)
.
mask
(
'000.000.000-00'
);
var
SPMaskBehavior
=
function
(
val
)
{
return
val
.
replace
(
/
\
D
/
g
,
''
)
.
length
===
11
?
'(00) 00000-0000'
:
'(00) 0000-00009'
;
...
...
@@ -239,71 +125,5 @@
$
(
'#celular'
)
.
mask
(
SPMaskBehavior
,
spOptions
);
});
function
limpa_formulário_cep
()
{
//Limpa valores do formulário de cep.
document
.
getElementById
(
'rua'
)
.
value
=
(
""
);
document
.
getElementById
(
'bairro'
)
.
value
=
(
""
);
document
.
getElementById
(
'cidade'
)
.
value
=
(
""
);
document
.
getElementById
(
'uf'
)
.
value
=
(
""
);
}
function
meu_callback
(
conteudo
)
{
if
(
!
(
"erro"
in
conteudo
))
{
//Atualiza os campos com os valores.
document
.
getElementById
(
'rua'
)
.
value
=
(
conteudo
.
logradouro
);
document
.
getElementById
(
'bairro'
)
.
value
=
(
conteudo
.
bairro
);
document
.
getElementById
(
'cidade'
)
.
value
=
(
conteudo
.
localidade
);
document
.
getElementById
(
'uf'
)
.
value
=
(
conteudo
.
uf
);
}
//end if.
else
{
//CEP não Encontrado.
limpa_formulário_cep
();
alert
(
"CEP não encontrado."
);
}
}
function
pesquisacep
(
valor
)
{
//Nova variável "cep" somente com dígitos.
var
cep
=
valor
.
replace
(
/
\
D
/
g
,
''
);
//Verifica se campo cep possui valor informado.
if
(
cep
!=
""
)
{
//Expressão regular para validar o CEP.
var
validacep
=
/^
[
0
-
9
]{
8
}
$
/
;
//Valida o formato do CEP.
if
(
validacep
.
test
(
cep
))
{
//Preenche os campos com "..." enquanto consulta webservice.
document
.
getElementById
(
'rua'
)
.
value
=
"..."
;
document
.
getElementById
(
'bairro'
)
.
value
=
"..."
;
document
.
getElementById
(
'cidade'
)
.
value
=
"..."
;
document
.
getElementById
(
'uf'
)
.
value
=
"..."
;
//Cria um elemento javascript.
var
script
=
document
.
createElement
(
'script'
);
//Sincroniza com o callback.
script
.
src
=
'https://viacep.com.br/ws/'
+
cep
+
'/json/?callback=meu_callback'
;
//Insere script no documento e carrega o conteúdo.
document
.
body
.
appendChild
(
script
);
}
//end if.
else
{
//cep é inválido.
limpa_formulário_cep
();
alert
(
"Formato de CEP inválido."
);
}
}
//end if.
else
{
//cep sem valor, limpa formulário.
limpa_formulário_cep
();
}
};
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/avaliador/editais.blade.php
View file @
561a6f19
...
...
@@ -6,12 +6,9 @@
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-1
0
"
>
<
div
class
=
"col-sm-1
2
"
>
<
h3
>
Meus
Editais
</
h3
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Criar
Edital
</
a
>
</
div
>
</
div
>
</
div
>
<
hr
>
...
...
@@ -27,9 +24,7 @@
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
10
/
05
/
2020
</
td
>
<
td
>
...
...
@@ -38,23 +33,11 @@
{{
--
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
--
}}
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('
coord.detalhesEvent
o', ['evento
I
d' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
a
href
=
"{{ route('
avaliador.visualizarTrabalh
o', ['evento
_i
d' =>
$evento->id
]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/eye-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Detalhes
</
a
>
<
a
href
=
"
{
{route('evento.editar',$evento->id)}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
Projetos
para
avaliar
</
a
>
<
form
method
=
"POST"
action
=
"
{
{route('evento.deletar',$evento->id)}
}
"
>
{{
csrf_field
()
}}
{{
method_field
(
'DELETE'
)
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
button
>
</
form
>
</
div
>
</
div
>
</
td
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/avaliador/index.blade.php
View file @
561a6f19
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
#
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{{ route('avaliador.editais') }}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
@@ -17,25 +17,6 @@
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('visualizarTrabalho') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Trabalhos
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Usuários
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/avaliador/listarTrabalhos.blade.php
View file @
561a6f19
...
...
@@ -7,7 +7,7 @@
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Trabalhos
</
h3
>
<
h3
>
Trabalhos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
</
div
>
</
div
>
</
div
>
...
...
@@ -25,9 +25,25 @@
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
create_at
}}
</
td
>
<
td
>
baixar
</
td
>
<
td
>
parecer
</
td
>
<
td
>
{{
$trabalho
->
created_at
}}
</
td
>
<
td
>
{{
--
{{
route
(
'download'
,
[
'file'
=>
$arquivo
])}}
--
}}
<
a
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"row"
>
<
form
action
=
"{{ route('avaliador.parecer', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Parecer
</
button
>
</
form
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/avaliador/parecer.blade.php
0 → 100644
View file @
561a6f19
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
h5
class
=
"card-title"
>
Meu
Parecer
</
h5
>
<
h6
class
=
"card-title"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
>
<
p
class
=
"card-text"
>
<
form
method
=
"POST"
action
=
"
{
{route('avaliador.enviarParecer')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Parecer
:</
label
>
<
textarea
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
rows
=
"3"
name
=
"textParecer"
>
{{
$trabalho
->
pivot
->
parecer
}}
</
textarea
>
</
div
>
<
select
class
=
"custom-select"
name
=
"recomendacao"
>
@
foreach
(
$recomendacaos
as
$recomendacao
)
@
if
(
$trabalho
->
pivot
->
recomendacao
==
$recomendacao
->
nome
)
<
option
selected
value
=
"{{
$recomendacao->nome
}}"
>
{{
$recomendacao
->
nome
}}
</
option
>
@
else
<
option
value
=
"{{
$recomendacao->nome
}}"
>
{{
$recomendacao
->
nome
}}
</
option
>
@
endif
@
endforeach
</
select
>
<
div
class
=
"form-group"
>
@
if
(
$trabalho
->
pivot
->
AnexoParecer
==
null
)
<
label
for
=
"exampleFormControlFile1"
>
Anexo
do
Parecer
:</
label
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
@
else
<
label
for
=
"exampleFormControlFile1"
>
Já
existe
um
arquivo
,
quer
atualizar
?</
label
>
<
br
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
@
endif
</
div
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Enviar
</
button
>
<
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
])}}"
class
=
"btn btn-danger"
>
Cancelar
</
a
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/componentes/popup.blade.php
0 → 100644
View file @
561a6f19
<div
class=
"modal"
tabindex=
"-1"
role=
"dialog"
id=
"{{$id}}"
style=
"color:black"
>
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
>
<strong>
{{$titulo}}
</strong>
</h5>
</button>
</div>
<div
class=
"modal-body"
id=
"modalBody"
>
{{$conteudo}}
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Fechar
</button>
</div>
</div>
</div>
</div>
{{-- @component('componentes.popup', [
"titulo"=>"Informações:",
"conteudo"=>$requisicao_documento['detalhes'],
"id"=>$requisicao_documento['id']
])
@endcomponent --}}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/evento/criarEvento.blade.php
View file @
561a6f19
...
...
@@ -15,7 +15,7 @@
</
div
>
{{
--
nome
|
Participantes
|
Tipo
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-
9
"
>
<
div
class
=
"col-sm-
6
"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
...
...
@@ -40,6 +40,21 @@
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"natureza"
class
=
"col-form-label"
>
{{
__
(
'Natureza'
)
}}
</
label
>
<
select
id
=
"natureza"
type
=
"text"
class
=
"form-control @error('natureza') is-invalid @enderror"
name
=
"natureza"
value
=
"{{ old('natureza') }}"
required
>
@
foreach
(
$naturezas
as
$natureza
)
<
option
value
=
"{{
$natureza->id
}}"
>
{{
$natureza
->
nome
}}
</
option
>
@
endforeach
</
select
>
@
error
(
'natureza'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
{{
--
end
nome
|
Participantes
|
Tipo
--
}}
{{
--
Descricao
Edital
--
}}
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/submeterTrabalho.blade.php
View file @
561a6f19
This diff is collapsed.
Click to expand it.
resources/views/naturezas/index.blade.php
View file @
561a6f19
...
...
@@ -2,43 +2,150 @@
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px; "
>
Administrador
</
h2
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"{{ route('grandearea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Grande
Area
</
h2
>
<
div
class
=
"container"
>
{{
--
Modal
criar
nova
natureza
--
}}
<
div
class
=
"modal fade"
id
=
"modalNewCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Nova natureza'
)}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
id
=
"formNew"
method
=
"POST"
action
=
"{{ route('natureza.salvar') }}"
>
@
csrf
<
input
form
=
"formNew"
type
=
"text"
value
=
""
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
form
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Cancelar'
)}}
</
button
>
<
button
type
=
"button"
onclick
=
"submeterFormNew()"
class
=
"btn btn-primary"
>
{{
__
(
'Salvar'
)}}
</
button
>
</
div
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top: 100px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Naturezas'
)
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
a
href
=
""
class
=
"btn btn-primary"
style
=
"position:relative;top:100px;"
data
-
toggle
=
"modal"
data
-
target
=
"#modalNewCenter"
>
{{
__
(
'Criar natureza'
)
}}
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('area.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Area
</
h2
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Data
de
criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$naturezas
as
$natureza
)
<!--
Modal
Editar
-->
<
div
class
=
"modal fade"
id
=
"modalEditCenter
{
{$natureza->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Editar natureza'
)}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
form
id
=
"formEdit{{
$natureza->id
}}"
action
=
"{{ route('natureza.atualizar', ['id' =>
$natureza->id
]) }}"
>
@
csrf
<
input
form
=
"formEdit{{
$natureza->id
}}"
type
=
"text"
value
=
"{{
$natureza->nome
}}"
class
=
"form-control @error('nomeEditavel') is-invalid @enderror"
name
=
"nomeEditavel"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nomeEditavel'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
form
>
</
div
>
</
a
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Cancelar'
)}}
</
button
>
<
button
type
=
"button"
onclick
=
"submeterFormEdit('{{
$natureza->id
}}')"
class
=
"btn btn-primary"
>
{{
__
(
'Salvar'
)}}
</
button
>
</
div
>
<
div
class
=
"col-sm-4 d-flex justify-content-center"
>
<
a
href
=
"{{ route('subarea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Subárea
</
h2
>
</
div
>
</
div
>
</
div
>
<!--
Modal
Excluir
-->
<
div
class
=
"modal fade"
id
=
"modalDelCenter
{
{$natureza->id}
}
"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Deletar natureza'
)}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
{{
__
(
'Tem certeza que deseja deletar essa natureza?'
)}}
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Não'
)}}
</
button
>
<
a
href
=
"{{ route('natureza.deletar', ['id' =>
$natureza->id
]) }}"
type
=
"button"
onclick
=
"submeterFormDel('{{
$natureza->id
}}')"
class
=
"btn btn-primary"
>
{{
__
(
'Sim'
)}}
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
tr
>
<
td
>
{{
$natureza
->
nome
}}
</
td
>
<
td
>
{{
$natureza
->
creat_at
}}
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Editar'
)}}
</
a
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Deletar'
)}}
</
a
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
function
submeterFormNew
()
{
var
form
=
document
.
getElementById
(
'formNew'
);
form
.
submit
();
}
function
submeterFormEdit
(
id
)
{
var
form
=
document
.
getElementById
(
'formEdit'
+
id
);
form
.
submit
();
}
</
script
>
@
endsection
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/participante/index.blade.php
View file @
561a6f19
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
#
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('admin.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/editar.blade.php
0 → 100644
View file @
561a6f19
This diff is collapsed.
Click to expand it.
resources/views/projeto/index.blade.php
0 → 100644
View file @
561a6f19
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
h3
>
Projetos
do
edital
{{
$edital
->
nome
}}
</
h3
>
<
h6
style
=
"color: rgb(4, 78, 4);"
>
Submissão
irá
até
o
dia
{{
date
(
'd-m-Y'
,
strtotime
(
$edital
->
fimSubmissao
))
}}
</
h6
>
</
div
>
<
div
class
=
"col-sm-2"
>
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
endif
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
projeto
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$projetos
as
$projeto
)
<
tr
>
<
td
>
{{
$projeto
->
titulo
}}
</
td
>
@
if
(
$projeto
->
avaliado
)
<
td
style
=
"color: rgb(6, 85, 6)"
>
Avaliado
</
td
>
@
else
<
td
style
=
"color: rgb(0, 0, 0)"
>
Submetido
</
td
>
@
endif
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
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"
>
--
}}
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('trabalho.editar', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Editar
projeto
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Adicionar
participantes
</
a
>
--
}}
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Recorrer
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
</
a
>
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/proponente/cadastro.blade.php
0 → 100644
View file @
561a6f19
This diff is collapsed.
Click to expand it.
resources/views/proponente/index.blade.php
View file @
561a6f19
...
...
@@ -4,8 +4,39 @@
<
div
class
=
"container"
>
<
h2
style
=
"margin-top: 100px;"
>
Proponente
</
h2
>
<
h2
style
=
"margin-top: 100px;"
>
{{
Auth
()
->
user
()
->
name
}}
</
h2
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('admin.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"#"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Projetos
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"#"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Mensagens
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next
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