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
0b855c44
"resources/views/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "174741e86cff13d979b29e878b3c5c2a5f1b51ae"
Unverified
Commit
0b855c44
authored
Jun 09, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 09, 2020
Browse files
Merge pull request #19 from lmts-ufape/anexos
Anexos
parents
7b97025b
89078619
Changes
24
Show whitespace changes
Inline
Side-by-side
app/Avaliador.php
View file @
0b855c44
...
...
@@ -3,9 +3,11 @@
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Avaliador
extends
Model
{
use
SoftDeletes
;
protected
$fillable
=
[
'status'
,
'parecer'
,
...
...
@@ -16,7 +18,7 @@ class Avaliador extends Model
return
$this
->
belongsTo
(
'App\User'
);
}
public
function
trabalhos
(){
return
$this
->
belongsToMany
(
'App\Trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
);
return
$this
->
belongsToMany
(
'App\Trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
}
public
function
eventos
(){
return
$this
->
belongsToMany
(
'App\Evento'
);
...
...
app/Http/Controllers/AdministradorController.php
View file @
0b855c44
...
...
@@ -392,4 +392,8 @@ class AdministradorController extends Controller
return
redirect
()
->
back
();
}
// public function baixarAnexo(Request $request) {
// return Storage::download($request->anexo);
// }
}
app/Http/Controllers/AvaliadorController.php
View file @
0b855c44
...
...
@@ -9,6 +9,8 @@ use App\Evento;
use
App\Recomendacao
;
use
App\User
;
use
App\Avaliador
;
use
Carbon\Carbon
;
use
Illuminate\Support\Facades\Storage
;
class
AvaliadorController
extends
Controller
{
...
...
@@ -17,7 +19,7 @@ class AvaliadorController extends Controller
return
view
(
'avaliador.index'
);
}
public
function
editais
(){
public
function
editais
(
Request
$request
){
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$eventos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
eventos
;
...
...
@@ -30,7 +32,7 @@ class AvaliadorController extends Controller
$user
=
User
::
find
(
Auth
::
user
()
->
id
);
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
trabalhos
;
$trabalhos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
trabalhos
->
where
(
'evento_id'
,
$request
->
evento_id
)
;
//dd();
...
...
@@ -55,17 +57,25 @@ class AvaliadorController extends Controller
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$trabalhos
=
$user
->
avaliadors
->
where
(
'user_id'
,
$user
->
id
)
->
first
()
->
trabalhos
;
$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
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'recomendacao'
=>
$request
->
recomendacao
]);
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'recomendacao'
=>
$request
->
recomendacao
,
'created_at'
=>
$data
]);
}
else
{
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'AnexoParecer'
=>
$request
->
anexoParecer
,
'recomendacao'
=>
$request
->
recomendacao
]);
$anexoParecer
=
$request
->
anexoParecer
;
$path
=
'anexoParecer/'
.
$avaliador
->
id
.
$trabalho
->
id
.
'/'
;
$nome
=
"parecer.pdf"
;
Storage
::
putFileAs
(
$path
,
$anexoParecer
,
$nome
);
$anexoParecer
=
$path
.
$nome
;
$avaliador
->
trabalhos
()
->
updateExistingPivot
(
$trabalho
->
id
,[
'status'
=>
1
,
'parecer'
=>
$request
->
textParecer
,
'AnexoParecer'
=>
$anexoParecer
,
'recomendacao'
=>
$request
->
recomendacao
,
'created_at'
=>
$data
]);
}
...
...
app/Http/Controllers/HomeController.php
View file @
0b855c44
...
...
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use
Illuminate\Http\Request
;
use
Auth
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Storage
;
class
HomeController
extends
Controller
{
...
...
@@ -51,6 +52,6 @@ class HomeController extends Controller
}
public
function
downloadArquivo
(
Request
$request
){
return
response
()
->
download
(
storage_path
(
'app/'
.
$request
->
file
)
)
;
return
Storage
::
download
(
$request
->
file
);
}
}
app/Http/Controllers/TrabalhoController.php
View file @
0b855c44
...
...
@@ -79,7 +79,7 @@ class TrabalhoController extends Controller
//Relaciona o projeto criado com o proponente que criou o projeto
$proponente
=
Proponente
::
where
(
'user_id'
,
Auth
::
user
()
->
id
)
->
first
();
//$trabalho->proponentes()->save($proponente);
//dd($coordenador);
//dd($coordenador
->id
);
$trabalho
=
"trabalho"
;
if
(
$evento
->
inicioSubmissao
>
$mytime
){
if
(
$mytime
>=
$evento
->
fimSubmissao
){
...
...
@@ -104,7 +104,8 @@ class TrabalhoController extends Controller
'funcaoParticipante.*'
=>
[
'required'
,
'string'
],
'nomePlanoTrabalho.*'
=>
[
'required'
,
'string'
],
'anexoProjeto'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
//'anexoCONSU' => ['required', 'file', 'mimes:pdf', 'max:2000000'],
'anexoCONSU'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoComiteEtica'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLatterCoordenador'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'required'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
...
...
@@ -123,9 +124,10 @@ class TrabalhoController extends Controller
'data'
=>
$mytime
,
'evento_id'
=>
$request
->
editalId
,
'avaliado'
=>
0
,
'status'
=>
'Submetido'
,
'proponente_id'
=>
$proponente
->
id
,
//Anexos
'anexo
DecisaoCONSU'
=>
$request
->
anexoCONSU
,
'anexo
CONSU'
=>
$request
->
anexoCONSU
,
'anexoProjeto'
=>
$request
->
anexoProjeto
,
'anexoAutorizacaoComiteEtica'
=>
$request
->
anexoComiteEtica
,
'justificativaAutorizacaoEtica'
=>
$request
->
justificativaAutorizacaoEtica
,
...
...
@@ -166,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
,
...
...
@@ -287,6 +290,8 @@ class TrabalhoController extends Controller
$subareas
=
Subarea
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$arquivos
=
Arquivo
::
where
(
'trabalhoId'
,
$id
)
->
get
();
return
view
(
'projeto.editar'
)
->
with
([
'projeto'
=>
$projeto
,
...
...
@@ -294,6 +299,7 @@ class TrabalhoController extends Controller
'areas'
=>
$areas
,
'subAreas'
=>
$subareas
,
'edital'
=>
$edital
,
'users'
=>
$users
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'participantes'
=>
$participantes
,
'arquivos'
=>
$arquivos
,]);
...
...
@@ -401,10 +407,11 @@ class TrabalhoController extends Controller
$trabalho
->
update
();
// criando novos participantes que podem ter sido adicionados
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
'='
,
$trabalho
->
id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
$emailParticipantes
=
[];
foreach
(
$
participantes
as
$participante
)
{
array_push
(
$emailParticipantes
,
$
participante
->
user
->
email
);
foreach
(
$
users
as
$user
)
{
array_push
(
$emailParticipantes
,
$user
->
email
);
}
foreach
(
$request
->
emailParticipante
as
$key
=>
$value
)
{
...
...
@@ -443,7 +450,7 @@ class TrabalhoController extends Controller
//atualizando os participantes que já estão no projeto e planos de trabalho se enviados
if
(
in_array
(
$request
->
emailParticipante
[
$key
],
$emailParticipantes
,
false
))
{
$user
=
User
::
where
(
'email'
,
$request
->
emailParticipante
[
$key
])
->
first
();
$participante
::
where
([[
'user_id'
,
'='
,
$user
->
id
],
[
'trabalho_id'
,
'='
,
$trabalho
->
id
]]);
$participante
=
Participante
::
where
([[
'user_id'
,
'='
,
$user
->
id
],
[
'trabalho_id'
,
'='
,
$trabalho
->
id
]])
->
first
()
;
$user
->
name
=
$request
->
nomeParticipante
[
$key
];
$user
->
update
();
...
...
@@ -451,34 +458,37 @@ class TrabalhoController extends Controller
$participante
->
funcao_participante_id
=
$request
->
funcaoParticipante
[
$key
];
$participante
->
update
();
//
//atualizando planos de trabalho
incompleto
// dd($request);
//
if (!(is_null($request->anexoPlanoTrabalho[
1
]))) {
//
$arquivo = Arquivo::where('participanteId', $participante->id)->first();
//
Storage::delete($arquivo->nome);
//
$arquivo->delete();
//atualizando planos de trabalho
if
(
array_key_exists
(
$key
,
$request
->
anexoPlanoTrabalho
))
{
if
(
!
(
is_null
(
$request
->
anexoPlanoTrabalho
[
$key
])))
{
$arquivo
=
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
first
();
Storage
::
delete
(
$arquivo
->
nome
);
$arquivo
->
delete
();
//
$path = 'trabalhos/' . $request->editalId . '/' . $trabalho->id .'/';
//
$nome = $request->nomePlanoTrabalho[$key] .".pdf";
//
$file = $request->anexoPlanoTrabalho[$key];
//
Storage::putFileAs($path, $file, $nome);
$path
=
'trabalhos/'
.
$request
->
editalId
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$request
->
nomePlanoTrabalho
[
$key
]
.
".pdf"
;
$file
=
$request
->
anexoPlanoTrabalho
[
$key
];
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
// $arquivo = new Arquivo();
// $arquivo->nome = $path . $nome;
// $arquivo->trabalhoId = $trabalho->id;
// $arquivo->data = $mytime;
// $arquivo->participanteId = $participante->id;
// $arquivo->versaoFinal = true;
// $arquivo->save();
// }
$arquivo
=
new
Arquivo
();
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
data
=
$mytime
;
$arquivo
->
participanteId
=
$participante
->
id
;
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
}
}
}
}
// Atualizando possiveis usuários removidos
$participantes
=
Participante
::
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
'='
,
$trabalho
->
id
)
->
select
(
'user_id'
)
->
get
();
$users
=
User
::
whereIn
(
'id'
,
$participantesUsersIds
)
->
get
();
foreach
(
$participantes
as
$participante
)
{
if
(
!
(
in_array
(
$participante
->
user
->
email
,
$request
->
emailParticipante
,
false
)))
{
foreach
(
$users
as
$user
)
{
if
(
!
(
in_array
(
$user
->
email
,
$request
->
emailParticipante
,
false
)))
{
$participante
=
Participante
::
where
([[
'user_id'
,
'='
,
$user
->
id
],
[
'trabalho_id'
,
'='
,
$trabalho
->
id
]])
->
first
();
$arquivo
=
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
);
Storage
::
delete
(
$arquivo
->
nome
);
$arquivo
->
delete
();
...
...
@@ -495,9 +505,12 @@ class TrabalhoController extends Controller
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
Trabalho
$trabalho
)
public
function
destroy
(
Request
$request
)
{
//
$trabalho
=
Trabalho
::
find
(
$request
->
id
);
//dd($trabalho);
$trabalho
->
delete
();
return
redirect
()
->
back
();
}
public
function
novaVersao
(
Request
$request
){
...
...
app/Trabalho.php
View file @
0b855c44
...
...
@@ -3,9 +3,12 @@
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Trabalho
extends
Model
{
use
SoftDeletes
;
/**
* The attributes that are mass assignable.
*
...
...
@@ -15,6 +18,7 @@ class Trabalho extends Model
'titulo'
,
'data'
,
'aprovado'
,
'status'
,
'decisaoCONSU'
,
'pontuacaoPlanilha'
,
'linkGrupoPesquisa'
,
...
...
@@ -37,6 +41,8 @@ class Trabalho extends Model
'pivot'
,
];
public
function
recurso
(){
return
$this
->
hasMany
(
'App\Recurso'
,
'trabalhoId'
);
}
...
...
@@ -85,6 +91,6 @@ class Trabalho extends Model
return
$this
->
belongsTo
(
'App\CoordenadorComissao'
);
}
public
function
avaliadors
(){
return
$this
->
belongsToMany
(
'App\Avaliador'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
);
return
$this
->
belongsToMany
(
'App\Avaliador'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
}
}
composer.lock
View file @
0b855c44
...
...
@@ -1215,16 +1215,16 @@
},
{
"name": "opis/closure",
"version": "3.5.
3
",
"version": "3.5.
4
",
"source": {
"type": "git",
"url": "https://github.com/opis/closure.git",
"reference": "
cac47092144043d5d676e2e7cf8d0d2f83fc89ca
"
"reference": "
1d0deef692f66dae5d70663caee2867d0971306b
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/opis/closure/zipball/
cac47092144043d5d676e2e7cf8d0d2f83fc89ca
",
"reference": "
cac47092144043d5d676e2e7cf8d0d2f83fc89ca
",
"url": "https://api.github.com/repos/opis/closure/zipball/
1d0deef692f66dae5d70663caee2867d0971306b
",
"reference": "
1d0deef692f66dae5d70663caee2867d0971306b
",
"shasum": ""
},
"require": {
...
...
@@ -1272,7 +1272,7 @@
"serialization",
"serialize"
],
"time": "2020-0
5-25T09:32:45
+00:00"
"time": "2020-0
6-07T11:41:29
+00:00"
},
{
"name": "paragonie/random_compat",
...
...
@@ -1321,16 +1321,16 @@
},
{
"name": "phpoption/phpoption",
"version": "1.7.
3
",
"version": "1.7.
4
",
"source": {
"type": "git",
"url": "https://github.com/schmittjoh/php-option.git",
"reference": "
4acfd6a4b33a509d8c88f50e5222f734b6aeebae
"
"reference": "
b2ada2ad5d8a32b89088b8adc31ecd2e3a13baf3
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/
4acfd6a4b33a509d8c88f50e5222f734b6aeebae
",
"reference": "
4acfd6a4b33a509d8c88f50e5222f734b6aeebae
",
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/
b2ada2ad5d8a32b89088b8adc31ecd2e3a13baf3
",
"reference": "
b2ada2ad5d8a32b89088b8adc31ecd2e3a13baf3
",
"shasum": ""
},
"require": {
...
...
@@ -1372,7 +1372,7 @@
"php",
"type"
],
"time": "2020-0
3-21T18:07:53
+00:00"
"time": "2020-0
6-07T10:40:07
+00:00"
},
{
"name": "psr/container",
...
...
@@ -3316,27 +3316,27 @@
},
{
"name": "vlucas/phpdotenv",
"version": "v3.6.
5
",
"version": "v3.6.
6
",
"source": {
"type": "git",
"url": "https://github.com/vlucas/phpdotenv.git",
"reference": "
8b64814b356b96a90d2bc942b152c80d8888b8d4
"
"reference": "
4669484ccbc38fe7c4e0c50456778f2010566aad
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/
8b64814b356b96a90d2bc942b152c80d8888b8d4
",
"reference": "
8b64814b356b96a90d2bc942b152c80d8888b8d4
",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/
4669484ccbc38fe7c4e0c50456778f2010566aad
",
"reference": "
4669484ccbc38fe7c4e0c50456778f2010566aad
",
"shasum": ""
},
"require": {
"php": "^5.4 || ^7.0 || ^8.0",
"phpoption/phpoption": "^1.5",
"symfony/polyfill-ctype": "^1.
9
"
"phpoption/phpoption": "^1.5
.2
",
"symfony/polyfill-ctype": "^1.
16
"
},
"require-dev": {
"ext-filter": "*",
"ext-pcre": "*",
"phpunit/phpunit": "^4.8.35 || ^5.
0
|| ^6.
0
|| ^7.0"
"phpunit/phpunit": "^4.8.35 || ^5.
7.27
|| ^6.
5.6
|| ^7.0"
},
"suggest": {
"ext-filter": "Required to use the boolean validator.",
...
...
@@ -3375,7 +3375,7 @@
"env",
"environment"
],
"time": "2020-0
5-23T09:42:03
+00:00"
"time": "2020-0
6-02T14:08:54
+00:00"
}
],
"packages-dev": [
...
...
database/migrations/2020_02_05_123048_create_trabalhos_table.php
View file @
0b855c44
...
...
@@ -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'
);
...
...
@@ -35,6 +36,7 @@ class CreateTrabalhosTable extends Migration
$table
->
unsignedBigInteger
(
'evento_id'
);
$table
->
unsignedBigInteger
(
'coordenador_id'
);
$table
->
unsignedBigInteger
(
'proponente_id'
);
$table
->
softDeletes
();
$table
->
timestamps
();
});
...
...
database/migrations/2020_05_23_054805_create_avaliadors_table.php
View file @
0b855c44
...
...
@@ -16,6 +16,7 @@ class CreateAvaliadorsTable extends Migration
Schema
::
create
(
'avaliadors'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
unsignedBigInteger
(
'user_id'
)
->
nullable
();
$table
->
foreign
(
'user_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
...
...
database/migrations/2020_05_26_223341_create_avaliadors_trabalhos_table.php
View file @
0b855c44
...
...
@@ -21,6 +21,7 @@ class CreateAvaliadorsTrabalhosTable extends Migration
$table
->
string
(
'AnexoParecer'
)
->
nullable
();
$table
->
boolean
(
'status'
)
->
nullable
();
$table
->
string
(
'recomendacao'
)
->
nullable
();
$table
->
softDeletes
();
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
...
...
database/seeds/RecomendacaoSeeder.php
View file @
0b855c44
...
...
@@ -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 @
0b855c44
...
...
@@ -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/index.blade.php
View file @
0b855c44
...
...
@@ -27,6 +27,17 @@
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('grandearea.index') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Áreas
</
h2
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
href
=
"{{ route('admin.usuarios') }}"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
...
...
resources/views/administrador/projetos.blade.php
View file @
0b855c44
...
...
@@ -8,6 +8,11 @@
<
div
class
=
"row"
>
<
div
class
=
"col-sm-10"
>
<
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
do
resultado
:
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
resultado
))
}}
</
h6
>
</
div
>
</
div
>
</
div
>
...
...
@@ -32,6 +37,8 @@
<
tr
>
<
th
scope
=
"col"
>
Avaliador
</
th
>
<
th
scope
=
"col"
>
E
-
mail
</
th
>
<
th
scope
=
"col"
>
Data
</
th
>
<
th
scope
=
"col"
>
Recomendação
</
th
>
<
th
scope
=
"col"
>
Parecer
</
th
>
</
tr
>
</
thead
>
...
...
@@ -40,14 +47,36 @@
<
tr
>
<
td
>
{{
$avaliador
->
user
->
name
}}
</
td
>
<
td
>
{{
$avaliador
->
user
->
email
}}
</
td
>
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
@
else
{{
date
(
'd/m/Y'
,
strtotime
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
created_at
))
}}
@
endif
</
td
>
<
td
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
Indisponível
@
else
{{
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
recomendacao
}}
@
endif
</
td
>
<
td
>
<
form
action
=
"{{ route('admin.visualizarParecer') }}"
method
=
"post"
>
@
csrf
<
input
type
=
"hidden"
name
=
"trabalho_id"
value
=
"{{
$trabalho->id
}}"
>
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
button
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
disabled
=
"disabled"
@
endif
>
@
if
(
$avaliador
->
trabalhos
->
where
(
'id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
parecer
==
null
)
<
button
class
=
"btn btn-danger"
disabled
=
"disabled"
>
Indisponível
</
button
>
@
else
<
button
class
=
"btn btn-primary"
>
Visualizar
</
button
>
@
endif
</
form
>
</
td
>
...
...
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
0b855c44
...
...
@@ -7,9 +7,14 @@
<
div
class
=
"container"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-md-
10
"
>
<
div
class
=
"col-md-
9
"
>
<
h3
>
Avaliadores
</
h3
>
</
div
>
<
div
class
=
"col-md-1"
>
<
a
href
=
"{{ route('admin.atribuir', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
>
Voltar
</
a
>
</
div
>
<
div
class
=
"col-md-2"
>
<!--
Button
trigger
modal
-->
<
button
type
=
"button"
class
=
"btn btn-primary"
data
-
toggle
=
"modal"
data
-
target
=
"#exampleModalCenter"
>
...
...
@@ -20,6 +25,7 @@
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
...
...
@@ -78,7 +84,7 @@
@
csrf
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
>
Remover
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
@
if
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
>
Remover
</
button
>
</
form
>
</
td
>
</
tr
>
...
...
resources/views/administrador/selecionarProjetos.blade.php
View file @
0b855c44
...
...
@@ -19,6 +19,10 @@
</
div
>
</
div
>
<
a
href
=
"{{ route('admin.atribuir', ['evento_id' =>
$evento->id
]) }}"
class
=
"btn btn-primary"
>
Voltar
</
a
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
...
...
@@ -115,6 +119,7 @@
@
endforeach
</
tbody
>
</
table
>
</
div
>
...
...
resources/views/administrador/visualizarParecer.blade.php
View file @
0b855c44
...
...
@@ -19,6 +19,9 @@
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlSelect1"
>
Anexo
:
</
label
>
<
a
href
=
"{{route('download', ['file' =>
$parecer->AnexoParecer
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
</
div
>
<
a
href
=
"
{
{url()->previous()}
}
"
class
=
"btn btn-primary"
>
Voltar
</
a
>
...
...
resources/views/avaliador/listarTrabalhos.blade.php
View file @
0b855c44
...
...
@@ -27,8 +27,8 @@
<
td
>
{{
$trabalho
->
titulo
}}
</
td
>
<
td
>
{{
$trabalho
->
created_at
}}
</
td
>
<
td
>
{{
--
{{
route
(
'download'
,
[
'file'
=>
$arquivo
])}}
--
}}
<
a
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
{{
--
--
}}
<
a
href
=
"{{route('download', ['file' =>
$trabalho->anexoProjeto
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
</
td
>
...
...
resources/views/avaliador/parecer.blade.php
View file @
0b855c44
...
...
@@ -27,13 +27,17 @@
@
endif
@
endforeach
</
select
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group
mt-3 md-3
"
>
@
if
(
$trabalho
->
pivot
->
AnexoParecer
==
null
)
<
label
for
=
"exampleFormControlFile1"
>
Anexo
do
Parecer
:</
label
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
@
else
<
label
for
=
"exampleFormControlFile1"
>
Já
existe
um
arquivo
,
quer
atualizar
?</
label
>
<
br
>
<
label
for
=
"exampleFormControlFile1"
>
Já
existe
um
arquivo
,
quer
atualizar
?</
label
>
<
br
>
<
label
for
=
"exampleFormControlFile1"
>
Arquivo
atual
:</
label
>
<
a
href
=
"{{route('download', ['file' =>
$trabalho->pivot
->AnexoParecer])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
><
br
>
<
input
type
=
"file"
class
=
"form-control-file"
id
=
"exampleFormControlFile1"
name
=
"anexoParecer"
>
@
endif
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
0b855c44
...
...
@@ -16,10 +16,10 @@
{{
--
Nome
do
Projeto
--
}}
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome
Trabalh
o"
class
=
"col-form-label"
>
{{
__
(
'Nome do Projeto:'
)
}}
</
label
>
<
input
id
=
"nome
Trabalh
o"
type
=
"text"
class
=
"form-control @error('nome
Trabalh
o') is-invalid @enderror"
name
=
"nomeProjeto"
value
=
"{{ old('nome
Trabalh
o') }}"
required
autocomplete
=
"nome
Trabalh
o"
autofocus
>
<
label
for
=
"nome
Projet
o"
class
=
"col-form-label"
>
{{
__
(
'Nome do Projeto
*
:'
)
}}
</
label
>
<
input
id
=
"nome
Projet
o"
type
=
"text"
class
=
"form-control @error('nome
Projet
o') is-invalid @enderror"
name
=
"nomeProjeto"
value
=
"{{ old('nome
Projet
o') }}"
required
autocomplete
=
"nome
Projet
o"
autofocus
>
@
error
(
'nome
Trabalh
o'
)
@
error
(
'nome
Projet
o'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
...
...
@@ -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>
...
...
@@ -408,11 +408,16 @@
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
);
$
(
'.custom-file-input'
)
.
on
(
'change'
,
function
()
{
var
fieldVal
=
$
(
this
)
.
val
();
// Change the node's value by removing the fake path (Chrome)
fieldVal
=
fieldVal
.
replace
(
"C:
\\
fakepath
\\
"
,
""
);
if
(
fieldVal
!=
undefined
||
fieldVal
!=
""
)
{
$
(
this
)
.
next
(
".custom-file-label"
)
.
attr
(
'data-content'
,
fieldVal
);
$
(
this
)
.
next
(
".custom-file-label"
)
.
text
(
fieldVal
);
}
})
// F
$
(
'#buttonSim'
)
.
on
(
'click'
,
function
(
e
)
{
...
...
@@ -446,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'>"
+
...
...
@@ -455,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'>"
+
...
...
@@ -464,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
)"
+
...
...
@@ -481,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'>"
+
...
...
@@ -490,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'>"
+
...
...
Prev
1
2
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