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
47f37073
Unverified
Commit
47f37073
authored
Jun 04, 2022
by
GuilhermeGz
Committed by
GitHub
Jun 04, 2022
Browse files
Merge pull request #221 from antonioDurval/master
Atualizações da semana
parents
f556479a
ad8c2e48
Changes
5
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/ArquivoController.php
View file @
47f37073
...
@@ -128,7 +128,7 @@ class ArquivoController extends Controller
...
@@ -128,7 +128,7 @@ class ArquivoController extends Controller
}
}
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
$hoje
=
$hoje
->
toDateString
();
return
view
(
'planosTrabalho.listar'
)
->
with
([
'arquivos'
=>
$arquivos
,
'hoje'
=>
$hoje
]);
return
view
(
'planosTrabalho.listar'
)
->
with
([
'arquivos'
=>
$arquivos
,
'hoje'
=>
$hoje
,
'trabalho'
=>
$trabalho
]);
}
}
public
function
anexarRelatorio
(
Request
$request
){
public
function
anexarRelatorio
(
Request
$request
){
...
...
app/Http/Controllers/EventoController.php
View file @
47f37073
...
@@ -323,7 +323,9 @@ class EventoController extends Controller
...
@@ -323,7 +323,9 @@ class EventoController extends Controller
$trabalhosId
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
select
(
'id'
)
->
get
();
$trabalhosId
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
select
(
'id'
)
->
get
();
$mytime
=
Carbon
::
now
(
'America/Recife'
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
// dd(false);
// dd(false);
return
view
(
'evento.visualizarEvento'
,
[
return
view
(
'evento.visualizarEvento'
,
[
'evento'
=>
$evento
,
'evento'
=>
$evento
,
...
@@ -332,7 +334,7 @@ class EventoController extends Controller
...
@@ -332,7 +334,7 @@ class EventoController extends Controller
'hasTrabalho'
=>
$hasTrabalho
,
'hasTrabalho'
=>
$hasTrabalho
,
// 'hasTrabalhoCoautor' => $hasTrabalhoCoautor,
// 'hasTrabalhoCoautor' => $hasTrabalhoCoautor,
'hasFile'
=>
$hasFile
,
'hasFile'
=>
$hasFile
,
'
mytim
e'
=>
$
mytim
e
'
hoj
e'
=>
$
hoj
e
]);
]);
}
}
...
@@ -345,7 +347,8 @@ class EventoController extends Controller
...
@@ -345,7 +347,8 @@ class EventoController extends Controller
$trabalhos
=
null
;
$trabalhos
=
null
;
$trabalhosCoautor
=
null
;
$trabalhosCoautor
=
null
;
$mytime
=
Carbon
::
now
(
'America/Recife'
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
// dd(false);
// dd(false);
return
view
(
'evento.visualizarEvento'
,
[
return
view
(
'evento.visualizarEvento'
,
[
'evento'
=>
$evento
,
'evento'
=>
$evento
,
...
@@ -354,7 +357,7 @@ class EventoController extends Controller
...
@@ -354,7 +357,7 @@ class EventoController extends Controller
'hasTrabalho'
=>
$hasTrabalho
,
'hasTrabalho'
=>
$hasTrabalho
,
'hasTrabalhoCoautor'
=>
$hasTrabalhoCoautor
,
'hasTrabalhoCoautor'
=>
$hasTrabalhoCoautor
,
'hasFile'
=>
$hasFile
,
'hasFile'
=>
$hasFile
,
'
mytim
e'
=>
$
mytim
e
'
hoj
e'
=>
$
hoj
e
]);
]);
}
}
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
47f37073
...
@@ -788,7 +788,7 @@
...
@@ -788,7 +788,7 @@
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"col-md-
6
"
>
<
div
class
=
"col-md-
4
"
>
<
label
for
=
"exampleFormControlSelect2"
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
esse
projeto
</
label
>
para
esse
projeto
</
label
>
...
@@ -810,7 +810,7 @@
...
@@ -810,7 +810,7 @@
</select>
</select>
</div>
</div>
<div class="
col
-
md
-
3
"
<div class="
col
-
md
-
2
"
style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
">
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
">
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
"
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
"
...
@@ -821,6 +821,10 @@
...
@@ -821,6 +821,10 @@
</select>
</select>
</div>
</div>
<div class="
col
-
sm
-
3
" style="
display
:
flex
;
align
-
items
:
end
;
">
<input type="
text
" class="
form
-
control
form
-
control
-
edit
" placeholder="
Nome
do
avaliador
" onkeyup="
buscar
(
this
)
" style="
max
-
width
:
200
px
;
"> <img src="
{{
asset
(
'img/icons/logo_lupa.png'
)}}
" alt="">
</div>
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
...
@@ -901,10 +905,10 @@
...
@@ -901,10 +905,10 @@
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
</
h9
>
{{
--
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
Remover
</
a
>
--
}}
</
a
>
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
Reenviar
convite
...
@@ -940,10 +944,10 @@
...
@@ -940,10 +944,10 @@
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
</
h9
>
@
endif
@
endif
{{
--
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
Remover
</
a
>
--
}}
</
a
>
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
Reenviar
convite
...
@@ -1882,4 +1886,39 @@
...
@@ -1882,4 +1886,39 @@
}
}
}
}
</
script
>
</
script
>
<
script
>
//let seletor = document.getElementsByClassName('aval1')
//console.log(seletor[0].children[0].text)
function
buscar
(
input
)
{
let
seletor1
=
document
.
getElementById
(
'exampleFormControlSelect2'
)
.
children
;
let
seletor2
=
document
.
getElementById
(
'exampleFormControlSelect3'
)
.
children
;
for
(
let
i
=
0
;
i
<
seletor1
.
length
;
i
++
){
let
nomeAval1
=
seletor1
[
i
]
.
textContent
if
(
nomeAval1
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
){
seletor1
[
i
]
.
style
.
display
=
""
;
}
else
{
seletor1
[
i
]
.
style
.
display
=
"none"
;
}
}
for
(
let
j
=
0
;
j
<
seletor2
.
length
;
j
++
){
let
nomeAval1
=
seletor2
[
j
]
.
textContent
if
(
nomeAval1
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
){
seletor2
[
j
]
.
style
.
display
=
""
;
}
else
{
seletor2
[
j
]
.
style
.
display
=
"none"
;
}
}
}
</
script
>
@
endsection
@
endsection
resources/views/evento/visualizarEvento.blade.php
View file @
47f37073
...
@@ -110,8 +110,8 @@
...
@@ -110,8 +110,8 @@
<
div
class
=
"card-body"
>
<
div
class
=
"card-body"
>
<
div
class
=
"form-row"
>
<
div
class
=
"form-row"
>
@
if
(
$evento
->
inicioSubmissao
<=
$
mytim
e
)
@
if
(
$evento
->
inicioSubmissao
<=
$
hoj
e
)
@
if
(
$
mytim
e
<
$evento
->
fimSubmissao
)
@
if
(
$
hoj
e
<
=
$evento
->
fimSubmissao
)
<
div
class
=
"col-md-12"
style
=
"margin-bottom:18px"
>
<
div
class
=
"col-md-12"
style
=
"margin-bottom:18px"
>
@
if
(
false
)
{{
--
Agendamento
para
o
dia
01
/
07
/
2021
as
12
:
30
:
00
--
}}
@
if
(
false
)
{{
--
Agendamento
para
o
dia
01
/
07
/
2021
as
12
:
30
:
00
--
}}
...
@@ -286,7 +286,7 @@
...
@@ -286,7 +286,7 @@
<!
--
{{
--
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
...
@@ -314,7 +314,7 @@
...
@@ -314,7 +314,7 @@
</
div
>
</
div
>
-->
--
}}
@
endsection
@
endsection
...
...
resources/views/planosTrabalho/listar.blade.php
View file @
47f37073
...
@@ -34,15 +34,22 @@
...
@@ -34,15 +34,22 @@
@if((Auth::user()->proponentes != null) && (
$arquivo->relatorioParcial
== null) &&
@if((Auth::user()->proponentes != null) && (
$arquivo->relatorioParcial
== null) &&
(
$arquivo->trabalho
->evento->dt_inicioRelatorioParcial <=
$hoje
) && (
$hoje
<=
$arquivo->trabalho
->evento->dt_fimRelatorioParcial))
(
$arquivo->trabalho
->evento->dt_inicioRelatorioParcial <=
$hoje
) && (
$hoje
<=
$arquivo->trabalho
->evento->dt_fimRelatorioParcial))
<!-- Button trigger modal -->
<!-- Button trigger modal -->
<button type="
button
" class="
btn
btn
-
primary
" data-toggle="
modal
" data-target="
#modalRelatorioParcial{{ $arquivo->id }}">
@if(
$arquivo->arquivado
)
@
if
(
$arquivo
->
arquivado
)
Arquivado
@
else
Enviar
@
endif
<button type="
button
" class="
btn
btn
-
secondary
" data-toggle="
modal
" data-target="
#modalRelatorioParcial{{ $arquivo->id }}">Arquivado</button>
</
button
>
@
elseif
(
$trabalho
->
status
==
"reprovado"
)
<
button
type
=
"button"
class
=
"btn btn-danger"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Reprovado
</
button
>
@
else
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Enviar
</
button
>
@
endif
@
else
@
else
<!--
Button
trigger
modal
-->
<!--
Button
trigger
modal
-->
@
if
(
$arquivo
->
relatorioParcial
!=
null
)
@
if
(
$arquivo
->
relatorioParcial
!=
null
)
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Visualizar
</
button
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Visualizar
</
button
>
@
elseif
(
$arquivo
->
arquivado
)
@
elseif
(
$arquivo
->
arquivado
)
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Arquivado
</
button
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Arquivado
</
button
>
@
elseif
(
$trabalho
->
status
==
"reprovado"
)
<
button
type
=
"button"
class
=
"btn btn-danger"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Reprovado
</
button
>
@
else
@
else
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Pendente
</
button
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Pendente
</
button
>
@
endif
@
endif
...
@@ -53,17 +60,23 @@
...
@@ -53,17 +60,23 @@
@
if
((
Auth
::
user
()
->
proponentes
!=
null
)
&&
(
$arquivo
->
relatorioFinal
==
null
)
&&
@
if
((
Auth
::
user
()
->
proponentes
!=
null
)
&&
(
$arquivo
->
relatorioFinal
==
null
)
&&
(
$arquivo
->
trabalho
->
evento
->
dt_inicioRelatorioFinal
<=
$hoje
)
&&
(
$hoje
<=
$arquivo
->
trabalho
->
evento
->
dt_fimRelatorioFinal
))
(
$arquivo
->
trabalho
->
evento
->
dt_inicioRelatorioFinal
<=
$hoje
)
&&
(
$hoje
<=
$arquivo
->
trabalho
->
evento
->
dt_fimRelatorioFinal
))
<!--
Button
trigger
modal
-->
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
@
if
(
$arquivo
->
arquivado
)
@
if
(
$arquivo
->
arquivado
)
Arquivado
@
else
Enviar
@
endif
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
Arquivado
</
button
>
</
button
>
@
elseif
(
$trabalho
->
status
==
"reprovado"
)
<
button
type
=
"button"
class
=
"btn btn-danger"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
Reprovado
</
button
>
@
else
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
Enviar
</
button
>
@
endif
@
else
@
else
<!--
Button
trigger
modal
-->
<!--
Button
trigger
modal
-->
@
if
(
$arquivo
->
relatorio
Parci
al
!=
null
)
@
if
(
$arquivo
->
relatorio
Fin
al
!=
null
)
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorio
Parci
al{{
$arquivo->id
}}"
>
Visualizar
</
button
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
d
data
-
target
=
"#modalRelatorio
Fin
al{{
$arquivo->id
}}"
>
Visualizar
</
button
>
@
elseif
(
$arquivo
->
arquivado
)
@
elseif
(
$arquivo
->
arquivado
)
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Arquivado
</
button
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
Arquivado
</
button
>
@
elseif
(
$trabalho
->
status
==
"reprovado"
)
<
button
type
=
"button"
class
=
"btn btn-danger"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
Reprovado
</
button
>
@
else
@
else
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorio
Parci
al{{
$arquivo->id
}}"
>
Pendente
</
button
>
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorio
Fin
al{{
$arquivo->id
}}"
>
Pendente
</
button
>
@
endif
@
endif
@
endif
@
endif
</
td
>
</
td
>
...
@@ -125,7 +138,7 @@
...
@@ -125,7 +138,7 @@
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
@
if
((
Auth
::
user
()
->
proponentes
!=
null
)
&&
@
if
((
Auth
::
user
()
->
proponentes
!=
null
)
&&
(
$arquivo
->
trabalho
->
evento
->
dt_inicioRelatorioParcial
<=
$hoje
)
&&
(
$hoje
<=
$arquivo
->
trabalho
->
evento
->
dt_fimRelatorioParcial
))
(
$arquivo
->
trabalho
->
evento
->
dt_inicioRelatorioParcial
<=
$hoje
)
&&
(
$hoje
<=
$arquivo
->
trabalho
->
evento
->
dt_fimRelatorioParcial
))
<
button
type
=
"submit"
class
=
"btn btn-success"
@
if
(
$arquivo
->
arquivado
)
disabled
@
endif
>
Salvar
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-success"
@
if
(
$arquivo
->
arquivado
||
$trabalho
->
status
==
"reprovado"
)
disabled
@
endif
>
Salvar
</
button
>
@
endif
@
endif
</
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