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
721d54a7
"resources/views/vscode:/vscode.git/clone" did not exist on "ced784c337a0cbb6f6c3c4b8f1b94dbe32e0678f"
Commit
721d54a7
authored
Jul 19, 2021
by
José Rômulo
Browse files
Modifica opcoes de avaliacao
parent
b096f2af
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
721d54a7
...
...
@@ -46,9 +46,8 @@ class AvaliadorController extends Controller
$avaliador
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
();
$trabalho
=
$avaliador
->
trabalhos
->
find
(
$request
->
trabalho_id
);
$evento
=
Evento
::
find
(
$request
->
evento
);
$recomendacaos
=
Recomendacao
::
all
();
return
view
(
'avaliador.parecer'
,
[
'trabalho'
=>
$trabalho
,
'evento'
=>
$evento
,
'recomendacaos'
=>
$recomendacaos
]);
return
view
(
'avaliador.parecer'
,
[
'trabalho'
=>
$trabalho
,
'evento'
=>
$evento
]);
}
public
function
parecerPlano
(
Request
$request
){
...
...
@@ -61,6 +60,7 @@ class AvaliadorController extends Controller
// dd($plano);
return
view
(
'avaliador.parecerPlano'
,
[
'plano'
=>
$plano
,
'evento'
=>
$evento
,
'recomendacaos'
=>
$recomendacaos
]);
}
public
function
enviarParecer
(
Request
$request
){
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
...
...
resources/views/avaliador/parecer.blade.php
View file @
721d54a7
...
...
@@ -7,7 +7,7 @@
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 3rem;"
>
<
div
class
=
"col-md-11"
style
=
"margin-bottom: -3rem"
>
<
div
class
=
"card card_conteudo shadow bg-white"
style
=
"border-radius:12px; border-width:0px;"
>
<
div
class
=
"card card_conteudo shadow bg-white"
style
=
"border-radius:12px; border-width:0px;
overflow:auto
"
>
<
div
class
=
"card-header"
style
=
"border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff"
>
<
div
class
=
"d-flex justify-content-between align-items-center"
style
=
"margin-top: 9px; margin-bottom:-1rem"
>
<
div
class
=
"bottomVoltar"
style
=
"margin-top: -20px"
>
...
...
@@ -37,13 +37,8 @@
<
textarea
class
=
"form-control"
id
=
"exampleFormControlTextarea1"
rows
=
"3"
name
=
"textParecer"
placeholder
=
"Digite aqui o seu parecer"
>
{{
$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
<
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
class
=
"form-group mt-3 md-3"
>
@
if
(
$trabalho
->
pivot
->
AnexoParecer
==
null
)
...
...
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