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
1a6f41bc
Commit
1a6f41bc
authored
May 12, 2022
by
unknown
Browse files
Desabilitando o botão de add avaliador qnd não estiver no periodo de avaliação
parent
06286ddc
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
1a6f41bc
...
@@ -35,6 +35,7 @@ use Illuminate\Support\Collection;
...
@@ -35,6 +35,7 @@ use Illuminate\Support\Collection;
use
Illuminate\Pagination\LengthAwarePaginator
;
use
Illuminate\Pagination\LengthAwarePaginator
;
use
Illuminate\Support\Facades\Notification
;
use
Illuminate\Support\Facades\Notification
;
use
App\Notifications\AtribuicaoAvaliadorExternoNotification
;
use
App\Notifications\AtribuicaoAvaliadorExternoNotification
;
use
Carbon\Carbon
;
class
AdministradorController
extends
Controller
class
AdministradorController
extends
Controller
{
{
...
@@ -103,13 +104,17 @@ class AdministradorController extends Controller
...
@@ -103,13 +104,17 @@ class AdministradorController extends Controller
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'administrador.analisarProposta'
)
->
with
(
return
view
(
'administrador.analisarProposta'
)
->
with
(
[
'trabalho'
=>
$trabalho
,
[
'trabalho'
=>
$trabalho
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'evento'
=>
$evento
,
'evento'
=>
$evento
,
'substituicoesPendentes'
=>
$substituicoesPendentes
,
'substituicoesPendentes'
=>
$substituicoesPendentes
,
'substituicoesProjeto'
=>
$substituicoesProjeto
,
'substituicoesProjeto'
=>
$substituicoesProjeto
,
'grandeAreas'
=>
$grandeAreas
,]);
'grandeAreas'
=>
$grandeAreas
,
'hoje'
=>
$hoje
,]);
}
}
public
function
showProjetos
(
Request
$request
){
public
function
showProjetos
(
Request
$request
){
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
1a6f41bc
...
@@ -417,11 +417,14 @@
...
@@ -417,11 +417,14 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
</
h5
></
div
>
<
div
class
=
"col-md-11"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Avaliadores
</
h5
></
div
>
<
div
class
=
"col-md-1 text-sm-right"
>
<!--
AKI
MUDEI
(
06
/
05
)
-->
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliadorModalCenter"
>
@
if
(
$hoje
<=
$evento
->
fimSubmissao
)
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
<
div
class
=
"col-md-1 text-sm-right"
>
</
a
>
<
a
type
=
"button"
value
=
"{{
$trabalho->id
}}"
id
=
"atribuir1"
data
-
toggle
=
"modal"
data
-
target
=
"#avaliadorModalCenter"
>
</
div
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/add.ico')}
}
"
style
=
"width:30px"
alt
=
""
>
</
a
>
</
div
>
@
endif
<!--
Modal
-->
<!--
Modal
-->
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal fade"
id
=
"avaliadorModalCenter"
data
-
bs
-
backdrop
=
"static"
data
-
bs
-
keyboard
=
"false"
tabindex
=
"-1"
aria
-
labelledby
=
"staticBackdropLabel"
aria
-
hidden
=
"true"
style
=
"overflow-y: hidden"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-xl"
role
=
"document"
>
...
...
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