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
3 years ago
by
GuilhermeGz
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #221 from antonioDurval/master
Atualizações da semana
parents
f556479a
ad8c2e48
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
app/Http/Controllers/ArquivoController.php
+1
-1
app/Http/Controllers/ArquivoController.php
app/Http/Controllers/EventoController.php
+7
-4
app/Http/Controllers/EventoController.php
resources/views/administrador/analisarProposta.blade.php
+45
-6
resources/views/administrador/analisarProposta.blade.php
resources/views/evento/visualizarEvento.blade.php
+5
-5
resources/views/evento/visualizarEvento.blade.php
resources/views/planosTrabalho/listar.blade.php
+26
-13
resources/views/planosTrabalho/listar.blade.php
with
84 additions
and
29 deletions
+84
-29
app/Http/Controllers/ArquivoController.php
View file @
47f37073
...
...
@@ -128,7 +128,7 @@ class ArquivoController extends Controller
}
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$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
){
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/EventoController.php
View file @
47f37073
...
...
@@ -323,7 +323,9 @@ class EventoController extends Controller
$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);
return
view
(
'evento.visualizarEvento'
,
[
'evento'
=>
$evento
,
...
...
@@ -332,7 +334,7 @@ class EventoController extends Controller
'hasTrabalho'
=>
$hasTrabalho
,
// 'hasTrabalhoCoautor' => $hasTrabalhoCoautor,
'hasFile'
=>
$hasFile
,
'
mytim
e'
=>
$
mytim
e
'
hoj
e'
=>
$
hoj
e
]);
}
...
...
@@ -345,7 +347,8 @@ class EventoController extends Controller
$trabalhos
=
null
;
$trabalhosCoautor
=
null
;
$mytime
=
Carbon
::
now
(
'America/Recife'
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
// dd(false);
return
view
(
'evento.visualizarEvento'
,
[
'evento'
=>
$evento
,
...
...
@@ -354,7 +357,7 @@ class EventoController extends Controller
'hasTrabalho'
=>
$hasTrabalho
,
'hasTrabalhoCoautor'
=>
$hasTrabalhoCoautor
,
'hasFile'
=>
$hasFile
,
'
mytim
e'
=>
$
mytim
e
'
hoj
e'
=>
$
hoj
e
]);
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/analisarProposta.blade.php
View file @
47f37073
...
...
@@ -788,7 +788,7 @@
<
div
class
=
"form-group"
>
<
div
class
=
"row"
style
=
"margin-left: 2px;margin-bottom: 1px"
>
<
div
class
=
"col-md-
6
"
>
<
div
class
=
"col-md-
4
"
>
<
label
for
=
"exampleFormControlSelect2"
style
=
"font-size: 16px;"
>
Selecione
o
(
s
)
avaliador
(
es
)
para
esse
projeto
</
label
>
...
...
@@ -810,7 +810,7 @@
</select>
</div>
<div class="
col
-
md
-
3
"
<div class="
col
-
md
-
2
"
style="
text
-
align
:
center
;
overflow
-
y
:
auto
;
overflow
-
x
:
auto
">
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
">
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
"
...
...
@@ -820,6 +820,10 @@
</option>
</select>
</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>
...
...
@@ -901,10 +905,10 @@
<
h9
>@
if
(
$parecerInterno
==
null
)
Pendente
@
else
<
a
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
{{
--
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>
--
}}
</
a
>
<
br
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
...
...
@@ -940,10 +944,10 @@
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
@
endif
{{
--
<
br
>
<
br
>
<
a
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Remover
</
a
>
--
}}
</
a
>
<
br
>
<
a
href
=
"{{ route('admin.reenviar.atribuicao.projeto', ['evento_id' =>
$evento->id
, 'avaliador_id'=>
$avaliador->id
, 'trabalho_id' =>
$trabalho->id
]) }}"
>
Reenviar
convite
...
...
@@ -1882,4 +1886,39 @@
}
}
</
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
This diff is collapsed.
Click to expand it.
resources/views/evento/visualizarEvento.blade.php
View file @
47f37073
...
...
@@ -110,9 +110,9 @@
<
div
class
=
"card-body"
>
<
div
class
=
"form-row"
>
@
if
(
$evento
->
inicioSubmissao
<=
$
mytim
e
)
@
if
(
$
mytim
e
<
$evento
->
fimSubmissao
)
@
if
(
$evento
->
inicioSubmissao
<=
$
hoj
e
)
@
if
(
$
hoj
e
<
=
$evento
->
fimSubmissao
)
<
div
class
=
"col-md-12"
style
=
"margin-bottom:18px"
>
@
if
(
false
)
{{
--
Agendamento
para
o
dia
01
/
07
/
2021
as
12
:
30
:
00
--
}}
<
a
class
=
"btn btn-success"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModal"
style
=
"width:100%; height:50px; padding-top:7px; font-size:20px; color:#fff"
><
img
src
=
"
{
{asset('img/icons/icon_enviar_proposta.png')}
}
"
class
=
"card-img-top"
alt
=
"..."
style
=
"width:30px; margin-right:5px"
>
Submeter
proposta
</
a
>
...
...
@@ -286,7 +286,7 @@
<!
--
{{
--
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
...
...
@@ -314,7 +314,7 @@
</
div
>
-->
--
}}
@
endsection
...
...
This diff is collapsed.
Click to expand it.
resources/views/planosTrabalho/listar.blade.php
View file @
47f37073
...
...
@@ -24,7 +24,7 @@
<
th
scope
=
"col"
style
=
"width:200px; text-align: center;"
>
Relatório
Final
</
th
>
</
tr
>
</
thead
>
@
foreach
(
$arquivos
as
$arquivo
)
<
tbody
>
...
...
@@ -34,36 +34,49 @@
@if((Auth::user()->proponentes != null) && (
$arquivo->relatorioParcial
== null) &&
(
$arquivo->trabalho
->evento->dt_inicioRelatorioParcial <=
$hoje
) && (
$hoje
<=
$arquivo->trabalho
->evento->dt_fimRelatorioParcial))
<!-- Button trigger modal -->
<button type="
button
" class="
btn
btn
-
primary
" data-toggle="
modal
" data-target="
#modalRelatorioParcial{{ $arquivo->id }}">
@
if
(
$arquivo
->
arquivado
)
Arquivado
@
else
Enviar
@
endif
</
button
>
@if(
$arquivo->arquivado
)
<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
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Enviar
</
button
>
@
endif
@
else
<!--
Button
trigger
modal
-->
@
if
(
$arquivo
->
relatorioParcial
!=
null
)
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Visualizar
</
button
>
@
elseif
(
$arquivo
->
arquivado
)
<
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
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioParcial{{
$arquivo->id
}}"
>
Pendente
</
button
>
@
endif
@
endif
</
td
>
<
td
style
=
"text-align: center;"
>
@
if
((
Auth
::
user
()
->
proponentes
!=
null
)
&&
(
$arquivo
->
relatorioFinal
==
null
)
&&
(
$arquivo
->
trabalho
->
evento
->
dt_inicioRelatorioFinal
<=
$hoje
)
&&
(
$hoje
<=
$arquivo
->
trabalho
->
evento
->
dt_fimRelatorioFinal
))
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
@
if
(
$arquivo
->
arquivado
)
Arquivado
@
else
Enviar
@
endif
</
button
>
@
if
(
$arquivo
->
arquivado
)
<
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
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorioFinal{{
$arquivo->id
}}"
>
Enviar
</
button
>
@
endif
@
else
<!--
Button
trigger
modal
-->
@
if
(
$arquivo
->
relatorio
Parci
al
!=
null
)
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#modalRelatorio
Parci
al{{
$arquivo->id
}}"
>
Visualizar
</
button
>
@
if
(
$arquivo
->
relatorio
Fin
al
!=
null
)
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
d
data
-
target
=
"#modalRelatorio
Fin
al{{
$arquivo->id
}}"
>
Visualizar
</
button
>
@
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
<
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
</
td
>
...
...
@@ -125,7 +138,7 @@
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
@
if
((
Auth
::
user
()
->
proponentes
!=
null
)
&&
(
$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
</
div
>
...
...
This diff is collapsed.
Click to expand it.
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