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
6295b7c8
Unverified
Commit
6295b7c8
authored
Mar 28, 2023
by
Nathalia Santos
Committed by
GitHub
Mar 28, 2023
Browse files
Merge pull request #732 from Wolf-gangSE/adicionar-campos-avaliacao
Adicionar novos tipos de avaliação
parents
a0b57aa0
1311fe50
Changes
30
Expand all
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/resultadosProjetos.blade.php
View file @
6295b7c8
...
...
@@ -66,7 +66,7 @@
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
php
$cont
=
1
;
@
endphp
@
php
$cont
=
1
;
@
endphp
@
foreach
(
$trabalhos
as
$trabalho
)
@
if
(
$trabalho
->
status
==
'aprovado'
)
<
tr
>
...
...
@@ -102,19 +102,34 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
</
td
>
...
...
@@ -200,19 +215,34 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
</
td
>
...
...
@@ -299,19 +329,34 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
{{
--
Internos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
2
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
(
$avaliador
->
tipo
==
"Interno"
&&
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
null
))
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$parecerInterno
!=
null
&&
$parecerInterno
->
statusParecer
!=
null
){{
$parecerInterno
->
statusParecer
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>@
else
Pendente
<
br
>@
endif
@
endif
@
endif
{{
--
Externos
--
}}
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
1
||
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
==
3
||
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
==
null
)
@
if
(
$evento
->
tipoAvaliacao
==
"form"
)
@
if
(
$avaliador
->
pivot
->
recomendacao
!=
null
)
{{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>
@
endif
@
elseif
(
$evento
->
tipoAvaliacao
==
"campos"
)
@
php
$avaliacaoTrabalho
=
App\AvaliacaoTrabalho
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
@
if
(
$avaliacaoTrabalho
!=
null
&&
$avaliacaoTrabalho
->
nota
!=
null
){{
$avaliador
->
pivot
->
recomendacao
}}
<
br
>
@
else
Pendente
<
br
>@
endif
@
endif
@
endif
@
endforeach
</
td
>
...
...
resources/views/administrador/visualizarParecerBarema.blade.php
0 → 100644
View file @
6295b7c8
@
extends
(
'layouts.app'
)
@
php
$i
=
0
;
$numCampos
=
0
;
@
endphp
@
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"
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary mb-2"
>
Voltar
</
a
>
<
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"
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
</
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Prioridade
</
th
>
<
th
><
strong
>
Nota
da
avaliação
</
strong
></
th
>
</
tr
>
@
foreach
(
$camposAvaliacao
as
$campoAvaliacao
)
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][nome]"
class
=
"form-control nome"
value
=
"{{
$campoAvaliacao->nome
}}"
disabled
/></
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][descricao]"
class
=
"form-control descricao"
value
=
"{{
$campoAvaliacao->descricao
}}"
disabled
/>
</
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_maxima]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->nota_maxima
}}"
disabled
/></
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_prioridade]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->prioridade
}}"
disabled
/></
td
>
<
td
>
<
input
type
=
"number"
min
=
"0"
max
=
"{{
$campoAvaliacao->nota_maxima
}}"
step
=
"1"
name
=
"inputField[
{
{$i}
}
][nota]"
class
=
"form-control nota"
value
=
"
{
{$avalTrabalho->values()->get($i)->nota}
}
"
style
=
"font-weight: bold;"
disabled
/>
</
td
>
</
tr
>
@
php
++
$i
;
++
$numCampos
;
@
endphp
@
endforeach
</
table
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Pontuação
:
<
strong
>
{{
$parecer
->
pontuacao
}}
</
strong
>
</
label
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Recomendação
:
<
strong
>
{{
$parecer
->
recomendacao
}}
</
strong
>
</
label
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
resources/views/administrador/visualizarParecerLink.blade.php
0 → 100644
View file @
6295b7c8
@
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"
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary mb-2"
>
Voltar
</
a
>
<
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
>
Link
para
parecer
:
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
name
=
"textParecer"
value
=
"{{
$evento->formAvaliacaoExterno
}}"
disabled
/>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Pontuação
:
<
strong
>
{{
$parecer
->
pontuacao
}}
</
strong
>
</
label
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Recomendação
:
<
strong
>
{{
$parecer
->
recomendacao
}}
</
strong
>
</
label
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
resources/views/avaliador/listarTrabalhos.blade.php
View file @
6295b7c8
...
...
@@ -250,6 +250,101 @@
</
table
>
</
div
>
@
endif
@
if
(
$trabalhos
!=
null
)
<
div
class
=
"form-group mb-0"
style
=
"margin-left: 20px;margin-top: 20px;"
>
<
h5
class
=
"card-title mb-0"
style
=
"font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6"
>
Avaliação
do
Edital
:
{{
$evento
->
nome
}}
</
h5
>
</
div
>
<
hr
class
=
"mb-0"
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered table-hover"
style
=
"display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
style
=
"width:100%"
>
Nome
do
Projeto
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Projeto
</
th
>
<
th
scope
=
"col"
>
Plano
de
Trabalho
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$trabalhos
as
$trabalho
)
<
tr
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
$trabalho
->
created_at
->
format
(
'd/m/Y'
)
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
--
--
}}
<
a
href
=
"{{route('download', ['file' =>
$trabalho->anexoProjeto
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$evento
->
numParticipantes
==
0
)
@
php
$planoTrabalho
=
App\Arquivo
::
where
(
"trabalhoId"
,
$trabalho
->
id
)
->
first
();
@
endphp
<
a
href
=
"{{ route('baixar.plano', ['id' =>
$planoTrabalho->id
]) }}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalho
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalho
=
null
;
}
@
endphp
@
if
(
$planoTrabalho
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalho
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
class
=
"btn btn-light"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:15px"
>
</
a
>
@
else
Não
há
planos
de
trabalho
.
@
endif
@
endforeach
@
endif
</
td
>
<
td
style
=
"text-align: center"
>
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
Recomendado
@
elseif
(
$trabalho
->
pivot
->
recomendacao
==
null
)
Pendente
@
else
Não
Recomendado
@
endif
</
td
>
<
td
>
<
div
class
=
"row justify-content-center"
>
@
if
(
$evento
->
tipoAvaliacao
==
'campos'
)
<
form
action
=
"{{ route('avaliador.parecerBarema', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Parecer
</
button
>
</
form
>
@
else
<
form
action
=
"{{ route('avaliador.parecerLink', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Parecer
</
button
>
</
form
>
@
endif
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
...
...
resources/views/avaliador/parecerBarema.blade.php
0 → 100644
View file @
6295b7c8
@
extends
(
'layouts.app'
)
@
php
$i
=
0
;
$numCampos
=
0
;
@
endphp
@
section
(
'content'
)
<
div
class
=
"row justify-content-center"
>
<!--
Proponente
Dados
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:4rem;padding: 0px"
>
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Anexos
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-left"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
<
br
>
{{
--
Autorização
Especial
--
}}
@
if
(
$trabalho
->
evento
->
natureza_id
!=
3
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
<
br
>
@
endif
{{
--
Anexo
(
s
)
do
Plano
(
s
)
de
Trabalho
--
}}
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalhoTemp
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalhoTemp
=
null
;
}
@
endphp
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
title
=
"
{
{$participante->planoTrabalho->titulo}
}
"
>
{{
__
(
'Projeto: '
)
}}{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
@
if
(
$planoTrabalhoTemp
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalhoTemp
])}}"
><
img
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
endif
</
div
>
@
endforeach
{{
--
Documento
Extra
--
}}
@
if
(
$trabalho
->
evento
->
nome_docExtra
!=
null
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexo_docExtra"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
$trabalho
->
evento
->
nome_docExtra
}}
:@
if
(
$trabalho
->
evento
->
obrigatoriedade_docExtra
==
true
)
<
span
style
=
"color: red; font-weight:bold"
>*</
span
>
@
endif
</
label
>
@
if
(
$trabalho
->
anexo_docExtra
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.docExtra', ['id' =>
$trabalho->id
]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
@
endif
</
div
>
<
br
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-md-10 justify-content-center"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Meu
parecer
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
form
method
=
"POST"
action
=
"
{
{route('avaliador.enviarParecerBarema')}
}
"
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"
>
<
p
>
Preencha
os
valores
da
notas
a
partir
de
cada
critério
.
</
p
>
<
div
class
=
"justify-content-center"
id
=
"displayCampos"
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
</
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Prioridade
</
th
>
<
th
>
Nota
da
avaliação
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
</
tr
>
@
foreach
(
$camposAvaliacao
as
$campoAvaliacao
)
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][nome]"
class
=
"form-control nome"
value
=
"{{
$campoAvaliacao->nome
}}"
disabled
/></
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[
{
{$i}
}
][descricao]"
class
=
"form-control descricao"
value
=
"{{
$campoAvaliacao->descricao
}}"
disabled
/>
</
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_maxima]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->nota_maxima
}}"
disabled
/></
td
>
<
td
><
input
type
=
"number"
name
=
"inputField[
{
{$i}
}
][nota_prioridade]"
class
=
"form-control nota_maxima"
value
=
"{{
$campoAvaliacao->prioridade
}}"
disabled
/></
td
>
<
td
><
input
type
=
"number"
min
=
"0"
max
=
"{{
$campoAvaliacao->nota_maxima
}}"
step
=
"1"
name
=
"inputField[
{
{$i}
}
][nota]"
class
=
"form-control nota"
required
/>
</
tr
>
<
input
type
=
"checkbox"
id
=
"checkB[
{
{$i}
}
]"
checked
name
=
"campos[]"
value
=
"
{
{$i}
}
"
hidden
>
@
php
++
$i
;
++
$numCampos
;
@
endphp
@
endforeach
</
table
>
</
div
>
</
div
>
<
p
>
Por
fim
,
informe
a
sua
recomendação
.
</
p
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Recomendação
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
select
class
=
"custom-select"
name
=
"recomendacao"
required
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
selected
@
endif
value
=
"RECOMENDADO"
>
RECOMENDADO
</
option
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'NAO-RECOMENDADO'
)
selected
@
endif
value
=
"NAO-RECOMENDADO"
>
NAO
-
RECOMENDADO
</
option
>
</
select
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"d-flex justify-content-end"
>
<
div
style
=
"margin-right: 15px"
><
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
])}}"
class
=
"btn btn-light"
style
=
"color: red;"
>
Cancelar
</
a
></
div
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
@
if
(
$evento
->
inicioRevisao
>
$hoje
||
$evento
->
fimRevisao
<
$hoje
)
disabled
@
endif
>
Enviar
meu
parecer
</
button
></
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
<
style
>
label
{
font
-
weight
:
bold
;
}
</
style
>
resources/views/avaliador/parecerLink.blade.php
0 → 100644
View file @
6295b7c8
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"row justify-content-center"
>
<!--
Proponente
Dados
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:4rem;padding: 0px"
>
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Anexos
</
h5
></
div
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-left"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
><
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
</
div
>
<
br
>
{{
--
Autorização
Especial
--
}}
@
if
(
$trabalho
->
evento
->
natureza_id
!=
3
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Autorização Especial: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
else
-
@
endif
</
div
>
<
br
>
@
endif
{{
--
Anexo
(
s
)
do
Plano
(
s
)
de
Trabalho
--
}}
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
php
if
(
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
!=
null
){
$planoTrabalhoTemp
=
App\Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
()
->
nome
;
}
else
{
$planoTrabalhoTemp
=
null
;
}
@
endphp
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
title
=
"
{
{$participante->planoTrabalho->titulo}
}
"
>
{{
__
(
'Projeto: '
)
}}{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
@
if
(
$planoTrabalhoTemp
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$planoTrabalhoTemp
])}}"
><
img
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
alt
=
""
></
a
>
@
endif
</
div
>
@
endforeach
{{
--
Documento
Extra
--
}}
@
if
(
$trabalho
->
evento
->
nome_docExtra
!=
null
)
<
div
class
=
"col-sm-12"
>
<
label
for
=
"anexo_docExtra"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
$trabalho
->
evento
->
nome_docExtra
}}
:@
if
(
$trabalho
->
evento
->
obrigatoriedade_docExtra
==
true
)
<
span
style
=
"color: red; font-weight:bold"
>*</
span
>
@
endif
</
label
>
@
if
(
$trabalho
->
anexo_docExtra
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.docExtra', ['id' =>
$trabalho->id
]) }}"
><
i
class
=
"fas fa-file-pdf fa-2x"
></
i
></
a
>
@
else
<
i
class
=
"fas fa-times-circle fa-2x"
style
=
"color:red; font-size:25px"
></
i
>
@
endif
</
div
>
<
br
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Anexos
do
Projeto
-->
<
div
class
=
"col-md-10"
style
=
"margin-top:20px"
>
<
div
class
=
"card"
style
=
"border-radius: 5px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem;"
>
<
div
class
=
"container"
>
<!--
TO
AKI
-->
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Meu
parecer
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; font-weight: bold"
>
Trabalho
:
{{
$trabalho
->
titulo
}}
</
h6
></
div
>
</
div
>
<
form
method
=
"POST"
action
=
"
{
{route('avaliador.enviarParecerLink')}
}
"
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
style
=
"font-weight: bold"
>
Parecer
</
label
>
<
div
>
<
p
>
Responda
ao
formulário
no
link
abaixo
para
enviar
seu
parecer
.
</
p
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
name
=
"textParecer"
value
=
"{{
$evento->formAvaliacaoExterno
}}"
disabled
/>
</
div
>
</
div
>
<
p
>
Por
fim
,
informe
a
pontuação
(
caso
necessário
)
e
sua
recomendação
.
</
p
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Pontuação
</
label
>
<
input
class
=
"form-control"
name
=
"pontuacao"
type
=
"number"
max
=
"10"
min
=
"0"
value
=
"{{
$trabalho->pivot
->pontuacao }}"
/>
</
div
>
<
div
class
=
"form-group"
>
<
label
style
=
"font-weight: bold"
>
Recomendação
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
select
class
=
"custom-select"
name
=
"recomendacao"
required
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'RECOMENDADO'
)
selected
@
endif
value
=
"RECOMENDADO"
>
RECOMENDADO
</
option
>
<
option
@
if
(
$trabalho
->
pivot
->
recomendacao
==
'NAO-RECOMENDADO'
)
selected
@
endif
value
=
"NAO-RECOMENDADO"
>
NAO
-
RECOMENDADO
</
option
>
</
select
>
</
div
>
<
hr
style
=
"border-top: 1px solid#1492E6"
>
<
div
class
=
"d-flex justify-content-end"
>
<
div
style
=
"margin-right: 15px"
><
a
href
=
"{{ route('avaliador.visualizarTrabalho', ['evento_id' =>
$evento->id
])}}"
class
=
"btn btn-light"
style
=
"color: red;"
>
Cancelar
</
a
></
div
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
@
if
(
$evento
->
inicioRevisao
>
$hoje
||
$evento
->
fimRevisao
<
$hoje
)
disabled
@
endif
>
Enviar
meu
parecer
</
button
></
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
</
script
>
@
endsection
<
style
>
label
{
font
-
weight
:
bold
;
}
</
style
>
resources/views/coordenadorComissao/editais.blade.php
View file @
6295b7c8
...
...
@@ -67,10 +67,12 @@
<
a
href
=
"{{route('admin.pareceres', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Visualizar
Pareceres
</
a
>
@
if
(
$evento
->
tipoAvaliacao
!=
"link"
)
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.showResultados', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Resultados
</
a
>
@
endif
<
hr
class
=
"dropdown-hr"
>
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"dropdown-item dropdown-item-delete text-center"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModal{{
$evento->id
}}"
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
6295b7c8
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
...
...
@@ -395,6 +394,144 @@
</
div
>
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Avaliação
</
p
>
</
div
>
</
div
>
<
div
class
=
"my-2"
>
<
p
style
=
"font-size: 16px"
>
Como
a
avaliação
será
realizada
?</
p
>
</
div
>
<
div
class
=
"mb-2"
>
<
input
type
=
"radio"
id
=
"radioForm"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('form')"
@
if
((
old
(
'tipoAvaliacao'
)
==
'form'
)
||
old
(
'tipoAvaliacao'
)
==
""
)
checked
@
endif
value
=
"form"
>
<
label
for
=
"radioForm"
style
=
"margin-right: 5px"
>
Formulário
(
em
pdf
)
</
label
>
<
input
type
=
"radio"
id
=
"radioCampos"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('campos')"
@
if
(
old
(
'tipoAvaliacao'
)
==
'campos'
)
checked
@
endif
value
=
"campos"
>
<
label
for
=
"radioCampos"
style
=
"margin-right: 5px"
>
Barema
</
label
>
<
input
type
=
"radio"
id
=
"radioLink"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('link')"
@
if
(
old
(
'tipoAvaliacao'
)
==
'link'
)
checked
@
endif
value
=
"link"
>
<
label
for
=
"radioLink"
style
=
"margin-right: 5px"
>
Link
</
label
><
br
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px"
id
=
"displayForm"
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
@
if
(
old
(
'pdfFormAvalExternoPreenchido'
)
!=
null
)
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"docTutorial"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
old
(
'docTutorialPreenchido'
)
!=
null
)
<
a
id
=
"docTutorialTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'docTutorial' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"docTutorialPreenchido"
name
=
"docTutorialPreenchido"
value
=
"{{ old('docTutorialPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.docx,.doc,.zip"
class
=
"form-control-file pdf @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ser
de
até
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px; display: none"
id
=
"displayCampos"
>
<
div
class
=
"row align-items-end mb-4"
>
<
label
class
=
"col-sm-3"
for
=
"pontuacao"
>
Valor
total
da
pontuação
por
Barema
:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
type
=
"number"
name
=
"pontuacao"
min
=
"1"
class
=
"col-sm-1 form-control"
id
=
"pontuacao"
value
=
"
{
{old('pontuacao')}
}
"
/>
</
div
>
<
label
>
Campos
do
Barema
:</
label
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Prioridade
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
th
>
<
th
>
Ação
</
th
>
</
tr
>
<
tr
>
<
td
><
input
type
=
"text"
name
=
"inputField[0][nome]"
class
=
"form-control nome @error('inputField.*.nome') is-invalid @enderror"
value
=
"{{ old('inputField[0][nome]') }}"
/>
@
error
(
'inputField.*.nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"text"
name
=
"inputField[0][descricao]"
class
=
"form-control descricao @error('inputField.*.descricao') is-invalid @enderror"
value
=
"{{ old('inputField[0][descricao]') }}"
/>
@
error
(
'inputField.*.descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
input
type
=
"number"
min
=
"1"
step
=
"1"
name
=
"inputField[0][nota_maxima]"
class
=
"form-control nota_maxima @error('inputField.*.nota_maxima') is-invalid @enderror"
value
=
"{{ old('inputField[0][nota_maxima]') }}"
/>
@
error
(
'inputField.*.nota_maxima'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
>
<
select
name
=
"inputField[0][prioridade]"
class
=
"form-control prioridade @error('inputField.*.prioridade') is-invalid @enderror"
>
<
option
value
=
""
selected
>--
ORDEM
--</
option
>
<
option
value
=
"1"
class
=
"ordem_option"
>
1
</
option
>
</
select
>
@
error
(
'inputField.*.prioridade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
>
Adicionar
</
button
></
td
>
</
tr
>
</
table
>
@
if
(
$errors
->
has
(
'inputField.*'
))
<
div
class
=
"col-sm-12 alert alert-danger"
id
=
"inputFieldError"
>
Você
deve
preencher
os
campos
obrigatórios
.
</
div
>
@
endif
<
div
class
=
"col-sm-12 alert alert-danger"
style
=
"display: none"
id
=
"nota_maxima_invalida"
>
A
soma
das
notas
máximas
deve
ser
igual
a
pontuação
total
definida
.
</
div
>
<
input
type
=
"checkbox"
id
=
"checkB[0]"
checked
name
=
"campos[]"
value
=
"0"
hidden
>
<
input
type
=
"number"
name
=
"somaNotas"
value
=
"0"
id
=
"somaNotas"
hidden
>
</
div
>
<
div
class
=
"col-sm-12 row"
style
=
"margin-top:10px; display: none"
id
=
"displayLink"
>
<
label
for
=
"link"
class
=
"col-form-label"
>
{{
__
(
'Link para o formulário:'
)
}}
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
input
id
=
"link"
type
=
"text"
class
=
"form-control @error("
link
") is-invalid @enderror"
name
=
"link"
value
=
"{{ old('link') }}"
>
@
error
(
'link'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
...
...
@@ -437,23 +574,8 @@
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
@
if
(
old
(
'pdfFormAvalExternoPreenchido'
)
!=
null
)
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
de
avaliação
do
relatório
:</
label
>
@
if
(
old
(
'pdfFormAvalRelatorioPreenchido'
)
!=
null
)
...
...
@@ -469,22 +591,6 @@
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"docTutorial"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
old
(
'docTutorialPreenchido'
)
!=
null
)
<
a
id
=
"docTutorialTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'docTutorial' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"docTutorialPreenchido"
name
=
"docTutorialPreenchido"
value
=
"{{ old('docTutorialPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.docx,.doc,.zip"
class
=
"form-control-file pdf @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ser
de
atÃ
©
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
...
...
@@ -493,7 +599,7 @@
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('admin.editais') }}"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
id
=
"idButtonSubmitEvento"
style
=
"width:100%"
>
{{
__
(
'Criar Edital'
)
}}
</
button
>
</
div
>
...
...
@@ -501,10 +607,152 @@
</
form
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
var
i
=
0
;
var
numCampos
=
1
;
var
currentOptions
=
{
'0'
:
''
}
$
(
document
)
.
ready
(
function
()
{
displayTipoAvaliacao
(
"{{ old('tipoAvaliacao') }}"
)
});
// Adiciona campo de avaliação
$
(
"#dynamic-ar"
)
.
click
(
function
()
{
++
i
;
++
numCampos
;
$
(
"#dynamicAddRemove"
)
.
append
(
'<tr><td><input type="text" name="inputField['
+
i
+
'][nome]" class="form-control nome @error("inputField.*.nome") is-invalid @enderror" /></td><td><input type="text" name="inputField['
+
i
+
'][descricao]" class="form-control descricao @error("inputField.*.descricao") is-invalid @enderror"/></td><td><input type="number" min="1" step="1" name="inputField['
+
i
+
'][nota_maxima]" class="form-control nota_maxima @error("inputField.*.nota_maxima") is-invalid @enderror" /></td><td><select name="inputField['
+
i
+
'][prioridade]" class="form-control prioridade @error("inputField.*.prioridade") is-invalid @enderror"><option value="" selected>-- ORDEM --</option><option value="1" class="ordem_option">1</option></select></td><td><button type="button" class="btn btn-outline-danger remove-input-field" name="removeButton['
+
i
+
']">Remover</button></td></tr>'
);
$
(
"#displayCampos"
)
.
append
(
'<input type="checkbox" id="checkB['
+
i
+
']" checked name="campos[]" value="'
+
i
+
'" hidden>'
);
$
(
".prioridade"
)
.
children
()
.
remove
(
".dynamic"
);
// Exibe opções caso estejam ocultas
$
(
'.ordem_option'
)
.
show
();
$
(
".prioridade"
)
.
each
(
function
()
{
// Resetando os valores selecionados
$
(
this
)
.
val
(
""
)
.
change
();
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
currentOptions
[
selectId
]
=
''
;
for
(
let
x
=
2
;
x
<=
numCampos
;
x
++
)
{
$
(
this
)
.
append
(
'<option value="'
+
x
+
'" class="ordem_option dynamic">'
+
x
+
'</option>'
)
}
})
});
// Exclui campo de avaliação
$
(
document
)
.
on
(
'click'
,
'.remove-input-field'
,
function
()
{
$
(
this
)
.
parents
(
'tr'
)
.
remove
();
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
currentOption
=
currentOptions
[
selectId
];
document
.
getElementById
(
'checkB['
+
selectId
+
']'
)
.
remove
();
$
(
'.ordem_option[value|="'
+
currentOption
+
'"]'
)
.
show
();
delete
currentOptions
[
selectId
];
$
(
'.dynamic[value|="'
+
numCampos
+
'"]'
)
.
remove
();
--
numCampos
;
});
$
(
"#dynamicAddRemove"
)
.
on
(
'change'
,
'.prioridade'
,
function
()
{
selectId
=
$
(
this
)
.
attr
(
'name'
)
.
replace
(
/
\
D
/
g
,
""
)
.
toString
();
newOption
=
$
(
this
)
.
val
();
currentOption
=
currentOptions
[
selectId
];
$
(
'.ordem_option[value|="'
+
currentOption
+
'"]'
)
.
show
();
$
(
'.ordem_option[value|="'
+
newOption
+
'"]'
)
.
hide
();
currentOptions
[
selectId
]
=
newOption
;
});
$
(
'#pontuacao'
)
.
on
(
'input'
,
function
()
{
validateNotas
();
})
$
(
"#dynamicAddRemove"
)
.
on
(
'input'
,
'.nota_maxima'
,
function
()
{
validateNotas
();
});
function
validateNotas
()
{
pontuacao
=
$
(
"#pontuacao"
)
.
val
();
if
(
pontuacao
==
""
)
{
alert
(
"Escolha o valor total da pontuação antes de adicionar as notas máximas!"
)
$
(
'.nota_maxima'
)
.
val
(
""
);
}
else
{
somaNotas
=
0
;
$
(
".nota_maxima"
)
.
each
(
function
()
{
valor
=
Number
(
$
(
this
)
.
val
());
if
(
valor
!=
0
)
{
somaNotas
+=
valor
;
}
});
$
(
'#somaNotas'
)
.
val
(
somaNotas
);
if
(
somaNotas
!=
pontuacao
)
{
$
(
'.nota_maxima'
)
.
css
(
'border'
,
'1px solid red'
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
""
;
}
else
{
$
(
'.nota_maxima'
)
.
css
(
'border'
,
''
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
"none"
;
}
}
}
// Tipo de avaliação
function
displayTipoAvaliacao
(
valor
){
if
(
valor
==
"form"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
true
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
""
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"campos"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
true
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"inline"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"link"
)
{
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"radioLink"
)
.
checked
=
true
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayLink"
)
.
style
.
display
=
""
;
}
}
function
selecionar_decisao_camara
()
{
var
natureza
=
document
.
getElementById
(
'natureza'
);
if
(
natureza
.
value
==
3
)
{
...
...
@@ -583,4 +831,11 @@
window
.
onload
=
showDocumentoExtra
();
</
script
>
@
if
(
$errors
->
has
(
'somaNotas'
))
<
script
>
$
(
'.nota_maxima'
)
.
css
(
'border'
,
'1px solid red'
);
document
.
getElementById
(
"nota_maxima_invalida"
)
.
style
.
display
=
""
;
</
script
>
@
endif
@
endsection
\ No newline at end of file
resources/views/evento/editarEvento.blade.php
View file @
6295b7c8
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
6295b7c8
...
...
@@ -88,6 +88,12 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () {
Route
::
post
(
'/parecerInterno'
,
'AvaliadorController@parecerInterno'
)
->
name
(
'parecerInterno'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerInterno'
,
'AvaliadorController@enviarParecerInterno'
)
->
name
(
'enviarParecerInterno'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecerBarema'
,
'AvaliadorController@parecerBarema'
)
->
name
(
'parecerBarema'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerBarema'
,
'AvaliadorController@enviarParecerBarema'
)
->
name
(
'enviarParecerBarema'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/parecerLink'
,
'AvaliadorController@parecerLink'
)
->
name
(
'parecerLink'
)
->
middleware
(
'auth'
);
Route
::
post
(
'/EnviarparecerLink'
,
'AvaliadorController@enviarParecerLink'
)
->
name
(
'enviarParecerLink'
)
->
middleware
(
'auth'
);
});
Route
::
get
(
'/notificacao/listar'
,
'NotificacaoController@listar'
)
->
name
(
'notificacao.listar'
)
->
middleware
(
'auth'
);
...
...
@@ -242,6 +248,8 @@ Route::prefix('usuarios')->name('admin.')->group(function () {
Route
::
post
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/visualizarParecer'
,
'AdministradorController@visualizarParecer'
)
->
name
(
'visualizarParecer'
);
Route
::
get
(
'/visualizarParecerInterno'
,
'AdministradorController@visualizarParecerInterno'
)
->
name
(
'visualizarParecerInterno'
);
Route
::
get
(
'/visualizarParecerLink'
,
'AdministradorController@visualizarParecerLink'
)
->
name
(
'visualizarParecerLink'
);
Route
::
get
(
'/visualizarParecerBarema'
,
'AdministradorController@visualizarParecerBarema'
)
->
name
(
'visualizarParecerBarema'
);
Route
::
get
(
'/pareceresProjetos'
,
'AdministradorController@pareceres'
)
->
name
(
'pareceres'
);
Route
::
get
(
'/analisarProjetos/{column?}'
,
'AdministradorController@analisar'
)
->
name
(
'analisar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/analisarProposta'
,
'AdministradorController@analisarProposta'
)
->
name
(
'analisarProposta'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
...
...
Prev
1
2
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