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
33614eb8
Unverified
Commit
33614eb8
authored
4 years ago
by
Gabriel Antônio da Silva
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #42 from lmts-ufape/carlos
Carlos
parents
658a22f6
460a5a02
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
database/seeds/AvaliadorSeeder.php
+17
-17
database/seeds/AvaliadorSeeder.php
database/seeds/DatabaseSeeder.php
+2
-1
database/seeds/DatabaseSeeder.php
database/seeds/ProponenteSeeder.php
+15
-23
database/seeds/ProponenteSeeder.php
public/img/icons/confirm.png
+0
-0
public/img/icons/confirm.png
public/img/icons/recuse.png
+0
-0
public/img/icons/recuse.png
resources/views/avaliador/editais.blade.php
+2
-2
resources/views/avaliador/editais.blade.php
resources/views/evento/submeterTrabalho.blade.php
+5
-1
resources/views/evento/submeterTrabalho.blade.php
resources/views/evento/visualizarEvento.blade.php
+12
-1
resources/views/evento/visualizarEvento.blade.php
resources/views/projeto/editar.blade.php
+5
-1
resources/views/projeto/editar.blade.php
resources/views/projeto/index.blade.php
+4
-4
resources/views/projeto/index.blade.php
resources/views/projeto/visualizar.blade.php
+5
-0
resources/views/projeto/visualizar.blade.php
with
67 additions
and
50 deletions
+67
-50
database/seeds/AvaliadorSeeder.php
View file @
33614eb8
...
...
@@ -19,17 +19,17 @@ class AvaliadorSeeder extends Seeder
'area_id'
=>
1
,
]);
$aval
=
App\Avaliador
::
find
(
1
);
$evento
=
App\Evento
::
find
(
1
);
$trabalho
=
App\Trabalho
::
find
(
1
);
$trabalho2
=
App\Trabalho
::
find
(
2
);
//
$aval = App\Avaliador::find(1);
//
$evento = App\Evento::find(1);
//
$trabalho = App\Trabalho::find(1);
//
$trabalho2 = App\Trabalho::find(2);
$aval
->
eventos
()
->
attach
(
$evento
);
$aval
->
trabalhos
()
->
attach
(
$trabalho
);
$aval
->
trabalhos
()
->
attach
(
$trabalho2
);
$aval
->
trabalhos
->
first
()
->
pivot
->
status
=
1
;
//
$aval->eventos()->attach($evento);
//
$aval->trabalhos()->attach($trabalho);
//
$aval->trabalhos()->attach($trabalho2);
//
$aval->trabalhos->first()->pivot->status = 1;
$aval
->
save
();
//
$aval->save();
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Avaliador2'
)
->
pluck
(
'id'
);
...
...
@@ -38,16 +38,16 @@ class AvaliadorSeeder extends Seeder
'user_id'
=>
$user_id
[
0
],
'area_id'
=>
1
,
]);
$aval
=
App\Avaliador
::
find
(
2
);
$evento
=
App\Evento
::
find
(
1
);
$trabalho
=
App\Trabalho
::
find
(
1
);
$aval
->
trabalhos
()
->
attach
(
$trabalho
);
$aval
->
trabalhos
->
first
()
->
pivot
->
status
=
1
;
//
$aval = App\Avaliador::find(2);
//
$evento = App\Evento::find(1);
//
$trabalho = App\Trabalho::find(1);
//
$aval->trabalhos()->attach($trabalho);
//
$aval->trabalhos->first()->pivot->status = 1;
$aval
->
eventos
()
->
attach
(
$evento
);
$aval
->
save
();
//
$aval->eventos()->attach($evento);
//
$aval->save();
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Avaliador3'
)
->
pluck
(
'id'
);
//
$user_id = DB::table('users')->where('name','Avaliador3')->pluck('id');
DB
::
table
(
'avaliadors'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
...
...
This diff is collapsed.
Click to expand it.
database/seeds/DatabaseSeeder.php
View file @
33614eb8
...
...
@@ -21,9 +21,10 @@ class DatabaseSeeder extends Seeder
$this
->
call
(
SubAreaSeeder
::
class
);
$this
->
call
(
FuncaoParticipanteSeeder
::
class
);
$this
->
call
(
CoordenadorComissaoSeeder
::
class
);
//$this->call(ParticipanteSeeder::class);
//
$this->call(ParticipanteSeeder::class);
$this
->
call
(
NaturezaSeeder
::
class
);
$this
->
call
(
RecomendacaoSeeder
::
class
);
$this
->
call
(
AvaliadorSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
...
...
This diff is collapsed.
Click to expand it.
database/seeds/ProponenteSeeder.php
View file @
33614eb8
...
...
@@ -12,14 +12,11 @@ class ProponenteSeeder extends Seeder
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Proponente'
)
->
pluck
(
'id'
);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Proponente'
)
->
select
(
'id'
);
DB
::
table
(
'proponentes'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
//'CPF' => '123123123',
'user_id'
=>
'4'
,
'SIAPE'
=>
'123123123'
,
//'email' => '123123123',
//'email' => '123123123',
'cargo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'titulacaoMaxima'
=>
'Mestrado'
,
...
...
@@ -28,27 +25,22 @@ class ProponenteSeeder extends Seeder
'bolsistaProdutividade'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'linkLattes'
=>
'http://lattes.cnpq.br/8363536830656923'
,
'created_at'
=>
'2020-01-01 00:00:00'
]);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Gabriel'
)
->
pluck
(
'id'
);
//
$user_id = DB::table('users')->where('name','Gabriel')->pluck('id');
DB
::
table
(
'proponentes'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
//'CPF' => '123123123',
'SIAPE'
=>
'123123123'
,
//'email' => '123123123',
//'email' => '123123123',
'cargo'
=>
'123123123'
,
'vinculo'
=>
'123123123'
,
'titulacaoMaxima'
=>
'Mestrado'
,
'anoTitulacao'
=>
'123123123'
,
'areaFormacao'
=>
'123123123'
,
'bolsistaProdutividade'
=>
'123123123'
,
'nivel'
=>
'123123123'
,
'linkLattes'
=>
'http://lattes.cnpq.br/8363536830656923'
,
'created_at'
=>
'2020-01-01 00:00:00'
// DB::table('proponentes')->insert([
// 'user_id' => '1',
// 'SIAPE' => '123123123',
// 'cargo' => '123123123',
// 'vinculo' => '123123123',
// 'titulacaoMaxima' => 'Mestrado',
// 'anoTitulacao' => '123123123',
// 'areaFormacao' => '123123123',
// 'bolsistaProdutividade' => '123123123',
// 'nivel' => '123123123',
// 'linkLattes' => 'http://lattes.cnpq.br/8363536830656923',
]);
//
]);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
public/img/icons/confirm.png
0 → 100644
View file @
33614eb8
23.2 KB
This diff is collapsed.
Click to expand it.
public/img/icons/recuse.png
0 → 100755
View file @
33614eb8
3.89 KB
This diff is collapsed.
Click to expand it.
resources/views/avaliador/editais.blade.php
View file @
33614eb8
...
...
@@ -46,11 +46,11 @@
</
button
>
@
elseif
(
is_null
(
Auth
::
user
()
->
avaliadors
->
eventos
->
where
(
'id'
,
$evento
->
id
)
->
first
()
->
pivot
->
convite
)
)
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>true]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/
eye-regular.sv
g')}
}
"
class
=
"icon-card"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/
confirm.pn
g')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
Aceitar
Convite
</
a
>
<
a
href
=
"{{ route('avaliador.conviteResposta', ['evento_id' =>
$evento->id
, 'resposta'=>false]) }}"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/
eye-regular.sv
g')}
}
"
class
=
"icon-card"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/
recuse.pn
g')}
}
"
class
=
"icon-card"
alt
=
""
style
=
"width: 20px; height: auto"
>
Recusar
Convite
</
a
>
@
endif
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/submeterTrabalho.blade.php
View file @
33614eb8
...
...
@@ -414,7 +414,11 @@
</
button
>
</
div
>
</
div
>
<
a
href
=
"
{
{route('evento.visualizar',['id'=>$edital->id])}
}
"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
@
if
(
Auth
()
->
user
()
->
administradors
!=
null
)
<
a
href
=
"{{ route('admin.editais') }}"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
@
else
<
a
href
=
"{{ route('projetos.edital', ['id' =>
$edital->id
]) }}"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
@
endif
</
form
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/visualizarEvento.blade.php
View file @
33614eb8
...
...
@@ -263,7 +263,18 @@
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('home') }}"
style
=
"width:100%"
>
Voltar
</
a
>
@
if
(
Auth
::
check
())
@
if
(
Auth
()
->
user
()
->
administradors
!=
null
)
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('admin.editais') }}"
style
=
"width:100%"
>
Voltar
</
a
>
@
elseif
(
Auth
()
->
user
()
->
proponentes
!=
null
)
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('proponente.editais') }}"
style
=
"width:100%"
>
Voltar
</
a
>
@
else
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('participante.editais') }}"
style
=
"width:100%"
>
Voltar
</
a
>
@
endif
@
else
<
a
class
=
"btn btn-secondary botao-form"
href
=
"{{ route('home-user') }}"
style
=
"width:100%"
>
Voltar
</
a
>
@
endif
</
div
>
@
if
(
$evento
->
inicioSubmissao
<=
$mytime
)
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/editar.blade.php
View file @
33614eb8
...
...
@@ -393,7 +393,11 @@
</
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-6"
>
<
a
href
=
"
{
{route('evento.visualizar',['id'=>$edital->id])}
}
"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
@
if
(
Auth
()
->
user
()
->
administradors
!=
null
)
<
a
href
=
"{{ route('admin.editais') }}"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
@
else
<
a
href
=
"{{ route('projetos.edital', ['id' =>
$edital->id
]) }}"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
@
endif
</
div
>
<
div
class
=
"col-md-6"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"width:100%"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/index.blade.php
View file @
33614eb8
...
...
@@ -21,16 +21,16 @@
@
endif
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-
10
"
>
<
div
class
=
"col-sm-
9
"
>
<
h3
>
Projetos
do
edital
{{
$edital
->
nome
}}
</
h3
>
<
h6
style
=
"color: rgb(4, 78, 4);"
>
Submissão
irá
até
o
dia
{{
date
(
'd-m-Y'
,
strtotime
(
$edital
->
fimSubmissao
))
}}
</
h6
>
</
div
>
<
div
class
=
"col-sm-
2
"
>
<
div
class
=
"col-sm-
3
"
>
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
style
=
"position:relative; float: right;"
>
Criar
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
style
=
"position:relative; float: right;"
>
Criar
projeto
</
a
>
@
endif
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/visualizar.blade.php
View file @
33614eb8
...
...
@@ -193,6 +193,11 @@
</p>
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
md
-
12
">
@if (Auth()->user()->administradors != null)
<a href="
{{
route
(
'admin.editais'
)
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Voltar</a>
@else
<a href="
{{
route
(
'projetos.edital'
,
[
'id'
=>
$edital
->
id
])
}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Voltar</a>
@endif
<a href="
{{
route
(
'participante.edital'
,[
'id'
=>
$edital
->
id
])}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Voltar</a>
</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