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
37220c29
Commit
37220c29
authored
May 22, 2020
by
Gabriel-31415
Browse files
funcionalidade submeter edital
parent
381d10f5
Changes
41
Hide whitespace changes
Inline
Side-by-side
database/migrations/2020_05_2
0_211049_create_pro_reitor
s_table.php
→
database/migrations/2020_05_2
2_031644_create_grande_area
s_table.php
View file @
37220c29
...
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
Create
ProReitor
sTable
extends
Migration
class
Create
GrandeArea
sTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,8 +13,9 @@ class CreateProReitorsTable extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'
pro_reitor
s'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'
grande_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
...
...
@@ -26,6 +27,6 @@ class CreateProReitorsTable extends Migration
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'
pro_reitor
s'
);
Schema
::
dropIfExists
(
'
grande_area
s'
);
}
}
database/migrations/2020_05_2
0_210104_create_reitor
s_table.php
→
database/migrations/2020_05_2
2_031838_create_sub_area
s_table.php
View file @
37220c29
...
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
Create
Reitor
sTable
extends
Migration
class
Create
SubArea
sTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,8 +13,9 @@ class CreateReitorsTable extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'
reitor
s'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'
sub_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
"nome"
);
$table
->
timestamps
();
});
}
...
...
@@ -26,6 +27,6 @@ class CreateReitorsTable extends Migration
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'
reitor
s'
);
Schema
::
dropIfExists
(
'
sub_area
s'
);
}
}
database/migrations/2020_05_22_032714_add_grande_areas_to_areas_table.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddGrandeAreasToAreasTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'areas'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'grande_area_id'
);
$table
->
foreign
(
'grande_area_id'
)
->
references
(
'id'
)
->
on
(
'grande_areas'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'areas'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'areas_grande_area_id_foreign'
);
$table
->
dropColumn
(
'grande_area_id'
);
});
}
}
database/migrations/2020_05_2
0_211027
_add_
user
s_to_
reitor
s_table.php
→
database/migrations/2020_05_2
2_032753
_add_
area
s_to_
sub_area
s_table.php
View file @
37220c29
...
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
Add
UsersToReitor
sTable
extends
Migration
class
Add
AreasToSubArea
sTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,9 +13,9 @@ class AddUsersToReitorsTable extends Migration
*/
public
function
up
()
{
Schema
::
table
(
'
reitor
s'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'
user
_id'
);
$table
->
foreign
(
'
user
_id'
)
->
references
(
'id'
)
->
on
(
'
user
s'
);
Schema
::
table
(
'
sub_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'
area
_id'
);
$table
->
foreign
(
'
area
_id'
)
->
references
(
'id'
)
->
on
(
'
area
s'
);
});
}
...
...
@@ -26,9 +26,9 @@ class AddUsersToReitorsTable extends Migration
*/
public
function
down
()
{
Schema
::
table
(
'
reitor
s'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'
reitors_user
_id_foreign'
);
$table
->
dropColumn
(
'
user
_id'
);
Schema
::
table
(
'
sub_area
s'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'
sub_areas_area
_id_foreign'
);
$table
->
dropColumn
(
'
area
_id'
);
});
}
}
database/migrations/2020_05_22_044450_create_funcao_participantes_table.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateFuncaoParticipantesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'funcao_participantes'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'nome'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'funcao_participantes'
);
}
}
database/migrations/2020_05_22_044629_add_users_to_funcao_participantes_table.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddUsersToFuncaoParticipantesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
unsignedBigInteger
(
'funcao_participante_id'
)
->
nullable
();;
$table
->
foreign
(
'funcao_participante_id'
)
->
references
(
'id'
)
->
on
(
'funcao_participantes'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
dropForeign
(
'users_funcao_participante_id_foreign'
);
$table
->
dropColumn
(
'funcao_participante_id'
);
});
}
}
database/seeds/AdministradorResponsavelSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
AdministradorResponsavelSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'AdministradorResponsavel'
)
->
pluck
(
'id'
);
DB
::
table
(
'administrador_responsavels'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
]);
}
}
database/seeds/AdministradorSeeder.php
View file @
37220c29
...
...
@@ -12,12 +12,11 @@ class AdministradorSeeder extends Seeder
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Administrador'
)
->
pluck
(
'id'
);
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Administrador'
)
->
pluck
(
'id'
);
DB
::
table
(
'administradors'
)
->
insert
([
'matricula'
=>
'123456789'
,
'user_id'
=>
$user_id
[
0
],
]);
}
}
database/seeds/AreaSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
AreaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Matemática'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Probabilidade e Estatística'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ciência da Computação'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Astronomia'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Física'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Química'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'GeoCiências'
,
'grande_area_id'
=>
'1'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Oceanografia'
,
'grande_area_id'
=>
'1'
]);
// Ciências Biológicas ----------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Biologia Geral'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Genética'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Botânica'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Zoologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Ecologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Morfologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Bioquímica'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Fisiologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Biofísica'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Farmacologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Imunologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Microbiologia'
,
'grande_area_id'
=>
'2'
]);
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Parasitologia'
,
'grande_area_id'
=>
'2'
]);
//Engenharias --------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Engenharia Civil'
,
'grande_area_id'
=>
'3'
]);
// Ciências da Saúde -----------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Medicina'
,
'grande_area_id'
=>
'4'
]);
//Ciências Agrárias ------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Agronomia'
,
'grande_area_id'
=>
'5'
]);
//Ciências Sociais Aplicadas ----------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Direito'
,
'grande_area_id'
=>
'6'
]);
//Ciências Humanas ----------------------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Filosofia'
,
'grande_area_id'
=>
'7'
]);
//Lingüística, Letras e Artes-----------
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
'Lingüística'
,
'grande_area_id'
=>
'8'
]);
}
}
database/seeds/DatabaseSeeder.php
View file @
37220c29
...
...
@@ -11,49 +11,56 @@ class DatabaseSeeder extends Seeder
*/
public
function
run
()
{
$this
->
call
(
UsuarioSeeder
::
class
);
$this
->
call
(
AdministradorSeeder
::
class
);
$this
->
call
(
AdministradorResponsavelSeeder
::
class
);
$this
->
call
(
GrandeAreaSeeder
::
class
);
$this
->
call
(
AreaSeeder
::
class
);
$this
->
call
(
SubAreaSeeder
::
class
);
$this
->
call
(
FuncaoParticipanteSeeder
::
class
);
// $this->call(UsersTableSeeder::class);
DB
::
table
(
'enderecos'
)
->
insert
([
// 1
'rua'
=>
'a'
,
'numero'
=>
1
,
'bairro'
=>
'b'
,
'cidade'
=>
'c'
,
'uf'
=>
'd'
,
'cep'
=>
2
,
]);
DB
::
table
(
'enderecos'
)
->
insert
([
// 1
'rua'
=>
'R. Manoel Clemente'
,
'numero'
=>
'161'
,
'bairro'
=>
'Santo Antônio'
,
'cidade'
=>
'Garanhuns'
,
'uf'
=>
'PE'
,
'cep'
=>
'55293-040'
,
]);
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'coord'
,
'email'
=>
'teste@teste'
,
'password'
=>
bcrypt
(
'12345678'
),
'cpf'
=>
123132131
,
'instituicao'
=>
'd'
,
'celular'
=>
2
,
'especProfissional'
=>
'e'
,
'enderecoId'
=>
1
,
'email_verified_at'
=>
'2020-02-15'
,
]);
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'Felipe'
,
'email'
=>
'felipeaquac@yahoo.com.br'
,
'password'
=>
bcrypt
(
'guedes80'
),
'cpf'
=>
'999.999.999-99'
,
'instituicao'
=>
'UFAPE'
,
'celular'
=>
'(99) 99999-9999'
,
'especProfissional'
=>
' '
,
'enderecoId'
=>
1
,
'email_verified_at'
=>
'2020-02-15'
,
]);
//
DB::table('enderecos')->insert([ // 1
//
'rua' => 'a',
//
'numero' => 1,
//
'bairro' => 'b',
//
'cidade' => 'c',
//
'uf' => 'd',
//
'cep' => 2,
//
]);
//
DB::table('enderecos')->insert([ // 1
//
'rua' => 'R. Manoel Clemente',
//
'numero' => '161',
//
'bairro' => 'Santo Antônio',
//
'cidade' => 'Garanhuns',
//
'uf' => 'PE',
//
'cep' => '55293-040',
//
]);
//
DB::table('users')->insert([ //
//
'name' => 'coord',
//
'email' => 'teste@teste',
//
'password' => bcrypt('12345678'),
//
'cpf' => 123132131,
//
'instituicao' => 'd',
//
'celular' => 2,
//
'especProfissional' => 'e',
//
'enderecoId' => 1,
//
'email_verified_at' => '2020-02-15',
//
]);
//
DB::table('users')->insert([ //
//
'name' => 'Felipe',
//
'email' => 'felipeaquac@yahoo.com.br',
//
'password' => bcrypt('guedes80'),
//
'cpf' => '999.999.999-99',
//
'instituicao' => 'UFAPE',
//
'celular' => '(99) 99999-9999',
//
'especProfissional' => ' ',
//
'enderecoId' => 1,
//
'email_verified_at' => '2020-02-15',
//
]);
DB
::
table
(
'eventos'
)
->
insert
([
'nome'
=>
'II CONGRESSO REGIONAL DE ZOOTECNIA'
,
...
...
@@ -65,116 +72,112 @@ Os trabalhos deverão ser submetidos na forma de resumo simples com no máximo u
'dataInicio'
=>
'2020-07-01'
,
'dataFim'
=>
'2020-07-03'
,
'inicioSubmissao'
=>
'2020-03-30'
,
'fimSubmissao'
=>
'2020-0
4
-20'
,
'fimSubmissao'
=>
'2020-0
9
-20'
,
'inicioRevisao'
=>
'2020-04-21'
,
'fimRevisao'
=>
'2020-05-21'
,
'inicioResultado'
=>
'2020-05-22'
,
'fimResultado'
=>
'2020-05-23'
,
'numMaxTrabalhos'
=>
2
,
'numMaxCoautores'
=>
5
,
// 'possuiTaxa'=>true,
// 'valorTaxa'=>10,
'enderecoId'
=>
2
,
'coordenadorId'
=>
1
,
'hasResumo'
=>
false
,
]);
$areasEventoZoo
=
[
'Produção e nutrição de ruminantes'
,
'Produção e nutrição de não-ruminantes'
,
'Reprodução e melhoramento de ruminantes'
,
'Reprodução e melhoramento de não-ruminantes'
,
'Tecnologia de produtos de origem animal'
,
'Nutrição e Criação de Animais Pet'
,
'Apicultura e Meliponicultura'
,
'Animais Silvestres'
,
'Extensão rural e Desenvolvimento Sustentável'
,
'Forragicultura'
];
for
(
$i
=
0
;
$i
<
sizeof
(
$areasEventoZoo
);
$i
++
){
DB
::
table
(
'areas'
)
->
insert
([
'nome'
=>
$areasEventoZoo
[
$i
],
'eventoId'
=>
1
,
]);
}
DB
::
table
(
'modalidades'
)
->
insert
([
'nome'
=>
'Resumo'
]);
for
(
$i
=
0
;
$i
<
sizeof
(
$areasEventoZoo
);
$i
++
){
DB
::
table
(
'area_modalidades'
)
->
insert
([
'areaId'
=>
$i
+
1
,
'modalidadeId'
=>
1
,
]);
}
for
(
$i
=
0
;
$i
<
40
;
$i
++
){
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'teste'
,
'email'
=>
'teste@teste'
.
$i
,
'password'
=>
bcrypt
(
'12345678'
),
'cpf'
=>
''
.
$i
,
'instituicao'
=>
'd'
,
'celular'
=>
2
,
'especProfissional'
=>
'e'
,
'enderecoId'
=>
1
,
]);
if
(
$i
<
20
){
DB
::
table
(
'trabalhos'
)
->
insert
([
'titulo'
=>
'trabalho'
.
$i
,
'autores'
=>
'-'
,
'data'
=>
'2020-02-15'
,
'modalidadeId'
=>
1
,
'areaId'
=>
1
,
'autorId'
=>
$i
+
2
,
'eventoId'
=>
1
,
'avaliado'
=>
'nao'
]);
}
if
(
$i
>=
20
&&
$i
<
30
){
DB
::
table
(
'trabalhos'
)
->
insert
([
'titulo'
=>
'trabalho'
.
$i
,
'autores'
=>
'-'
,
'data'
=>
'2020-02-15'
,
'modalidadeId'
=>
1
,
'areaId'
=>
2
,
'eventoId'
=>
1
,
'autorId'
=>
$i
+
2
,
'avaliado'
=>
'nao'
]);
}
if
(
$i
>=
30
){
DB
::
table
(
'trabalhos'
)
->
insert
([
'titulo'
=>
'trabalho'
.
$i
,
'autores'
=>
'-'
,
'data'
=>
'2020-02-15'
,
'modalidadeId'
=>
1
,
'areaId'
=>
3
,
'eventoId'
=>
1
,
'autorId'
=>
$i
+
2
,
'avaliado'
=>
'nao'
]);
}
}
DB
::
table
(
'users'
)
->
insert
([
//
'name'
=>
'eu'
,
'email'
=>
'asd@asd'
,
'password'
=>
bcrypt
(
'12345678'
),
'cpf'
=>
123132131
,
'instituicao'
=>
'd'
,
'celular'
=>
2
,
'especProfissional'
=>
'e'
,
'email_verified_at'
=>
'2020-02-15'
,
'enderecoId'
=>
1
,
]);
$this
->
call
(
UsuarioSeeder
::
class
);
$this
->
call
(
AdministradorSeeder
::
class
);
// $areasEventoZoo = [
// 'Produção e nutrição de ruminantes',
// 'Produção e nutrição de não-ruminantes',
// 'Reprodução e melhoramento de ruminantes',
// 'Reprodução e melhoramento de não-ruminantes',
// 'Tecnologia de produtos de origem animal',
// 'Nutrição e Criação de Animais Pet',
// 'Apicultura e Meliponicultura',
// 'Animais Silvestres',
// 'Extensão rural e Desenvolvimento Sustentável',
// 'Forragicultura'
// ];
// for($i = 0; $i < sizeof($areasEventoZoo); $i++){
// DB::table('areas')->insert([
// 'nome' => $areasEventoZoo[$i],
// 'eventoId' => 1,
// ]);
// }
// DB::table('modalidades')->insert([
// 'nome' => 'Resumo'
// ]);
// for($i = 0; $i < sizeof($areasEventoZoo); $i++){
// DB::table('area_modalidades')->insert([
// 'areaId' => $i + 1,
// 'modalidadeId' => 1,
// ]);
// }
// for($i = 0; $i < 40; $i++){
// DB::table('users')->insert([ //
// 'name' => 'teste',
// 'email' => 'teste@teste'.$i,
// 'password' => bcrypt('12345678'),
// 'cpf' => ''.$i,
// 'instituicao' => 'd',
// 'celular' => 2,
// 'especProfissional' => 'e',
// 'enderecoId' => 1,
// ]);
// if($i < 20){
// DB::table('trabalhos')->insert([
// 'titulo' => 'trabalho' . $i,
// 'autores' => '-',
// 'data' => '2020-02-15',
// 'modalidadeId' => 1,
// 'areaId' => 1,
// 'autorId' => $i+2,
// 'eventoId' => 1,
// 'avaliado' => 'nao'
// ]);
// }
// if($i >= 20 && $i < 30){
// DB::table('trabalhos')->insert([
// 'titulo' => 'trabalho' . $i,
// 'autores' => '-',
// 'data' => '2020-02-15',
// 'modalidadeId' => 1,
// 'areaId' => 2,
// 'eventoId' => 1,
// 'autorId' => $i+2,
// 'avaliado' => 'nao'
// ]);
// }
// if($i >= 30){
// DB::table('trabalhos')->insert([
// 'titulo' => 'trabalho' . $i,
// 'autores' => '-',
// 'data' => '2020-02-15',
// 'modalidadeId' => 1,
// 'areaId' => 3,
// 'eventoId' => 1,
// 'autorId' => $i+2,
// 'avaliado' => 'nao'
// ]);
// }
// }
// DB::table('users')->insert([ //
// 'name' => 'eu',
// 'email' => 'asd@asd',
// 'password' => bcrypt('12345678'),
// 'cpf' => 123132131,
// 'instituicao' => 'd',
// 'celular' => 2,
// 'especProfissional' => 'e',
// 'email_verified_at' => '2020-02-15',
// 'enderecoId' => 1,
// ]);
}
}
database/seeds/FuncaoParticipanteSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
FuncaoParticipanteSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Vice-coordenador'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Colaborador'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Consultor'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Bolsista'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Estudante'
,
]);
DB
::
table
(
'funcao_participantes'
)
->
insert
([
'nome'
=>
'Voluntário'
,
]);
}
}
database/seeds/GrandeAreaSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
GrandeAreaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Exatas e da Terra'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Biológicas'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Engenharias'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências da Saúde '
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Agrárias'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Sociais Aplicadas'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Ciências Humanas'
,
]);
DB
::
table
(
'grande_areas'
)
->
insert
([
'nome'
=>
'Lingüística, Letras e Artes'
,
]);
}
}
database/seeds/ProponenteSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
ProponenteSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
$user_id
=
DB
::
table
(
'users'
)
->
where
(
'name'
,
'Proponente'
)
->
pluck
(
'id'
);
DB
::
table
(
'proponentes'
)
->
insert
([
'user_id'
=>
$user_id
[
0
],
]);
}
}
database/seeds/SubAreaSeeder.php
0 → 100644
View file @
37220c29
<?php
use
Illuminate\Database\Seeder
;
class
SubAreaSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
//------------------ Ciências Exatas e da Terra ---------
//Matemática ------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Álgebra'
,
'area_id'
=>
'1'
]);
//------------------ Ciências Biológicas ----------------
//Genética --------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Genética Quantitativa'
,
'area_id'
=>
'2'
]);
//------------------ Engenharias ----------------
//Engenharia Civil --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Álgebra'
,
'area_id'
=>
'3'
]);
//------------------ Ciências da Saúde ----------------
//Medicina--------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Clínica Médica'
,
'area_id'
=>
'4'
]);
//------------------ Ciências Agrárias ----------------
//Agronomia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Ciência do Solo'
,
'area_id'
=>
'5'
]);
//------------------ Ciências Sociais Aplicadas ----------------
//Direito --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria do Direito'
,
'area_id'
=>
'6'
]);
//------------------ Ciências Humanas ----------------
//Filosofia --------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
' História da Filosofia'
,
'area_id'
=>
'7'
]);
//------------------ Lingüística, Letras e Artes ----------------
//Lingüística ------------------
DB
::
table
(
'sub_areas'
)
->
insert
([
'nome'
=>
'Teoria e Análise Lingüística'
,
'area_id'
=>
'8'
]);
}
}
database/seeds/UsuarioSeeder.php
View file @
37220c29
...
...
@@ -17,9 +17,27 @@ class UsuarioSeeder extends Seeder
'name'
=>
'Administrador'
,
'email'
=>
'admin@ufrpe.br'
,
'password'
=>
Hash
::
make
(
'123456'
),
'password'
=>
Hash
::
make
(
'123456
78
'
),
'tipo'
=>
'administrador'
,
'email_verified_at'
=>
'2020-01-01'
]);
DB
::
table
(
'users'
)
->
insert
([
'name'
=>
'AdministradorResponsavel'
,
'email'
=>
'adminResp@ufrpe.br'
,
'password'
=>
Hash
::
make
(
'12345678'
),
'tipo'
=>
'administradorResponsavel'
,
'email_verified_at'
=>
'2020-01-01'
]);
DB
::
table
(
'users'
)
->
insert
([
'name'
=>
'Proponente'
,
'email'
=>
'usuario@ufrpe.br'
,
'password'
=>
Hash
::
make
(
'12345678'
),
'tipo'
=>
'proponente'
,
'email_verified_at'
=>
'2020-01-01'
]);
}
}
resources/views/coordenador/home.blade.php
View file @
37220c29
...
...
@@ -8,18 +8,48 @@
<
div
class
=
"row justify-content-center titulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-
8
"
>
<
div
class
=
"col-sm-
10
"
>
<
h1
>
Eventos
</
h1
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('comissoes')}
}
"
class
=
"btn btn-primary"
>
Comissões
</
a
>
</
div
>
@
if
(
Auth
::
check
())
@
if
(
Auth
::
user
()
->
tipo
==
'administrador'
)
<!--
Carrega
component
contendo
navbar
do
administrador
-->
<
div
class
=
"col-sm-2"
>
<
a
href
=
""
class
=
"btn btn-primary"
>
Ver
Editais
</
a
>
</
div
>
{{
--
editar
/
Deletar
projetos
cadastrados
editar
/
Deletar
proponentes
ja
cadastrados
editar
/
Deletar
editais
já
cadastrados
Configurações
do
sistema
--
}}
@
endif
@
if
(
Auth
::
user
()
->
tipo
==
'administradorResponsavel'
)
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Novo
E
vento
</
a
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Novo
E
dital
</
a
>
</
div
>
{{
--
Criar
/
Editar
/
Deletar
editais
Criar
datas
e
anexar
documentos
no
sistema
Distribuir
os
projetos
com
os
avaliadores
Gerar
Resultado
--
}}
@
endif
@
if
(
Auth
::
user
()
->
tipo
==
'proponente'
)
{{
--
<
div
class
=
"col-sm-2"
>
<
a
href
=
"
{
{route('evento.criar')}
}
"
class
=
"btn btn-primary"
>
Submeter
Projeto
</
a
>
</
div
>
--
}}
{{
--
projetos
perfil
participantes
de
projeto
submeter
projetos
anexar
documentos
--
}}
@
endif
@
endif
...
...
@@ -79,17 +109,17 @@
</
div
>
</
div
>
<
p
class
=
"card-text"
>
<
strong
>
Realização
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
<
br
>
{{
--
<
strong
>
Realização
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataInicio
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
dataFim
))}}
<
br
>
<
strong
>
Submissão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
<
strong
>
Revisão
:</
strong
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
<
br
>
--
}}
</
p
>
<
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
{{
--
<
div
class
=
"col-sm-12"
>
<
img
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
style
=
"width:15px"
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
</
div
>
</
div
>
--
}}
</
div
>
</
p
>
<
p
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
37220c29
...
...
@@ -3,7 +3,7 @@
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
<
h1
>
Novo
E
vento
</
h1
>
<
h1
>
Novo
E
dital
</
h1
>
</
div
>
<
form
action
=
"
{
{route('evento.criar')}
}
"
method
=
"POST"
enctype
=
"multipart/form-data"
>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
37220c29
...
...
@@ -4,25 +4,20 @@
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-
8
"
>
<
div
class
=
"col-sm-
12
"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card-body"
>
<
h5
class
=
"card-title"
>
Enviar
Trabalh
o
</
h5
>
<
h5
class
=
"card-title"
>
Enviar
Projet
o
</
h5
>
<
p
class
=
"card-text"
>
<
form
method
=
"POST"
action
=
"
{
{route('trabalho.store')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
input
type
=
"hidden"
name
=
"eventoId"
value
=
"
{
{$evento->id}
}
"
>
<
div
>
@
error
(
'numeroMax'
)
@
include
(
'componentes.mensagens'
)
@
enderror
</
div
>
<
input
type
=
"hidden"
name
=
"editalId"
value
=
"
{
{$edital->id}
}
"
>
{{
--
Nome
do
Projeto
--
}}
<
div
class
=
"row justify-content-center"
>
{{
--
Nome
Trabalho
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'
Títul
o:'
)
}}
</
label
>
<
input
id
=
"nomeTrabalho"
type
=
"text"
class
=
"form-control @error('nomeTrabalho') is-invalid @enderror"
name
=
"nome
Trabalh
o"
value
=
"{{ old('nomeTrabalho') }}"
required
autocomplete
=
"nomeTrabalho"
autofocus
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'
Nome do Projet
o:'
)
}}
</
label
>
<
input
id
=
"nomeTrabalho"
type
=
"text"
class
=
"form-control @error('nomeTrabalho') is-invalid @enderror"
name
=
"nome
Projet
o"
value
=
"{{ old('nomeTrabalho') }}"
required
autocomplete
=
"nomeTrabalho"
autofocus
>
@
error
(
'nomeTrabalho'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
@@ -31,48 +26,33 @@
@
enderror
</
div
>
</
div
>
{{
--
Grande
Area
--
}}
<
div
class
=
"row justify-content-center"
>
{{
--
Nome
Trabalho
--
}}
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nomeTrabalho"
class
=
"col-form-label"
>
{{
__
(
'Autor:'
)
}}
</
label
>
<
input
class
=
"form-control"
type
=
"text"
disabled
value
=
"
{
{Auth::user()->name}
}
"
>
</
div
>
</
div
>
<
div
class
=
"row"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
id
=
"coautores"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"grandeArea"
class
=
"col-form-label"
>
{{
__
(
'Grande Área:'
)
}}
</
label
>
<
select
class
=
"form-control @error('grandeArea') is-invalid @enderror"
id
=
"grandeArea"
name
=
"grandeAreaId"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
<
option
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
</select>
@error('grandeAreaId')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<
a
href
=
"#"
class
=
"btn btn-primary"
id
=
"addCoautor"
style
=
"width:100%;margin-top:10px"
>
Coautor
+</
a
>
</
div
>
</div>
@
if
(
$evento
->
hasResumo
)
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"resumo"
class
=
"col-form-label"
>
{{
__
(
'Resumo:'
)
}}
</
label
>
<
textarea
id
=
"resumo"
class
=
"form-control @error('resumo') is-invalid @enderror"
name
=
"resumo"
value
=
"{{ old('resumo') }}"
autocomplete
=
"resumo"
autofocusrows
=
"5"
></
textarea
>
@
error
(
'resumo'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
@
endif
<!--
Areas
-->
{{-- Area --}}
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
12
">
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área:') }}</label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
areaId
">
<option value="" disabled selected hidden>-- Área --</option>
@
foreach
(
$areas
Enomes
as
$area
)
@foreach(
$areas
as
$area
)
<option value="
{{
$area
->
id
}}
">
{
{$area->nome}
}
</option>
@endforeach
</select>
...
...
@@ -85,30 +65,162 @@
</div>
</div>
<!
--
Modalidades
--
>
{{
--
Sub Area
--
}}
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
12
">
<label for="
areaModalidadeId
" class="
col
-
form
-
label
">{{ __('Modalidade:') }}</label>
<select class="
form
-
control
@
error
(
'modalidade'
)
is
-
invalid
@
enderror
" id="
modalidade
" name="
modalidadeId
">
<option value="" disabled selected hidden>-- Modalidade --</option>
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área:') }}</label>
<select class="
form
-
control
@
error
(
'subArea'
)
is
-
invalid
@
enderror
" id="
subArea
" name="
subAreaId
">
<option value="" disabled selected hidden>-- Sub Área --</option>
@foreach(
$subAreas
as
$subArea
)
<option value="
{{
$subArea
->
id
}}
">
{
{$subArea->nome}
}
</option>
@endforeach
</select>
@error('
modalidade
Id')
@error('
subArea
Id')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
{{-- Anexo do Projeto --}}
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" style="
margin
-
top
:
20
px
;
">
<label for="
anexoProjeto
" class="
col
-
form
-
label
">{{ __('Anexo Projeto:') }}</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
inputGroupFileAddon01
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoProjeto
"
aria-describedby="
inputGroupFileAddon01
" name="
anexoProjeto
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoProjeto
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('anexoProjeto')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
{{--
@if(tipo de edital == PIBIC ou tipo de edital == PIBIC-EM)
@endif
--}}
{{-- Decisão do CONSU --}}
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" style="
margin
-
top
:
20
px
;
">
<label for="
anexoCONSU
" class="
col
-
form
-
label
">{{ __('Decisão do CONSU:') }}</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
inputGroupFileAddon01
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoCONSU
"
aria-describedby="
inputGroupFileAddon01
" name="
anexoCONSU
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
{{-- Autorização do Comitê de Ética --}}
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" style="
margin
-
top
:
20
px
;
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Autorização do Comitê de Ética:') }}</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
inputGroupFileAddon01
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
inputGroupFile01
"
aria-describedby="
inputGroupFileAddon01
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<hr>
<h3>Coordenador</h3>
{{-- Coordenador --}}
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
sm
-
12
">
<label for="
nomeCoordenador
" class="
col
-
form
-
label
">{{ __('Coordenador:') }}</label>
<input class="
form
-
control
" type="
text
" id="
nomeCoordenador
" name="
nomeCoordenador
" value="">
</div>
</div>
{{-- Lattes do Coordenador --}}
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" style="
margin
-
top
:
20
px
;
">
<label for="
anexoLatterCoordenador
" class="
col
-
form
-
label
">{{ __('Anexo do Lattes do Coordenador:') }}</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
anexoLatterCoordenador
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
inputGroupFile01
"
aria-describedby="
anexoLatterCoordenador
" name="
anexoLatterCoordenador
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
{{-- Pontuação da Planilha de Pontuação --}}
<div class="
row
justify
-
content
-
center
mt
-
2
">
{{-- Nome Trabalho --}}
<div class="
col
-
sm
-
12
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Pontuação da Planilha de Pontuação :') }}</label>
<input class="
form
-
control
" type="
text
" value="">
</div>
</div>
{{-- Anexo da Planilha de Pontuação --}}
<div class="
row
justify
-
content
-
center
">
{{-- Arquivo --}}
<div class="
col
-
sm
-
12
" style="
margin
-
top
:
20
px
;
">
<label for="
nomeTraba
lh
o
" class="
col
-
form
-
label
">{{ __('A
rquivo
:') }}</label>
<label for="
anexoPlani
lh
a
" class="
col
-
form
-
label
">{{ __('A
nexo do Planilha de Pontuação
:') }}</label>
<div class="
custom
-
file
">
<input type="
file
" class="
filestyle
" data-placeholder="
Nenhum
arquivo
" data-text="
Selecionar
" data-btnClass="
btn
-
primary
-
lmts
" name="
arquivo
">
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
anexoPlanilhaDescribe
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoPlanilha
"
aria-describedby="
anexoPlanilhaDescribe
" name="
anexoPlanilha
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoPlanilha
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
<small>O arquivo Selecionado deve ser no formato PDF de até 2mb.</small>
@error('arquivo')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
...
...
@@ -117,12 +229,129 @@
</div>
</div>
{{-- Link do grupo de pesquisa --}}
<div class="
row
justify
-
content
-
center
mb
-
3
">
<div class="
col
-
sm
-
12
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Link do grupo de pesquisa:') }}</label>
<input class="
form
-
control
" type="
text
" value="">
</div>
</div>
<hr>
<h4>Participantes</h4>
{{-- Participantes --}}
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
col
-
sm
-
12
">
<div id="
participantes
">
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
</div>
<div class="
col
-
sm
-
2
">
<label for="
funcaoParticipante
" class="
col
-
form
-
label
">{{ __('Função:') }}</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
</div>
<div class="
col
-
sm
-
2
">
<label for="
funcaoParticipante
" class="
col
-
form
-
label
">{{ __('Função:') }}</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
</select>
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
</div>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
</
div
>
</
div
>
{{
--
Plano
de
Trabalho
--
}}
<
h4
class
=
"mt-3"
>
Plano
de
Trabalho
</
h4
>
<
div
class
=
"row"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
id
=
"planoTrabalho"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-4"
>
<
label
>
Titulo
</
label
>
<
input
type
=
"text"
style
=
"margin-bottom:10px"
class
=
"form-control emailCoautor"
name
=
"nomePlanoTrabalho[]"
placeholder
=
"Nome"
required
>
</
div
>
{{
--
Arquivo
--
}}
<
div
class
=
"col-sm-7"
>
<
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
>
</
div
>
<
div
class
=
"custom-file"
>
<
input
type
=
"file"
class
=
"custom-file-input"
id
=
"anexoPlanoTrabalho"
aria
-
describedby
=
"anexoPlanoTrabalho"
name
=
"anexoPlanoTrabalho[]"
>
<
label
class
=
"custom-file-label"
id
=
"custom-file-label"
for
=
"inputGroupFile01"
>
O
arquivo
deve
ser
no
formato
PDF
de
até
2
mb
.
</
label
>
</
div
>
</
div
>
@
error
(
'anexoPlanoTrabalho'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-1"
>
<
a
class
=
"deletePlano"
>
<
img
src
=
"/img/icons/user-times-solid.svg"
style
=
"width:25px;margin-top:35px"
>
</
a
>
</
div
>
</
div
>
</
div
>
<
a
href
=
"#"
class
=
"btn btn-primary"
id
=
"addPlanoTrabalho"
style
=
"width:100%;margin-top:10px"
>
Plano
de
Trabalho
+</
a
>
</
div
>
</
div
>
</
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-6"
>
<a href="
{{
route
(
'e
vento
.visualizar'
,[
'id'
=>
$e
vento
->
id
])}}
" class="
btn
btn
-
secondary
" style="
width
:
100
%
">Cancelar</a>
<
a
href
=
"
{
{route('e
dital
.visualizar',['id'=>$e
dital
->id])}
}
"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
<
div
class
=
"col-md-6"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"width:100%"
>
...
...
@@ -142,12 +371,30 @@
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
var modalidades = JSON.parse('<?php echo json_encode(
$modalidadesIDeNome
) ?>');
$
(
function
(){
var
qtdLinhas
=
1
;
var
qtdParticipantes
=
2
;
// Coautores
$('#addCoautor').click(function(){
linha = montarLinhaInput();
$('#coautores').append(linha);
$
(
'#addCoautor'
)
.
click
(
function
(
e
){
if
(
qtdParticipantes
<
100
){
e
.
preventDefault
();
linha
=
montarLinhaInput
();
$
(
'#participantes'
)
.
append
(
linha
);
qtdParticipantes
++
}
});
$
(
'#addPlanoTrabalho'
)
.
click
(
function
(
e
){
e
.
preventDefault
();
if
(
qtdLinhas
<
4
){
linha
=
montarLinhaInputPlanoTrabalho
();
$
(
'#planoTrabalho'
)
.
append
(
linha
);
qtdLinhas
++
;
}
});
// Exibir modalidade de acordo com a área
...
...
@@ -155,14 +402,31 @@
console
.
log
(
$
(
this
)
.
val
());
addModalidade
(
$
(
this
)
.
val
());
});
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
(){
if
(
qtdParticipantes
>
2
){
qtdParticipantes
--
;
$
(
this
)
.
closest
(
'.row'
)
.
remove
();
return
false
;
}
});
$
(
document
)
.
on
(
'click'
,
'.deletePlano'
,
function
(){
if
(
qtdLinhas
>
1
){
qtdLinhas
--
;
$
(
"#planoTrabalho div.row:last"
)
.
remove
();
return
false
;
}
});
$
(
'#anexoProjeto'
)
.
on
(
'change'
,
function
(){
//get the file name
var
fileName
=
$
(
this
)
.
val
();
//replace the "Choose a file" label
$
(
this
)
.
next
(
'#custom-file-label'
)
.
html
(
fileName
);
})
});
// Remover Coautor
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
(){
$
(
this
)
.
closest
(
'.row'
)
.
remove
();
return
false
;
});
function
addModalidade
(
areaId
){
console
.
log
(
modalidades
)
...
...
@@ -177,20 +441,63 @@
function
montarLinhaInput
(){
return
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-
6
"
+
">"
+
"<div class="
+
"col-sm-
5
"
+
">"
+
"<label>Nome Completo</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomeCoautor[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"</div>"
+
"<div class="
+
"col-sm-
5
"
+
">"
+
"<div class="
+
"col-sm-
4
"
+
">"
+
"<label>E-mail</label>"
+
"<input"
+
" type="
+
'email'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'emailCoautor[]'
+
" placeholder="
+
"E-mail"
+
" required>"
+
"</div>"
+
"<div class='col-sm-2'>"
+
"<label for='funcaoParticipante' class='col-form-label'>Função:</label>"
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
" id="
+
"funcaoParticipante"
+
"name="
+
"funcaoParticipante"
+
">"
+
"<option value='' disabled selected hidden> Função </option>"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
"<option value='
{
{$funcaoParticipante->id}}'>{{$funcaoParticipante->nome}
}
</option>"
+
"@endforeach"
+
"</select>"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a class="
+
"delete"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</div>"
+
"</div>"
;
}
function
montarLinhaInputPlanoTrabalho
(){
return
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Nome Completo</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomeCoautor[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"</div>"
+
"<div class="
+
"col-sm-7"
+
">"
+
"<label for="
+
"nomeTrabalho"
+
">Anexo </label>"
+
"<div class="
+
"input-group"
+
">"
+
"<div class='input-group-prepend'>"
+
"<span class='input-group-text' id='inputGroupFileAddon01'>Selecione um arquivo:</span>"
+
"</div>"
+
"<div class='custom-file'>"
+
"<input type='file' class='custom-file-input' id='inputGroupFile01'"
+
"aria-describedby='inputGroupFileAddon01'>"
+
"<label class='custom-file-label' id='custom-file-label' for='inputGroupFile01'>O arquivo deve ser no formato PDF de até 2mb.</label>"
+
"</div>"
+
"</div>"
+
"@error('arquivo')"
+
"<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"@enderror"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a
href="
+
"#"
+
"
class="
+
"delete"
+
">"
+
"<a class="
+
"delete
Plano
"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</div>"
+
"</div>"
;
}
</
script
>
@
endsection
resources/views/evento/visualizarEvento.blade.php
View file @
37220c29
...
...
@@ -118,21 +118,21 @@
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Revisão
de
Trabalhos
</
h4
>
{{
--
<
h4
>
Revisão
de
Trabalhos
</
h4
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
</
p
>
</
p
>
--
}}
</
div
>
</
div
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Endereço
</
h4
>
{{
--
<
h4
>
Endereço
</
h4
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/map-marker-alt-solid.svg')}
}
"
alt
=
""
>
{{
$evento
->
endereco
->
rua
}},
{{
$evento
->
endereco
->
numero
}}
-
{{
$evento
->
endereco
->
cidade
}}
/
{{
$evento
->
endereco
->
uf
}}
.
</
p
>
</
p
>
--
}}
</
div
>
</
div
>
@
if
(
$hasFile
==
true
)
...
...
resources/views/layouts/app.blade.php
View file @
37220c29
...
...
@@ -69,22 +69,13 @@
{{-- @component('componentes.navbarServidor')
@endcomponent --}}
@endif
@if(Auth::user()->tipo == 'proReitor')
<!-- Carrega component contendo navbar do administrador -->
{{-- @component('componentes.navbarAdministrador')
@endcomponent --}}
@endif
@if(Auth::user()->tipo == 'proponente')
<!-- Carrega component contendo navbar do administrador -->
{{-- @component('componentes.navbarAdministrador')
@endcomponent --}}
@endif
@if(Auth::user()->tipo == 'coordenadorComite')
<!-- Carrega component contendo navbar do administrador -->
{{-- @component('componentes.navbarAdministrador')
@endcomponent --}}
@endif
<li
class=
"nav-item dropdown"
>
...
...
Prev
1
2
3
Next
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