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
2ec4089c
Commit
2ec4089c
authored
3 years ago
by
Guilherme Silva
Browse files
Options
Download
Email Patches
Plain Diff
Adicionado 'acesso rápido' aos projetos
parent
8f5d0324
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/views/administrador/listaProjetos.blade.php
+306
-62
resources/views/administrador/listaProjetos.blade.php
resources/views/layouts/app.blade.php
+2
-1
resources/views/layouts/app.blade.php
with
308 additions
and
63 deletions
+308
-63
resources/views/administrador/listaProjetos.blade.php
View file @
2ec4089c
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-5"
style
=
"
floa
t: center
;
"
>
<
h4
class
=
"titulo-table"
>
Editai
s
</
h4
>
<
div
class
=
"col-sm-5"
style
=
"
align-conten
t: center"
>
<
h4
class
=
"titulo-table"
>
Projeto
s
</
h4
>
</
div
>
</
div
>
...
...
@@ -21,56 +23,297 @@
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
@
foreach
(
$editais
as
$edital
)
@
foreach
(
$projetos
as
$trabalho
)
@
php
$evento
=
$trabalho
->
evento
@
endphp
<
div
class
=
"accordion"
id
=
"accordionExample"
>
<
div
class
=
"card"
>
<
div
class
=
"card-header"
id
=
"headingOne"
>
<
h2
class
=
"mb-0"
>
<
button
class
=
"btn btn-link btn-block text-left"
type
=
"button"
data
-
toggle
=
"collapse"
data
-
target
=
"#collapse{{
$
edital
->id
}}"
aria
-
expanded
=
"true"
aria
-
controls
=
"collapse{{
$
edital
->id
}}"
>
{{
$
edital
->
nome
}}
<
button
class
=
"btn btn-link btn-block text-left"
type
=
"button"
data
-
toggle
=
"collapse"
data
-
target
=
"#collapse{{
$
trabalho
->id
}}"
aria
-
expanded
=
"true"
aria
-
controls
=
"collapse{{
$
trabalho
->id
}}"
>
{{
$
trabalho
->
titulo
}}
</
button
>
</
h2
>
</
div
>
<
div
id
=
"collapse{{
$
edital
->id
}}"
class
=
"collapse "
aria
-
labelledby
=
"headingOne"
data
-
parent
=
"#accordionExample"
>
<
div
id
=
"collapse{{
$
trabalho
->id
}}"
class
=
"collapse "
aria
-
labelledby
=
"headingOne"
data
-
parent
=
"#accordionExample"
>
<
div
class
=
"card-body"
>
{{
--
<
div
class
=
"card"
style
=
"margin-top:50px"
>
--
}}
<
h5
class
=
"card-title"
>
Visualizar
Projeto
</
h5
>
<
p
class
=
"card-text"
>
<
input
type
=
"hidden"
name
=
"eventoId"
value
=
"{{
$evento->id
}}"
>
{{
--
Nome
do
Projeto
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Nome do Projeto:'
)
}}
</
label
>
<
span
id
=
"nomeTrabalho"
class
=
"form-control"
name
=
"nomeProjeto"
>
{{
$trabalho
->
titulo
}}
</
span
>
</
div
>
</
div
>
{{
--
Grande
Area
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área:'
)
}}
</
label
>
<
span
class
=
"form-control"
id
=
"grandeArea"
name
=
"grandeArea"
>
{{
App\GrandeArea
::
where
(
'id'
,
$trabalho
->
grande_area_id
)
->
first
()
->
nome
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"area"
class
=
"col-form-label"
>
{{
__
(
'Área:'
)
}}
</
label
>
<
span
class
=
"form-control"
id
=
"area"
name
=
"area"
>
{{
App\Area
::
where
(
'id'
,
$trabalho
->
area_id
)
->
first
()
->
nome
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"subArea"
class
=
"col-form-label"
>
{{
__
(
'Sub Área:'
)
}}
</
label
>
<
span
class
=
"form-control"
id
=
"subArea"
name
=
"subArea"
>@
if
(
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
!=
null
){{
App\SubArea
::
where
(
'id'
,
$trabalho
->
sub_area_id
)
->
first
()
->
nome
}}
@
endif
</
span
>
</
div
>
</
div
>
<
hr
>
<
h3
>
Coordenador
</
h3
>
{{
--
Coordenador
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nomeCoordenador"
class
=
"col-form-label"
>
{{
__
(
'Coordenador:'
)
}}
</
label
>
<
span
class
=
"form-control"
id
=
"nomeCoordenador"
name
=
"nomeCoordenador"
disabled
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
name
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nomeCoordenador"
class
=
"col-form-label"
>
{{
__
(
'E-mail do Coordenador:'
)
}}
</
label
>
<
span
class
=
"form-control"
id
=
"nomeCoordenador"
name
=
"nomeCoordenador"
disabled
>
{{
App\Proponente
::
find
(
$trabalho
->
proponente_id
)
->
user
->
email
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
Link
Lattes
do
Proponente
</
label
>
<
span
class
=
"form-control"
name
=
"linkLattesEstudante"
>
@
if
(
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
!=
null
)
{{
App\Proponente
::
where
(
'id'
,
$trabalho
->
proponente_id
)
->
first
()
->
linkLattes
}}
@
endif
</
span
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Pontuação da Planilha de Pontuação :'
)
}}
</
label
>
<
span
class
=
"form-control"
name
=
"pontuacaoPlanilha"
>
{{
$trabalho
->
pontuacaoPlanilha
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Link do grupo de pesquisa:'
)
}}
</
label
>
<
span
class
=
"form-control"
name
=
"linkGrupo"
>
{{
$trabalho
->
linkGrupoPesquisa
}}
</
span
>
</
div
>
</
div
>
<
hr
>
<
h3
>
Anexos
</
h3
>
{{
--
Anexo
do
Projeto
--
}}
<
div
class
=
"row justify-content-center"
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-6"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label"
>
{{
__
(
'Anexo Projeto: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$trabalho->id
])}}"
>
Arquivo
atual
</
a
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"anexoLatterCoordenador"
class
=
"col-form-label"
>
{{
__
(
'Anexo do Lattes do Coordenador: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
atual
</
a
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Autorização do Comitê de Ética: '
)
}}
</
label
>
@
if
(
$trabalho
->
anexoAutorizacaoComiteEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.comite', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
atual
</
a
>
@
else
-
@
endif
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label"
>
{{
__
(
'Anexo do Planilha de Pontuação: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
atual
</
a
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Justificativa: '
)
}}
</
label
>
@
if
(
$trabalho
->
justificativaAutorizacaoEtica
!=
null
)
<
a
href
=
"{{ route('baixar.anexo.justificativa', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
atual
</
a
>
@
else
-
@
endif
</
div
>
@
if
(
$evento
->
tipo
==
'PIBIC'
||
$evento
->
tipo
==
'PIBIC-EM'
)
{{
--
Decisão
do
CONSU
--
}}
<
div
class
=
"col-sm-6"
>
<
label
for
=
"anexoCONSU"
class
=
"col-form-label"
>
{{
__
(
'Decisão do CONSU: '
)
}}
</
label
>
<
a
href
=
"{{ route('baixar.anexo.consu', ['id' =>
$trabalho->id
]) }}"
>
Arquivo
atual
</
a
>
</
div
>
@
endif
</
div
>
<
hr
>
{{
--
Discentes
--
}}
<
h4
>
Discentes
</
h4
>
<
a
href
=
"{{route('trabalho.telaAnaliseSubstituicoes', ['trabalho_id' =>
$trabalho->id
])}}"
class
=
""
>
Substituições
</
a
>
{{
--
Participantes
--
}}
<
div
class
=
"row"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
id
=
"participantes"
>
@
foreach
(
$trabalho
->
participantes
as
$participante
)
{{
--
@
foreach
(
$users
as
$user
)
--
}}
{{
--
@
if
(
$participante
->
user_id
===
$user
->
id
)
--
}}
<
div
id
=
"novoParticipante"
>
<
br
>
<
h5
>
Dados
do
discente
</
h5
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-5"
>
<
label
>
Nome
Completo
</
label
>
<
span
style
=
"margin-bottom:10px"
class
=
"form-control"
name
=
"nomeParticipante[]"
>
{{
$participante
->
user
->
name
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
>
E
-
mail
</
label
>
<
span
style
=
"margin-bottom:10px"
class
=
"form-control"
name
=
"emailParticipante[]"
>
{{
$participante
->
user
->
email
}}
</
span
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
>
Função
:</
label
>
<
select
disabled
class
=
"form-control"
name
=
"funcaoParticipante[]"
id
=
"funcaoParticipante"
>
<
option
value
=
""
disabled
selected
hidden
>--
Função
--</
option
>
@
foreach
(
$funcaoParticipantes
as
$funcaoParticipante
)
@
if
(
$funcaoParticipante
->
id
===
$participante
->
funcao_participante_id
)
<
option
value
=
"
{
{$funcaoParticipante->id}
}
"
selected
>
{{
$funcaoParticipante
->
nome
}}
</
option
>
@
else
<
option
value
=
"
{
{$funcaoParticipante->id}}">{{$funcaoParticipante->nome}
}
</option>
@endif
@endforeach
</select>
</div>
</div>
<
table
class
=
"table table-bordered"
>
<h5>Dados do plano de trabalho</h5>
@php
$arquivos
= App\Arquivo::where('trabalhoId',
$trabalho->id
)->get();
@endphp
@foreach(
$arquivos
as
$arquivo
)
@if(
$arquivo->participanteId
===
$participante->id
)
<div class="
row
">
<div class="
col
-
sm
-
12
">
<div id="
planoTrabalho
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label>Titulo </label>
<span style="
margin
-
bottom
:
10
px
" class="
form
-
control
" name="
nomePlanoTrabalho
[]
">
{
{$arquivo->titulo}
}
</span>
</div>
<div class="
col
-
sm
-
7
">
<label for="
nomeTrabalho
">Anexo</label>
<p>
<a href="
{{
route
(
'baixar.plano'
,
[
'id'
=>
$arquivo
->
id
])
}}
">Plano de trabalho atual</a>
</p>
</div>
</div>
</div>
</div>
</div>
@endif
@endforeach
<h5>Relatórios</h5>
<div class="
row
">
<div class="
col
-
sm
-
12
">
<div id="
relatorios
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label for="
dt_inicioRelatorioParcial
" class="
col
-
form
-
label
">{{ __('Início do Relatório Parcial:') }}</label>
<input id="
dt_inicioRelatorioParcial
{{
$evento
->
id
}}
" type="
date
" class="
form
-
control
" name="
dt_inicioRelatorioParcial
" value="
{{
$evento
->
dt_inicioRelatorioParcial
}}
" required autocomplete="
dt_inicioRelatorioParcial
" disabled autofocus>
</div>
<div class="
col
-
sm
-
4
">
<label for="
dt_fimRelatorioParcial
" class="
col
-
form
-
label
">{{ __('Fim do Relatório Parcial:') }}</label>
<input id="
dt_fimRelatorioParcial
{{
$evento
->
id
}}
" type="
date
" class="
form
-
control
" name="
dt_fimRelatorioParcial
" value="
{{
$evento
->
dt_fimRelatorioParcial
}}
" required autocomplete="
dt_fimRelatorioParcial
" disabled autofocus>
</div>
</div>
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label for="
dt_inicioRelatorioFinal
" class="
col
-
form
-
label
">{{ __('Início do Relatório Final:') }}</label>
<input id="
dt_inicioRelatorioFinal
{{
$evento
->
id
}}
" type="
date
" class="
form
-
control
" name="
dt_inicioRelatorioFinal
" value="
{{
$evento
->
dt_inicioRelatorioFinal
}}
" required autocomplete="
dt_inicioRelatorioFinal
" disabled autofocus>
</div>
<div class="
col
-
sm
-
4
">
<label for="
dt_fimRelatorioFinal
" class="
col
-
form
-
label
">{{ __('Fim do Relatório Final:') }}</label>
<input id="
dt_fimRelatorioFinal
{{
$evento
->
id
}}
" type="
date
" class="
form
-
control
" name="
dt_fimRelatorioFinal
" value="
{{
$evento
->
dt_fimRelatorioFinal
}}
" required autocomplete="
dt_fimRelatorioFinal
" disabled autofocus>
</div>
</div>
</div>
<div>
<br>
<a href="
{{
route
(
'planos.listar'
,
[
'id'
=>
$trabalho
->
id
])}}
" class="">
Lista de Relatórios
</a>
</div>
</div>
</div>
</div>
{{-- @endif --}}
{{-- @endforeach --}}
@endforeach
</div>
</div>
</div>
<hr>
{
{--Avaliadores--}
}
<h4>Avaliadores</h4>
<table class="
table
table
-
bordered
" style="
margin
-
top
:
20
px
">
<thead>
<tr>
<
th
scope
=
"col"
>
Nome
da
Proposta
</
th
>
<
th
scope
=
"col"
>
Autor
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
<th scope="
col
">Nome</th>
<th scope="
col
">E-mail</th>
<th scope="
col
">Status avaliação</th>
<th scope="
col
" style="
text
-
align
:
center
">Ação</th>
</tr>
</thead>
<
tbody
id
=
"eventos"
>
@
foreach
(
$edital
->
trabalhos
as
$projeto
)
<tbody>
@foreach(
$trabalho->avaliadors
as
$avaliador
)
<tr>
<td>
{
{$avaliador->user->name}
}
</td>
<td>
{
{$avaliador->user->email}
}
</td>
<td>@if(
$avaliador->pivot
->parecer == null) Pendente @else Avaliado @endif</td>
<td>
<
a
href
=
"{{ route('trabalho.show',['id'=>
$projeto->id
]) }}"
class
=
"visualizarEvento"
>
{{
$projeto
->
titulo
}}
<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
:
8
px
">
</a>
</
td
>
<
td
>
{{
$projeto
->
proponente
->
user
->
name
}}
</
td
>
<
td
>
{{
$projeto
->
proponente
->
user
->
email
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y \à\s H:i\h'
,
strtotime
(
$projeto
->
created_at
))
}}
</
td
>
<
td
>
{{
$projeto
->
status
}}
</
td
>
<
td
>
<div class="
dropdown
-
menu
">
@if(
$avaliador->pivot
->parecer != null)
<a href="
{{
route
(
'admin.visualizarParecer'
,
[
'trabalho_id'
=>
$trabalho
->
id
,
'avaliador_id'
=>
$avaliador
->
id
])
}}
" class="
dropdown
-
item
text
-
center
">
Vizualizar Parecer
</a>
@endif
<a href="
{{
route
(
'admin.removerProjAval'
,
[
'trabalho_id'
=>
$trabalho
->
id
,
'avaliador_id'
=>
$avaliador
->
id
])
}}
" class="
dropdown
-
item
text
-
center
">
Desatribuir Avaliador
</a>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</
div
>
</div>
</div>
...
...
@@ -82,4 +325,5 @@
</div>
</div>
</div>
@endsection
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/layouts/app.blade.php
View file @
2ec4089c
...
...
@@ -181,6 +181,7 @@
@if(Auth::user()->administradors != null)
<a
href=
"{{route('admin.editais')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Editais
</a>
<a
href=
"{{route('admin.showProjetos')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Projetos
</a>
@else
<a
href=
"{{route('coord.home')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Editais
</a>
@endif
...
...
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