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