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
11389098
Commit
11389098
authored
Jun 09, 2020
by
Gabriel-31415
Browse files
ajustes
parent
aff1a02b
Changes
9
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliadorController.php
View file @
11389098
...
...
@@ -60,11 +60,12 @@ class AvaliadorController extends Controller
$trabalhos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
trabalhos
->
where
(
'evento_id'
,
$request
->
evento_id
);
$avaliador
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
();
$trabalho
=
$avaliador
->
trabalhos
->
find
(
$request
->
trabalho_id
);
$trabalho
->
status
=
'Avaliado'
;
$trabalho
->
save
();
$data
=
Carbon
::
now
(
'America/Recife'
);
if
(
$request
->
anexoParecer
==
''
){
$avaliador
->
trabalhos
()
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'recomendacao'
=>
$request
->
recomendacao
,
'created_at'
=>
$data
]);
}
else
{
$anexoParecer
=
$request
->
anexoParecer
;
...
...
@@ -73,8 +74,7 @@ class AvaliadorController extends Controller
Storage
::
putFileAs
(
$path
,
$anexoParecer
,
$nome
);
$anexoParecer
=
$path
.
$nome
;
$avaliador
->
trabalhos
()
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'AnexoParecer'
=>
$anexoParecer
,
'recomendacao'
=>
$request
->
recomendacao
,
'created_at'
=>
$data
]);
}
...
...
app/Http/Controllers/TrabalhoController.php
View file @
11389098
...
...
@@ -124,6 +124,7 @@ class TrabalhoController extends Controller
'data'
=>
$mytime
,
'evento_id'
=>
$request
->
editalId
,
'avaliado'
=>
0
,
'status'
=>
'Submetido'
,
'proponente_id'
=>
$proponente
->
id
,
//Anexos
'anexoCONSU'
=>
$request
->
anexoCONSU
,
...
...
@@ -167,6 +168,7 @@ class TrabalhoController extends Controller
'data'
=>
$mytime
,
'evento_id'
=>
$request
->
editalId
,
'avaliado'
=>
0
,
'status'
=>
'Submetido'
,
'proponente_id'
=>
$proponente
->
id
,
//Anexos
'anexoProjeto'
=>
$request
->
anexoProjeto
,
...
...
app/Trabalho.php
View file @
11389098
...
...
@@ -15,6 +15,7 @@ class Trabalho extends Model
'titulo'
,
'data'
,
'aprovado'
,
'status'
,
'decisaoCONSU'
,
'pontuacaoPlanilha'
,
'linkGrupoPesquisa'
,
...
...
database/migrations/2020_02_05_123048_create_trabalhos_table.php
View file @
11389098
...
...
@@ -16,7 +16,8 @@ class CreateTrabalhosTable extends Migration
Schema
::
create
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'titulo'
);
$table
->
boolean
(
'aprovado'
)
->
nullable
();
$table
->
string
(
'status'
)
->
nullable
();
$table
->
string
(
'aprovado'
)
->
nullable
();
$table
->
string
(
'linkGrupoPesquisa'
);
$table
->
string
(
'linkLattesEstudante'
);
$table
->
string
(
'pontuacaoPlanilha'
);
...
...
database/seeds/RecomendacaoSeeder.php
View file @
11389098
...
...
@@ -12,13 +12,19 @@ class RecomendacaoSeeder extends Seeder
public
function
run
()
{
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'
Aceitaca
o Forte'
,
'nome'
=>
'
Recomendaçã
o Forte'
,
]);
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'
Aceitacao Médi
a'
,
'nome'
=>
'
Recomendação Frac
a'
,
]);
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'Aceitacao Fraca'
,
'nome'
=>
'Neutro'
,
]);
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'Rejeição Fraca'
,
]);
DB
::
table
(
'recomendacaos'
)
->
insert
([
'nome'
=>
'Rejeição Forte'
,
]);
}
}
database/seeds/TrabalhoSeeder.php
View file @
11389098
...
...
@@ -34,7 +34,7 @@ class TrabalhoSeeder extends Seeder
'linkGrupoPesquisa'
=>
'link'
,
'linkLattesEstudante'
=>
'link'
,
'pontuacaoPlanilha'
=>
'link'
,
'
aprovado'
=>
0
,
'
status'
=>
'Submetido'
,
'data'
=>
'2020-01-01'
,
'anexoProjeto'
=>
'Álgebra'
,
'anexoDecisaoCONSU'
=>
'Álgebra'
,
...
...
@@ -55,7 +55,7 @@ class TrabalhoSeeder extends Seeder
'linkGrupoPesquisa'
=>
'link'
,
'linkLattesEstudante'
=>
'link'
,
'pontuacaoPlanilha'
=>
'link'
,
'
aprovado'
=>
0
,
'
status'
=>
'Submetido'
,
'data'
=>
'2020-01-01'
,
'anexoProjeto'
=>
'Álgebra'
,
'anexoDecisaoCONSU'
=>
'Álgebra'
,
...
...
resources/views/administrador/projetos.blade.php
View file @
11389098
...
...
@@ -10,9 +10,9 @@
<
h3
>
Trabalhos
do
Edital
:
{{
$evento
->
nome
}}
</
h3
>
{{
--
<
h6
>
Data
inicioSubmissao
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))
}}
</
h6
>
--
}}
<
h6
>
Data
fim
da
submissao
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))
}}
</
h6
>
{{
--
<
h6
>
Data
inicioRevisao
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))
}}
</
h6
>
<
h6
>
Data
fimRevisao
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))
}}
</
h6
>
<
h6
>
Data
resultado
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
resultado
))
}}
</
h6
>
--
}}
{{
--
<
h6
>
Data
inicioRevisao
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))
}}
</
h6
>
<
h6
>
Data
fimRevisao
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))
}}
</
h6
>
--
}}
<
h6
>
Data
do
resultado
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
resultado
))
}}
</
h6
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
11389098
...
...
@@ -16,7 +16,7 @@
{{
--
Nome
do
Projeto
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeProjeto"
class
=
"col-form-label"
>
{{
__
(
'Nome do Projeto:'
)
}}
</
label
>
<
label
for
=
"nomeProjeto"
class
=
"col-form-label"
>
{{
__
(
'Nome do Projeto
*
:'
)
}}
</
label
>
<
input
id
=
"nomeProjeto"
type
=
"text"
class
=
"form-control @error('nomeProjeto') is-invalid @enderror"
name
=
"nomeProjeto"
value
=
"{{ old('nomeProjeto') }}"
required
autocomplete
=
"nomeProjeto"
autofocus
>
@
error
(
'nomeProjeto'
)
...
...
@@ -30,7 +30,7 @@
{{
--
Grande
Area
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área:'
)
}}
</
label
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área
*
:'
)
}}
</
label
>
<
select
class
=
"form-control @error('grandeArea') is-invalid @enderror"
id
=
"grandeArea"
name
=
"grandeArea"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
...
...
@@ -45,7 +45,7 @@
@enderror
</div>
<div class="
col
-
sm
-
4
">
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área:') }}</label>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área
*
:') }}</label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
area
">
<option value="" disabled selected hidden>-- Área --</option>
@foreach(
$areas
as
$area
)
...
...
@@ -60,7 +60,7 @@
@enderror
</div>
<div class="
col
-
sm
-
4
">
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área:') }}</label>
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área
*
:') }}</label>
<select class="
form
-
control
@
error
(
'subArea'
)
is
-
invalid
@
enderror
" id="
subArea
" name="
subArea
">
<option value="" disabled selected hidden>-- Sub Área --</option>
@foreach(
$subAreas
as
$subArea
)
...
...
@@ -95,7 +95,7 @@
<input class="
form
-
control
" type="
text
" id="
nomeCoordenador
" name="
nomeCoordenador
" disabled="
disabled
" value="
{{
Auth
()
->
user
()
->
name
}}
">
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">Link Lattes do Proponente</label>
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">Link Lattes do Proponente
*
</label>
<input class="
form
-
control
@
error
(
'linkLattesEstudante'
)
is
-
invalid
@
enderror
" type="
text
" name="
linkLattesEstudante
"
@if(Auth()->user()->proponentes->linkLattes != null)
value="
{{
Auth
()
->
user
()
->
proponentes
->
linkLattes
}}
"
...
...
@@ -110,7 +110,7 @@
@enderror
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Pontuação da Planilha de Pontuação
:') }}</label>
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Pontuação da Planilha de Pontuação
*
:') }}</label>
<input class="
form
-
control
@
error
(
'pontuacaoPlanilha'
)
is
-
invalid
@
enderror
" type="
text
" name="
pontuacaoPlanilha
">
@error('pontuacaoPlanilha')
...
...
@@ -120,7 +120,7 @@
@enderror
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Link do grupo de pesquisa:') }}</label>
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Link do grupo de pesquisa
*
:') }}</label>
<input class="
form
-
control
@
error
(
'linkGrupo'
)
is
-
invalid
@
enderror
" type="
text
" name="
linkGrupo
">
@error('linkGrupo')
...
...
@@ -139,7 +139,7 @@
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
6
">
<label for="
anexoProjeto
" class="
col
-
form
-
label
">{{ __('Anexo Projeto:') }}</label>
<label for="
anexoProjeto
" class="
col
-
form
-
label
">{{ __('Anexo Projeto
*
:') }}</label>
<div class="
input
-
group
">
...
...
@@ -156,7 +156,7 @@
</div>
<div class="
col
-
sm
-
6
">
<label for="
anexoLatterCoordenador
" class="
col
-
form
-
label
">{{ __('Anexo do Lattes do Coordenador:') }}</label>
<label for="
anexoLatterCoordenador
" class="
col
-
form
-
label
">{{ __('Anexo do Lattes do Coordenador
*
:') }}</label>
<div class="
input
-
group
">
...
...
@@ -177,7 +177,7 @@
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Possui autorização do Comitê de Ética:') }}</label>
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Possui autorização do Comitê de Ética
*
:') }}</label>
<button id="
buttonSim
" class="
btn
btn
-
primary
mt
-
2
mb
-
2
">Sim</button>
<button id="
buttonNao
" class="
btn
btn
-
primary
mt
-
2
mb
-
2
">Não</button>
<div class="
input
-
group
">
...
...
@@ -196,7 +196,7 @@
</div>
<div class="
col
-
sm
-
6
mt
-
3
">
<label for="
anexoPlanilha
" class="
col
-
form
-
label
">{{ __('Anexo do Planilha de Pontuação
:') }}</label>
<label for="
anexoPlanilha
" class="
col
-
form
-
label
">{{ __('Anexo do Planilha de Pontuação
*
:') }}</label>
<div class="
input
-
group
">
...
...
@@ -213,7 +213,7 @@
</div>
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Justificativa:') }}</label>
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Justificativa
*
:') }}</label>
<div class="
input
-
group
">
...
...
@@ -233,7 +233,7 @@
@if(
$edital->tipo
== 'PIBIC' ||
$edital->tipo
== 'PIBIC-EM')
{{-- Decisão do CONSU --}}
<div class="
col
-
sm
-
6
">
<label for="
anexoCONSU
" class="
col
-
form
-
label
">{{ __('Decisão do CONSU:') }}</label>
<label for="
anexoCONSU
" class="
col
-
form
-
label
">{{ __('Decisão do CONSU
*
:') }}</label>
<div class="
input
-
group
">
...
...
@@ -264,7 +264,7 @@
<h5>Dados do participante</h5>
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<label>Nome Completo
*
</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
@error('nomeParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
...
...
@@ -273,7 +273,7 @@
@enderror
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<label>E-mail
*
</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" required>
@error('emailParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
...
...
@@ -282,7 +282,7 @@
@enderror
</div>
<div class="
col
-
sm
-
3
">
<label>Função:</label>
<label>Função
*
:</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" name="
funcaoParticipante
[]
" id="
funcaoParticipante
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
...
...
@@ -303,7 +303,7 @@
<div id="
planoTrabalho
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label>Titulo </label>
<label>Titulo
*
</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" required>
@error('nomePlanoTrabalho')
...
...
@@ -314,7 +314,7 @@
</div>
{{-- Arquivo --}}
<div class="
col
-
sm
-
7
">
<label for="
nomeTrabalho
">Anexo</label>
<label for="
nomeTrabalho
">Anexo
*
</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
anexoPlanoTrabalho
">Selecione um arquivo:</span>
...
...
@@ -451,7 +451,7 @@
"<br><h5>Dados do participante</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<label>Nome Completo</label>"
+
"<label>Nome Completo
*
</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control'
+
" @error('nomeParticipante') is-invalid @enderror"
+
"name="
+
'nomeParticipante[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"@error('nomeParticipante')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
...
...
@@ -460,7 +460,7 @@
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>E-mail</label>"
+
"<label>E-mail
*
</label>"
+
"<input type='email'"
+
"style='margin-bottom:10px'"
+
"class="
+
"form-control @error('emailParticipante') is-invalid @enderror"
+
"name='emailParticipante[]'"
+
"placeholder='email' required>"
+
"@error('emailParticipante')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
...
...
@@ -469,7 +469,7 @@
"@enderror"
+
"</div>"
+
"<div class='col-sm-3'>"
+
"<label>Função:</label>"
+
"<label>Função
*
:</label>"
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
"name='funcaoParticipante[]'"
+
"id='funcaoParticipante'> "
+
"<option value='' disabled selected hidden> Função </option>"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
...
...
@@ -486,7 +486,7 @@
"<h5>Dados do plano de trabalho</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Titulo</label>"
+
"<label>Titulo
*
</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
"form-control @error('nomePlanoTrabalho') is-invalid @enderror"
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"@error('nomePlanoTrabalho')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
...
...
@@ -495,7 +495,7 @@
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-7"
+
">"
+
"<label for="
+
"nomeTrabalho"
+
">Anexo </label>"
+
"<label for="
+
"nomeTrabalho"
+
">Anexo
*
</label>"
+
"<div class="
+
"input-group"
+
">"
+
"<div class='input-group-prepend'>"
+
...
...
resources/views/projeto/index.blade.php
View file @
11389098
...
...
@@ -35,9 +35,9 @@
<
td
>
{{
$projeto
->
titulo
}}
</
td
>
@
if
(
$projeto
->
a
valiado
)
@
if
(
$projeto
->
status
==
'A
valiado
'
)
<
td
style
=
"color: rgb(6, 85, 6)"
>
Avaliado
</
td
>
@
else
@
else
if
(
$projeto
->
status
==
'Submetido'
)
<
td
style
=
"color: rgb(0, 0, 0)"
>
Submetido
</
td
>
@
endif
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
...
...
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