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
2640f5df
Unverified
Commit
2640f5df
authored
Apr 26, 2023
by
Yuri Resende
Committed by
GitHub
Apr 26, 2023
Browse files
Merge pull request #766 from JoseDanielF/master
Seeders para avaliação de apresentação e relatório pelo avaliador4
parents
31b91418
4ae22439
Changes
10
Hide whitespace changes
Inline
Side-by-side
database/seeders/ArquivoSeeder.php
0 → 100644
View file @
2640f5df
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
ArquivoSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'arquivos'
)
->
insert
([
'nome'
=>
'arquivo teste'
,
'created_at'
=>
'2023-04-24'
,
'updated_at'
=>
'2023-04-24'
,
'titulo'
=>
'titulo teste'
,
'versao'
=>
1
,
'versaoFinal'
=>
true
,
'data'
=>
'2023-04-24'
,
'participanteId'
=>
1
,
'trabalhoId'
=>
1
,
'relatorioParcial'
=>
'relatorioParcial.pdf'
,
'proponenteId'
=>
1
,
]);
DB
::
table
(
'arquivos'
)
->
insert
([
'nome'
=>
'arquivo teste'
,
'created_at'
=>
'2023-04-24'
,
'updated_at'
=>
'2023-04-24'
,
'titulo'
=>
'titulo teste'
,
'versao'
=>
1
,
'versaoFinal'
=>
true
,
'data'
=>
'2023-04-24'
,
'participanteId'
=>
1
,
'trabalhoId'
=>
2
,
'relatorioParcial'
=>
'relatorioParcial.pdf'
,
'proponenteId'
=>
1
,
]);
}
}
\ No newline at end of file
database/seeders/AvaliacaoRelatorioSeeder.php
0 → 100644
View file @
2640f5df
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
AvaliacaoRelatorioSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'avaliacao_relatorios'
)
->
insert
([
'user_id'
=>
13
,
'arquivo_id'
=>
1
,
'tipo'
=>
'Parcial'
,
]);
DB
::
table
(
'avaliacao_relatorios'
)
->
insert
([
'user_id'
=>
13
,
'arquivo_id'
=>
2
,
'tipo'
=>
'Final'
,
]);
}
}
\ No newline at end of file
database/seeders/AvaliacaoTrabalhosSeeder.php
0 → 100644
View file @
2640f5df
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
AvaliacaoTrabalhosSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'avaliacao_trabalhos'
)
->
insert
([
'avaliador_id'
=>
4
,
'trabalho_id'
=>
1
,
'campo_avaliacao_id'
=>
1
,
'nota'
=>
9
,
]);
DB
::
table
(
'avaliacao_trabalhos'
)
->
insert
([
'avaliador_id'
=>
4
,
'trabalho_id'
=>
2
,
'campo_avaliacao_id'
=>
1
,
'nota'
=>
9
,
]);
}
}
\ No newline at end of file
database/seeders/AvaliadorEventoSeeder.php
0 → 100644
View file @
2640f5df
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
AvaliadorEventoSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'avaliador_evento'
)
->
insert
([
'avaliador_id'
=>
4
,
'evento_id'
=>
1
,
'convite'
=>
true
,
]);
}
}
\ No newline at end of file
database/seeders/AvaliadorTrabalhoSeeder.php
0 → 100644
View file @
2640f5df
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
AvaliadorTrabalhoSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'avaliador_trabalho'
)
->
insert
([
'avaliador_id'
=>
4
,
'trabalho_id'
=>
1
,
'acesso'
=>
3
,
'pontuacao'
=>
9
,
'recomendacao'
=>
'recomendacao teste'
,
'status'
=>
true
,
'parecer'
=>
'parecer teste'
,
]);
DB
::
table
(
'avaliador_trabalho'
)
->
insert
([
'avaliador_id'
=>
4
,
'trabalho_id'
=>
2
,
'acesso'
=>
3
,
'pontuacao'
=>
9
,
'recomendacao'
=>
'recomendacao teste'
,
'status'
=>
true
,
'parecer'
=>
'parecer teste'
,
]);
}
}
\ No newline at end of file
database/seeders/CampoAvaliacaoSeeder.php
0 → 100644
View file @
2640f5df
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
CampoAvaliacaoSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'campo_avaliacaos'
)
->
insert
([
'nome'
=>
'campo teste'
,
'descricao'
=>
'descricao teste'
,
'evento_id'
=>
1
,
'nota_maxima'
=>
10
,
'prioridade'
=>
1
,
]);
}
}
\ No newline at end of file
database/seeders/DatabaseSeeder.php
View file @
2640f5df
...
@@ -29,6 +29,12 @@ class DatabaseSeeder extends Seeder
...
@@ -29,6 +29,12 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
CursoSeeder
::
class
);
$this
->
call
(
CursoSeeder
::
class
);
$this
->
call
(
EventoSeeder
::
class
);
$this
->
call
(
EventoSeeder
::
class
);
$this
->
call
(
TrabalhoSeeder
::
class
);
$this
->
call
(
TrabalhoSeeder
::
class
);
$this
->
call
(
ArquivoSeeder
::
class
);
$this
->
call
(
AvaliadorTrabalhoSeeder
::
class
);
$this
->
call
(
AvaliadorEventoSeeder
::
class
);
$this
->
call
(
CampoAvaliacaoSeeder
::
class
);
$this
->
call
(
AvaliacaoTrabalhosSeeder
::
class
);
$this
->
call
(
AvaliacaoRelatorioSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
// $this->call(UsersTableSeeder::class);
...
...
database/seeders/EventoSeeder.php
View file @
2640f5df
...
@@ -19,7 +19,7 @@ class EventoSeeder extends Seeder
...
@@ -19,7 +19,7 @@ class EventoSeeder extends Seeder
'nome'
=>
'Evento 1'
,
'nome'
=>
'Evento 1'
,
'descricao'
=>
'Descrição do evento 1'
,
'descricao'
=>
'Descrição do evento 1'
,
'tipo'
=>
'PIBIC'
,
'tipo'
=>
'PIBIC'
,
'natureza_id'
=>
3
,
'natureza_id'
=>
2
,
'inicioSubmissao'
=>
'2023-04-24'
,
'inicioSubmissao'
=>
'2023-04-24'
,
'fimSubmissao'
=>
'2023-04-24'
,
'fimSubmissao'
=>
'2023-04-24'
,
'inicioRevisao'
=>
'2023-04-24'
,
'inicioRevisao'
=>
'2023-04-24'
,
...
@@ -43,7 +43,6 @@ class EventoSeeder extends Seeder
...
@@ -43,7 +43,6 @@ class EventoSeeder extends Seeder
'fimProjeto'
=>
'2023-05-01'
,
'fimProjeto'
=>
'2023-05-01'
,
'obrigatoriedade_docExtra'
=>
false
,
'obrigatoriedade_docExtra'
=>
false
,
'tipoAvaliacao'
=>
'form'
,
'tipoAvaliacao'
=>
'form'
,
'formAvaliacaoExterno'
=>
'formAvaliacao.pdf'
,
]);
]);
}
}
}
}
\ No newline at end of file
database/seeders/TrabalhoSeeder.php
View file @
2640f5df
...
@@ -34,7 +34,7 @@ class TrabalhoSeeder extends Seeder
...
@@ -34,7 +34,7 @@ class TrabalhoSeeder extends Seeder
'linkGrupoPesquisa'
=>
'link'
,
'linkGrupoPesquisa'
=>
'link'
,
'linkLattesEstudante'
=>
'link'
,
'linkLattesEstudante'
=>
'link'
,
'pontuacaoPlanilha'
=>
'link'
,
'pontuacaoPlanilha'
=>
'link'
,
'status'
=>
'
submeti
do'
,
'status'
=>
'
aprova
do'
,
'data'
=>
'2023-04-24'
,
'data'
=>
'2023-04-24'
,
'anexoProjeto'
=>
'Álgebra'
,
'anexoProjeto'
=>
'Álgebra'
,
'anexoDecisaoCONSU'
=>
'Álgebra'
,
'anexoDecisaoCONSU'
=>
'Álgebra'
,
...
@@ -48,6 +48,8 @@ class TrabalhoSeeder extends Seeder
...
@@ -48,6 +48,8 @@ class TrabalhoSeeder extends Seeder
'coordenador_id'
=>
1
,
'coordenador_id'
=>
1
,
'proponente_id'
=>
1
,
'proponente_id'
=>
1
,
'created_at'
=>
'2023-04-24'
,
'created_at'
=>
'2023-04-24'
,
'aprovado'
=>
'1'
,
'area_tematica_id'
=>
1
,
'updated_at'
=>
'2023-04-24'
,
'updated_at'
=>
'2023-04-24'
,
]);
]);
...
@@ -56,8 +58,9 @@ class TrabalhoSeeder extends Seeder
...
@@ -56,8 +58,9 @@ class TrabalhoSeeder extends Seeder
'linkGrupoPesquisa'
=>
'link'
,
'linkGrupoPesquisa'
=>
'link'
,
'linkLattesEstudante'
=>
'link'
,
'linkLattesEstudante'
=>
'link'
,
'pontuacaoPlanilha'
=>
'link'
,
'pontuacaoPlanilha'
=>
'link'
,
'status'
=>
'
submeti
do'
,
'status'
=>
'
aprova
do'
,
'data'
=>
'2020-01-01'
,
'data'
=>
'2020-01-01'
,
'area_tematica_id'
=>
1
,
'anexoProjeto'
=>
'Álgebra'
,
'anexoProjeto'
=>
'Álgebra'
,
'anexoDecisaoCONSU'
=>
'Álgebra'
,
'anexoDecisaoCONSU'
=>
'Álgebra'
,
'anexoPlanilhaPontuacao'
=>
'Álgebra'
,
'anexoPlanilhaPontuacao'
=>
'Álgebra'
,
...
...
resources/views/avaliacaoRelatorio/index.blade.php
View file @
2640f5df
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
tipo
}}
</
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$avaliacao
->
tipo
}}
</
td
>
<
td
>
<
td
>
<
div
class
=
"row-md-2 justify-content-center"
>
<
div
class
=
"row-md-2 justify-content-center"
>
<
a
type
=
"button"
class
=
"btn-sm btn-primary"
href
=
"{{route('planos.avaliacoesUserRelatorio', ['id'=>
$avaliacao->id
])}}"
>
<
a
type
=
"button"
class
=
"btn-sm btn-
{{
$avaliacao->nota
? 'success' : '
primary
' }}
"
href
=
"{{
route('planos.avaliacoesUserRelatorio', ['id'=>
$avaliacao->id
])
}}"
>
@
if
(
$avaliacao
->
nota
==
null
)
@
if
(
$avaliacao
->
nota
==
null
)
Avaliar
Relatório
Avaliar
Relatório
@
else
@
else
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
@
endif
@
endif
</
a
>
</
a
>
<
a
type
=
"button"
class
=
"btn-sm btn-primary"
href
=
"{{route('planos.avaliacoesUserApresentacao', ['id'=>
$avaliacao->id
])}}"
>
<
a
type
=
"button"
class
=
"btn-sm btn-
{{
$avaliacao->nota_apresentacao
? 'success' : '
primary
' }}
"
href
=
"{{route('planos.avaliacoesUserApresentacao', ['id'=>
$avaliacao->id
])}}"
>
@
if
(
$avaliacao
->
nota_apresentacao
==
null
)
@
if
(
$avaliacao
->
nota_apresentacao
==
null
)
Avaliar
Apresentação
Avaliar
Apresentação
@
else
@
else
...
...
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