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
c4834eb8
Commit
c4834eb8
authored
Aug 24, 2022
by
S-Nathalia
Browse files
restringir envio de parecer fora da data
parent
d8e2596f
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
c4834eb8
...
...
@@ -135,6 +135,8 @@ class AvaliadorController extends Controller
//
$participantes
=
$trabalho
->
participantes
;
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$trabalho
->
id
)
->
get
();
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'avaliador.parecerInterno'
,
[
'trabalho'
=>
$trabalho
,
...
...
@@ -147,6 +149,7 @@ class AvaliadorController extends Controller
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'arquivos'
=>
$arquivos
,
'estados'
=>
$this
->
estados
,
'hoje'
=>
$hoje
]);
}
...
...
resources/views/avaliador/listarTrabalhos.blade.php
View file @
c4834eb8
...
...
@@ -218,15 +218,10 @@
<
form
action
=
"{{ route('avaliador.parecer', ['evento' =>
$evento
]) }}"
method
=
"POST"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
@
if
(
$trabalho
->
pivot
->
AnexoParecer
==
null
)
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
<
button
type
=
"submit"
class
=
"btn btn-primary mr-2 ml-2"
>
Parecer
</
button
>
@
else
<
button
type
=
"submit"
class
=
"btn btn-secondary mr-2 ml-2"
>
Enviado
</
button
>
@
endif
</
form
>
</
div
>
...
...
resources/views/avaliador/parecerInterno.blade.php
View file @
c4834eb8
...
...
@@ -235,9 +235,9 @@
<
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
>
<
div
><
button
type
=
"submit"
class
=
"btn btn-success"
>
Enviar
meu
parecer
</
button
></
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
>
...
...
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