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
f4970b1f
Commit
f4970b1f
authored
Feb 15, 2022
by
Guilherme Silva
Browse files
Adicionado comentario ao parecer interno
parent
454f7d30
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
f4970b1f
...
...
@@ -145,6 +145,7 @@ class AvaliadorController extends Controller
'statusJustificativaAutorizacaoEtica'
=>
$request
->
anexoJustificativa
,
'statusPlanoTrabalho'
=>
$request
->
anexoPlano
,
'statusParecer'
=>
$statusParecer
,
'comentario'
=>
$request
->
comentario
,
'trabalho_id'
=>
$request
->
trabalho_id
,
'avaliador_id'
=>
$request
->
avaliador_id
,
]);
...
...
@@ -160,6 +161,7 @@ class AvaliadorController extends Controller
$parecerInterno
->
statusAnexoAtuorizacaoComiteEtica
=
$request
->
anexoComiteEtica
;
$parecerInterno
->
statusJustificativaAutorizacaoEtica
=
$request
->
anexoJustificativa
;
$parecerInterno
->
statusPlanoTrabalho
=
$request
->
anexoPlano
;
$parecerInterno
->
comentario
=
$request
->
comentario
;
$parecerInterno
->
statusParecer
=
$statusParecer
;
$parecerInterno
->
update
();
}
...
...
database/migrations/2022_02_15_104447_add_comentario_parecer_internos.php
0 → 100644
View file @
f4970b1f
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddComentarioParecerInternos
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'parecer_internos'
,
function
(
Blueprint
$table
)
{
$table
->
text
(
'comentario'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'parecer_internos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'comentario'
);
});
}
}
resources/views/administrador/visualizarParecerInterno.blade.php
View file @
f4970b1f
...
...
@@ -45,6 +45,7 @@
</
div
>
<
br
>
<
h3
>
Anexos
</
h3
>
{{
--
Anexo
do
Projeto
--
}}
...
...
@@ -150,6 +151,16 @@
<
label
for
=
"recusado"
>
{{
__
(
'Recusado'
)
}}
</
label
>
<
input
type
=
"radio"
name
=
"anexoPlano"
value
=
"recusado"
@
if
(
$parecer
!=
null
&&
$parecer
->
statusPlanoTrabalho
==
'recusado'
)
checked
@
else
disabled
@
endif
>
</
div
>
</
div
>
<
br
>
<
h3
>
Comentário
</
h3
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
disabled
>@
if
(
$parecer
!=
null
&&
$parecer
->
comentario
!=
null
){{
$parecer
->
comentario
}}
@
endif
</
textarea
>
</
div
>
</
div
>
{{
--
Modal
planos
de
trabalho
--
}}
<
div
class
=
"modal fade"
id
=
"modalPlanos"
tabindex
=
"-1"
role
=
"dialog"
...
...
resources/views/avaliador/parecerInterno.blade.php
View file @
f4970b1f
...
...
@@ -84,6 +84,7 @@
</
div
>
<
br
>
<
h3
>
Anexos
</
h3
>
{{
--
Anexo
do
Projeto
--
}}
...
...
@@ -177,6 +178,15 @@
</
div
>
</
div
>
<
br
>
<
h3
>
Comentário
</
h3
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-9"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
required
>@
if
(
$parecer
!=
null
&&
$parecer
->
comentario
!=
null
)
{{
$parecer
->
comentario
}}
@
endif
</
textarea
>
</
div
>
</
div
>
<
div
><
hr
></
div
>
<
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
>
...
...
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