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
383491dd
Commit
383491dd
authored
Jun 25, 2020
by
Gabriel-31415
Browse files
Merge branch 'fixRascunho' of
https://github.com/lmts-ufape/submeta
into fixbugs
merged
parents
46c21d0a
e8ed04d2
Changes
6
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/ParticipanteController.php
View file @
383491dd
...
@@ -29,7 +29,7 @@ class ParticipanteController extends Controller
...
@@ -29,7 +29,7 @@ class ParticipanteController extends Controller
//$projetos = Auth::user()->participantes->where('user_id', Auth::user()->id)->first()->trabalhos;
//$projetos = Auth::user()->participantes->where('user_id', Auth::user()->id)->first()->trabalhos;
//dd(
$projeto
s);
//dd(
Auth::user()->proponente
s);
return
view
(
'participante.projetos'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
]);
return
view
(
'participante.projetos'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
]);
}
}
...
...
app/Http/Controllers/TrabalhoController.php
View file @
383491dd
...
@@ -31,6 +31,7 @@ use Illuminate\Support\Facades\Log;
...
@@ -31,6 +31,7 @@ use Illuminate\Support\Facades\Log;
use
Illuminate\Support\Str
;
use
Illuminate\Support\Str
;
use
App\Mail\SubmissaoTrabalho
;
use
App\Mail\SubmissaoTrabalho
;
use
App\Mail\EventoCriado
;
use
App\Mail\EventoCriado
;
use
Illuminate\Support\Facades\Validator
;
class
TrabalhoController
extends
Controller
class
TrabalhoController
extends
Controller
{
{
...
@@ -112,8 +113,7 @@ class TrabalhoController extends Controller
...
@@ -112,8 +113,7 @@ class TrabalhoController extends Controller
'area'
=>
[
'required'
,
'string'
],
'area'
=>
[
'required'
,
'string'
],
'subArea'
=>
[
'required'
,
'string'
],
'subArea'
=>
[
'required'
,
'string'
],
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
'linkGrupo'
=>
[
'required'
,
'string'
],
'linkGrupo'
=>
[
'required'
,
'string'
,
'link_grupo'
],
// 'linkGrupo' => ['required', 'string', 'link_grupo'],
'linkLattesEstudante'
=>
[
'required'
,
'string'
,
'link_lattes'
],
'linkLattesEstudante'
=>
[
'required'
,
'string'
,
'link_lattes'
],
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
...
@@ -126,10 +126,13 @@ class TrabalhoController extends Controller
...
@@ -126,10 +126,13 @@ class TrabalhoController extends Controller
'anexoComiteEtica'
=>
[(
$request
->
anexoComitePreenchido
!==
'sim'
&&
$request
->
anexoJustificativaPreenchido
!==
'sim'
?
'required_without:justificativaAutorizacaoEtica'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoComiteEtica'
=>
[(
$request
->
anexoComitePreenchido
!==
'sim'
&&
$request
->
anexoJustificativaPreenchido
!==
'sim'
?
'required_without:justificativaAutorizacaoEtica'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'justificativaAutorizacaoEtica'
=>
[(
$request
->
anexoJustificativaPreenchido
!==
'sim'
&&
$request
->
anexoComitePreenchido
!==
'sim'
?
'required_without:anexoComiteEtica'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'justificativaAutorizacaoEtica'
=>
[(
$request
->
anexoJustificativaPreenchido
!==
'sim'
&&
$request
->
anexoComitePreenchido
!==
'sim'
?
'required_without:anexoComiteEtica'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLattesCoordenador'
=>
[(
$request
->
anexoLattesPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLattesCoordenador'
=>
[(
$request
->
anexoLattesPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,xls'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,xls
,xlsx
'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
]);
]);
//dd($request->all());
if
(
gettype
(
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
))
!=
'integer'
){
return
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
);
}
//$trabalho = Trabalho::create([
//$trabalho = Trabalho::create([
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
...
@@ -162,8 +165,7 @@ class TrabalhoController extends Controller
...
@@ -162,8 +165,7 @@ class TrabalhoController extends Controller
'area'
=>
[
'required'
,
'string'
],
'area'
=>
[
'required'
,
'string'
],
'subArea'
=>
[
'required'
,
'string'
],
'subArea'
=>
[
'required'
,
'string'
],
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
'linkGrupo'
=>
[
'required'
,
'string'
],
'linkGrupo'
=>
[
'required'
,
'string'
,
'link_grupo'
],
// 'linkGrupo' => ['required', 'string', 'link_grupo'],
'linkLattesEstudante'
=>
[
'required'
,
'string'
,
'link_lattes'
],
'linkLattesEstudante'
=>
[
'required'
,
'string'
,
'link_lattes'
],
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'nomeParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
'emailParticipante.*'
=>
[
'required'
,
'string'
],
...
@@ -171,10 +173,13 @@ class TrabalhoController extends Controller
...
@@ -171,10 +173,13 @@ class TrabalhoController extends Controller
'nomePlanoTrabalho.*'
=>
[
'nullable'
,
'string'
],
'nomePlanoTrabalho.*'
=>
[
'nullable'
,
'string'
],
'anexoProjeto'
=>
[(
$request
->
anexoProjetoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoProjeto'
=>
[(
$request
->
anexoProjetoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLattesCoordenador'
=>
[(
$request
->
anexoLattesPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoLattesCoordenador'
=>
[(
$request
->
anexoLattesPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,xls'
,
'max:2000000'
],
'anexoPlanilha'
=>
[(
$request
->
anexoPlanilhaPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,xls
,xlsx
'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
'anexoPlanoTrabalho.*'
=>
[
'nullable'
,
'file'
,
'mimes:pdf'
,
'max:2000000'
],
]);
]);
if
(
gettype
(
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
))
!=
'integer'
){
return
$this
->
validarAnexosRascunho
(
$request
,
$trabalho
);
}
//$trabalho = Trabalho::create([
//$trabalho = Trabalho::create([
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'titulo'
]
=
$request
->
nomeProjeto
;
$trabalho
[
'coordenador_id'
]
=
$coordenador
->
id
;
$trabalho
[
'coordenador_id'
]
=
$coordenador
->
id
;
...
@@ -306,7 +311,7 @@ class TrabalhoController extends Controller
...
@@ -306,7 +311,7 @@ class TrabalhoController extends Controller
//---Dados do Projeto
//---Dados do Projeto
$trabalho
=
Trabalho
::
where
(
'proponente_id'
,
$proponente
->
id
)
->
where
(
'evento_id'
,
$request
->
editalId
)
->
where
(
'status'
,
'Rascunho'
)
$trabalho
=
Trabalho
::
where
(
'proponente_id'
,
$proponente
->
id
)
->
where
(
'evento_id'
,
$request
->
editalId
)
->
where
(
'status'
,
'Rascunho'
)
->
orderByDesc
(
'updated_at'
)
->
first
();
->
orderByDesc
(
'updated_at'
)
->
first
();
//
dd($trabalho);
//dd($trabalho);
if
(
$trabalho
==
null
){
if
(
$trabalho
==
null
){
$trabalho
=
new
Trabalho
();
$trabalho
=
new
Trabalho
();
$trabalho
->
proponente_id
=
$proponente
->
id
;
$trabalho
->
proponente_id
=
$proponente
->
id
;
...
@@ -320,7 +325,7 @@ class TrabalhoController extends Controller
...
@@ -320,7 +325,7 @@ class TrabalhoController extends Controller
$trabalho
->
fill
(
$trabalho
->
fill
(
array_fill_keys
(
$stringKeys
,
""
)
+
array_fill_keys
(
$intKeys
,
1
)
array_fill_keys
(
$stringKeys
,
""
)
+
array_fill_keys
(
$intKeys
,
1
)
)
->
save
();
)
->
save
();
//
dd($trabalho);
//dd($trabalho);
}
}
if
(
!
(
is_null
(
$request
->
nomeProjeto
))
)
{
if
(
!
(
is_null
(
$request
->
nomeProjeto
))
)
{
...
@@ -369,9 +374,24 @@ class TrabalhoController extends Controller
...
@@ -369,9 +374,24 @@ class TrabalhoController extends Controller
//---Anexos planos de trabalho
//---Anexos planos de trabalho
//dd($trabalho);
return
$trabalho
;
return
$trabalho
;
}
}
public
function
validarAnexosRascunho
(
Request
$request
,
$trabalho
){
//dd($trabalho->getAttributes());
$validator
=
Validator
::
make
(
$trabalho
->
getAttributes
(),[
'anexoPlanilhaPontuacao'
=>
$request
->
anexoPlanilha
==
null
?
[
'planilha'
]
:
[],
]);
if
(
$validator
->
fails
())
{
dd
(
'asdf'
);
return
back
()
->
withErrors
(
$validator
)
->
withInput
();
}
return
1
;
}
public
function
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
){
public
function
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
){
// Anexo Projeto
// Anexo Projeto
...
@@ -405,6 +425,77 @@ class TrabalhoController extends Controller
...
@@ -405,6 +425,77 @@ class TrabalhoController extends Controller
}
}
$trabalho
->
update
();
$trabalho
->
update
();
//Planos de trabalho
//Envia email com senha temp para cada participante do projeto
if
(
$request
->
emailParticipante
!=
null
){
foreach
(
$request
->
emailParticipante
as
$key
=>
$value
)
{
$userParticipante
=
User
::
where
(
'email'
,
$value
)
->
first
();
$participante
=
new
Participante
();
// Se participante ainda não existe
if
(
$userParticipante
==
null
){
$passwordTemporario
=
Str
::
random
(
8
);
// Mail::to($value)->send(new EmailParaUsuarioNaoCadastrado(Auth()->user()->name, ' ', 'Participante', $evento->nome, $passwordTemporario));
$usuario
=
User
::
create
([
'email'
=>
$value
,
'password'
=>
bcrypt
(
$passwordTemporario
),
'usuarioTemp'
=>
true
,
'name'
=>
$request
->
nomeParticipante
[
$key
],
'tipo'
=>
'participante'
,
]);
$participante
->
user_id
=
$usuario
->
id
;
$participante
->
trabalho_id
=
$trabalho
->
id
;
$participante
->
funcao_participante_id
=
$request
->
funcaoParticipante
[
$key
];
$participante
->
save
();
$usuario
->
participantes
()
->
save
(
$participante
);
$usuario
->
save
();
$participante
->
trabalhos
()
->
save
(
$trabalho
);
}
else
{
$participante
->
user_id
=
$userParticipante
->
id
;
$participante
->
trabalho_id
=
$trabalho
->
id
;
$participante
->
funcao_participante_id
=
$request
->
funcaoParticipante
[
$key
];
$participante
->
save
();
$userParticipante
->
participantes
()
->
save
(
$participante
);
$userParticipante
->
save
();
$participante
->
trabalhos
()
->
save
(
$trabalho
);
$subject
=
"Participante de Projeto"
;
$email
=
$value
;
Mail
::
to
(
$email
)
->
send
(
new
SubmissaoTrabalho
(
$userParticipante
,
$subject
,
$evento
,
$trabalho
));
}
if
(
$request
->
nomePlanoTrabalho
[
$key
]
!=
null
){
$usuario
=
User
::
where
(
'email'
,
$value
)
->
first
();
$participante
=
Participante
::
where
([[
'user_id'
,
'='
,
$usuario
->
id
],
[
'trabalho_id'
,
'='
,
$trabalho
->
id
]])
->
first
();
$path
=
'trabalhos/'
.
$request
->
editalId
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$request
->
nomePlanoTrabalho
[
$key
]
.
".pdf"
;
$file
=
$request
->
anexoPlanoTrabalho
[
$key
];
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$arquivo
=
new
Arquivo
();
$arquivo
->
titulo
=
$request
->
nomePlanoTrabalho
[
$key
];
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
data
=
$mytime
;
$arquivo
->
participanteId
=
$participante
->
id
;
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
}
}
}
return
$trabalho
;
return
$trabalho
;
}
}
/**
/**
...
...
app/Providers/AppServiceProvider.php
View file @
383491dd
...
@@ -27,5 +27,6 @@ class AppServiceProvider extends ServiceProvider
...
@@ -27,5 +27,6 @@ class AppServiceProvider extends ServiceProvider
Validator
::
extend
(
'cpf'
,
'\App\Utils\CpfValidation@validate'
);
Validator
::
extend
(
'cpf'
,
'\App\Utils\CpfValidation@validate'
);
Validator
::
extend
(
'link_lattes'
,
'\App\Utils\LattesValidation@validate'
,
'Link inválido'
);
Validator
::
extend
(
'link_lattes'
,
'\App\Utils\LattesValidation@validate'
,
'Link inválido'
);
Validator
::
extend
(
'link_grupo'
,
'\App\Utils\GrupoPesquisaValidation@validate'
,
'Link inválido'
);
Validator
::
extend
(
'link_grupo'
,
'\App\Utils\GrupoPesquisaValidation@validate'
,
'Link inválido'
);
Validator
::
extend
(
'planilha'
,
'\App\Utils\ExtensaoValidation@validate'
,
'Extensão do arquivo é inválida'
);
}
}
}
}
app/Utils/ExtensaoValidation.php
0 → 100644
View file @
383491dd
<?php
namespace
App\Utils
;
class
ExtensaoValidation
{
public
function
validate
(
$attribute
,
$value
,
$parameters
,
$validator
)
{
$extensions
=
array
(
"xls"
,
"xlsx"
,
"pdf"
);
$result
=
pathinfo
(
$value
)[
'extension'
];
if
(
!
in_array
(
$result
,
$extensions
)){
return
false
;
}
return
true
;
}
}
\ No newline at end of file
resources/views/evento/submeterTrabalho.blade.php
View file @
383491dd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
div
class
=
"card-body"
>
<
div
class
=
"card-body"
>
<
h5
class
=
"card-title"
>
Enviar
Projeto
</
h5
>
<
h5
class
=
"card-title"
>
Enviar
Projeto
</
h5
>
<
p
class
=
"card-text"
>
<
p
class
=
"card-text"
>
<
form
method
=
"POST"
action
=
"
{
{route('trabalho.store')}
}
"
enctype
=
"multipart/form-data"
>
<
form
method
=
"POST"
name
=
"formTrabalho"
action
=
"
{
{route('trabalho.store')}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"editalId"
value
=
"
{
{$edital->id}
}
"
>
<
input
type
=
"hidden"
name
=
"editalId"
value
=
"
{
{$edital->id}
}
"
>
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
'nomeAnexo'
=>
'anexoProjeto'
])}}
">Arquivo atual</a>
'nomeAnexo'
=>
'anexoProjeto'
])}}
">Arquivo atual</a>
@endif
@endif
<input type="
hidden
" id="
anexoProjetoPreenchido
" name="
anexoProjetoPreenchido
"
<input type="
hidden
" id="
anexoProjetoPreenchido
" name="
anexoProjetoPreenchido
"
@if( isset(
$rascunho
) &&
$rascunho->anexoProjeto
!= "") value="
sim
" @else value="
old
(
'anexoProjetoPreenchido'
)
" @endif >
@if( isset(
$rascunho
) &&
$rascunho->anexoProjeto
!= "") value="
sim
" @else value="
{{
old
(
'anexoProjetoPreenchido'
)
}}
" @endif >
<div class="
input
-
group
">
<div class="
input
-
group
">
<div class="
custom
-
file
">
<div class="
custom
-
file
">
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
'nomeAnexo'
=>
'anexoLattesCoordenador'
])}}
">Arquivo atual</a>
'nomeAnexo'
=>
'anexoLattesCoordenador'
])}}
">Arquivo atual</a>
@endif
@endif
<input type="
hidden
" id="
anexoLattesPreenchido
" name="
anexoLattesPreenchido
"
<input type="
hidden
" id="
anexoLattesPreenchido
" name="
anexoLattesPreenchido
"
@if( isset(
$rascunho
) &&
$rascunho->anexoLattesCoordenador
!= "") value="
sim
" @else value="
old
(
'anexoLattesPreenchido'
)
" @endif >
@if( isset(
$rascunho
) &&
$rascunho->anexoLattesCoordenador
!= "") value="
sim
" @else value="
{{
old
(
'anexoLattesPreenchido'
)
}}
" @endif >
<div class="
input
-
group
">
<div class="
input
-
group
">
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
'nomeAnexo'
=>
'anexoAutorizacaoComiteEtica'
])}}
">Arquivo atual</a>
'nomeAnexo'
=>
'anexoAutorizacaoComiteEtica'
])}}
">Arquivo atual</a>
@endif
@endif
<input type="
hidden
" id="
anexoComitePreenchido
" name="
anexoComitePreenchido
"
<input type="
hidden
" id="
anexoComitePreenchido
" name="
anexoComitePreenchido
"
@if( isset(
$rascunho
) &&
$rascunho->anexoAutorizacaoComiteEtica
!= "") value="
sim
" @else value="
old
(
'anexoComitePreenchido'
)
" @endif >
@if( isset(
$rascunho
) &&
$rascunho->anexoAutorizacaoComiteEtica
!= "") value="
sim
" @else value="
{{
old
(
'anexoComitePreenchido'
)
}}
" @endif >
<div class="
input
-
group
">
<div class="
input
-
group
">
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
'nomeAnexo'
=>
'anexoPlanilhaPontuacao'
])}}
">Arquivo atual</a>
'nomeAnexo'
=>
'anexoPlanilhaPontuacao'
])}}
">Arquivo atual</a>
@endif
@endif
<input type="
hidden
" id="
anexoPlanilhaPreenchido
" name="
anexoPlanilhaPreenchido
"
<input type="
hidden
" id="
anexoPlanilhaPreenchido
" name="
anexoPlanilhaPreenchido
"
@if( isset(
$rascunho
) &&
$rascunho->anexoPlanilhaPontuacao
!= "") value="
sim
" @else value="
old
(
'anexoPlanilhaPreenchido'
)
" @endif >
@if( isset(
$rascunho
) &&
$rascunho->anexoPlanilhaPontuacao
!= "") value="
sim
" @else value="
{{
old
(
'anexoPlanilhaPreenchido'
)
}}
" @endif >
<div class="
input
-
group
">
<div class="
input
-
group
">
<div class="
custom
-
file
">
<div class="
custom
-
file
">
...
@@ -234,6 +234,11 @@
...
@@ -234,6 +234,11 @@
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
@error('anexoPlanilhaPontuacao')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
...
@@ -243,7 +248,7 @@
...
@@ -243,7 +248,7 @@
'nomeAnexo'
=>
'justificativaAutorizacaoEtica'
])}}
">Arquivo atual</a>
'nomeAnexo'
=>
'justificativaAutorizacaoEtica'
])}}
">Arquivo atual</a>
@endif
@endif
<input type="
hidden
" id="
anexoJustificativaPreenchido
" name="
anexoJustificativaPreenchido
"
<input type="
hidden
" id="
anexoJustificativaPreenchido
" name="
anexoJustificativaPreenchido
"
@if( isset(
$rascunho
) &&
$rascunho->justificativaAutorizacaoEtica
!= "") value="
sim
" @else value="
old
(
'anexoJustificativaPreenchido'
)
" @endif >
@if( isset(
$rascunho
) &&
$rascunho->justificativaAutorizacaoEtica
!= "") value="
sim
" @else value="
{{
old
(
'anexoJustificativaPreenchido'
)
}}
" @endif >
<div class="
input
-
group
">
<div class="
input
-
group
">
...
@@ -268,7 +273,7 @@
...
@@ -268,7 +273,7 @@
'nomeAnexo'
=>
'anexoDecisaoCONSU'
])}}
">Arquivo atual</a>
'nomeAnexo'
=>
'anexoDecisaoCONSU'
])}}
">Arquivo atual</a>
@endif
@endif
<input type="
hidden
" id="
anexoConsuPreenchido
" name="
anexoConsuPreenchido
"
<input type="
hidden
" id="
anexoConsuPreenchido
" name="
anexoConsuPreenchido
"
@if( isset(
$rascunho
) &&
$rascunho->anexoDecisaoCONSU
!= "") value="
sim
" @else value="
old
(
'anexoConsuPreenchido'
)
" @endif >
@if( isset(
$rascunho
) &&
$rascunho->anexoDecisaoCONSU
!= "") value="
sim
" @else value="
{{
old
(
'anexoConsuPreenchido'
)
}}
" @endif >
<div class="
input
-
group
">
<div class="
input
-
group
">
<div class="
custom
-
file
">
<div class="
custom
-
file
">
...
@@ -770,6 +775,11 @@
...
@@ -770,6 +775,11 @@
anexoPlanilhaPreenchido
.
value
=
"sim"
;
anexoPlanilhaPreenchido
.
value
=
"sim"
;
}
}
}
}
function
removerPlanilha
(){
console
.
log
(
'a'
);
$
(
'#anexoPlanilhaPreenchido'
)
.
val
(
""
);
}
window
.
onload
=
areas
();
window
.
onload
=
areas
();
window
.
onload
=
habilitarBotao
();
window
.
onload
=
habilitarBotao
();
</
script
>
</
script
>
...
...
resources/views/participante/projetos.blade.php
View file @
383491dd
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
<!--
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"
>
Criar
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index' )}}"
class
=
"btn btn-primary"
>
Criar
projeto
</
a
>
@
endif
@
endif
</
div
>
</
div
>
</
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