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
bf6e4e89
"vscode:/vscode.git/clone" did not exist on "aa62f4e196968b60e9bd19764e099587e98f6458"
Commit
bf6e4e89
authored
Jan 30, 2022
by
Guilherme Silva
Browse files
Ajuste de telas para adequação ao novo parecer interno e avaliador
parent
5839ace1
Changes
4
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/projetos.blade.php
View file @
bf6e4e89
...
...
@@ -36,6 +36,7 @@
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Data
</
th
>
<
th
scope
=
"col"
>
Recomendação
</
th
>
...
...
@@ -46,40 +47,76 @@
@
foreach
(
$trabalho
->
avaliadors
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
@
else
{{
date
(
'd/m/Y'
,
strtotime
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
created_at
))
}}
@
endif
</
td
>
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
@
else
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
recomendacao
}}
@
endif
</
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
}}"
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
<
button
class
=
"btn btn-danger"
disabled
=
"disabled"
>
{{
--
Data
--
}}
@
if
(
$avaliador
->
tipo
!=
null
&&
$avaliador
->
tipo
==
"Interno"
)
@
php
$parecerInterno
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
<
td
>
@
if
(
$parecerInterno
==
null
)
Indisponível
@
else
{{
date
(
'd/m/Y'
,
strtotime
(
$parecerInterno
->
created_at
))
}}
@
endif
</
td
>
{{
--
Parecer
--
}}
<
td
>
@
if
(
$parecerInterno
==
null
)
Indisponível
@
else
{{
$parecerInterno
->
statusParecer
}}
@
endif
</
td
>
{{
--
Acesso
ao
parecer
interno
--
}}
<
td
>
@
if
(
$parecerInterno
==
null
)
<
a
class
=
"btn btn-danger"
disabled
=
"disabled"
>
Indisponível
</
button
>
</
a
>
@
else
<
button
class
=
"btn btn-primary"
>
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
class
=
"btn btn-primary"
>
Visualizar
</
button
>
</
a
>
@
endif
</
td
>
@
else
{{
--
Data
--
}}
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
@
else
{{
date
(
'd/m/Y'
,
strtotime
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
created_at
))
}}
@
endif
</
td
>
{{
--
Parecer
--
}}
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
@
else
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
recomendacao
}}
@
endif
</
form
>
</
td
>
</
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
}}"
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
<
button
class
=
"btn btn-danger"
disabled
=
"disabled"
>
Indisponível
</
button
>
@
else
<
button
class
=
"btn btn-primary"
>
Visualizar
</
button
>
@
endif
</
form
>
</
td
>
@
endif
</
tr
>
@
endforeach
</
tbody
>
...
...
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
bf6e4e89
...
...
@@ -44,6 +44,7 @@
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Área
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
</
tr
>
</
thead
>
...
...
@@ -60,6 +61,13 @@
@
endif
</
td
>
<
td
>
@
if
(
$avaliador
->
tipo
==
null
)
Externo
@
else
{{
$avaliador
->
tipo
}}
@
endif
</
td
>
<
td
style
=
"text-align:center"
>
<
form
action
=
"{{ route('admin.adicionar') }}"
method
=
"POST"
>
@
csrf
...
...
@@ -83,6 +91,7 @@
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
Email
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
...
...
@@ -92,6 +101,7 @@
@
foreach
(
$avalSelecionados
as
$avaliador
)
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
@
if
(
$avaliador
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
==
true
)
<
td
style
=
"color: rgb(3, 189, 3);"
>
Aceito
</
td
>
...
...
resources/views/administrador/selecionarProjetos.blade.php
View file @
bf6e4e89
...
...
@@ -111,6 +111,7 @@
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Titulo
do
projeto
</
th
>
<
th
scope
=
"col"
>
Status
avaliação
</
th
>
...
...
@@ -126,28 +127,56 @@
@
endif
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$trabalho
->
titulo
}}
</
td
>
{{
--
<
td
>
{{
$contador
}}
/
{{
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
}}
</
td
>
--
}}
<
td
>@
if
(
$trabalho
->
pivot
->
parecer
==
null
)
Pendente
@
else
Avaliado
@
endif
</
td
>
<
td
>
@
if
(
$avaliador
->
tipo
==
"Externo"
||
$avaliador
->
tipo
=
null
)
<
td
>@
if
(
$trabalho
->
pivot
->
parecer
==
null
)
Pendente
@
else
Avaliado
@
endif
</
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"
>
@
if
(
$trabalho
->
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
>
@
else
@
php
$parecer
=
App\ParecerInterno
::
where
([[
'avaliador_id'
,
$avaliador
->
id
],[
'trabalho_id'
,
$trabalho
->
id
]])
->
first
();
@
endphp
<
td
>
@
if
(
$parecer
==
null
)
Pendente
@
else
Avaliado
@
endif
</
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
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"
>
@
if
(
$parecer
!=
null
)
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['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
class
=
"dropdown-menu"
>
@
if
(
$trabalho
->
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
>
</
div
>
</
td
>
</
td
>
@
endif
</
tr
>
@
endforeach
@
endforeach
...
...
resources/views/planosTrabalho/selecionarPlanos.blade.php
View file @
bf6e4e89
...
...
@@ -110,6 +110,7 @@
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Usuário
</
th
>
<
th
scope
=
"col"
>
Tipo
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
style
=
"text-align:center"
>
Ação
</
th
>
...
...
@@ -125,6 +126,7 @@
@
endforeach
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
tipo
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
{{
$contador
}}
/
{{
$avaliador
->
planoTrabalhos
->
count
()
}}
</
td
>
<
td
style
=
"text-align:center"
>
...
</
td
>
...
...
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