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
e32e7701
"app/Http/git@sites.upe.br:walter.felipe/pad-upe.git" did not exist on "5e6aeadc8725877edea9dbd363940d492c61f59c"
Commit
e32e7701
authored
Mar 21, 2022
by
KelwinJonas
Browse files
Merge branch 'master' of
https://github.com/lmts-ufape/submeta
parents
4bab285e
c57f3a05
Changes
10
Show whitespace changes
Inline
Side-by-side
app/DocumentacaoComplementar.php
deleted
100644 → 0
View file @
4bab285e
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
DocumentacaoComplementar
extends
Model
{
protected
$fillable
=
[
'termoCompromisso'
,
'comprovanteMatricula'
,
'linkLattes'
,
'pdfLattes'
,
'participante_id'
,
];
public
function
participante
(){
return
$this
->
belongsTo
(
Participante
::
class
,
'participante_id'
,
'id'
);
}
}
app/Evento.php
View file @
e32e7701
...
@@ -16,7 +16,8 @@ class Evento extends Model
...
@@ -16,7 +16,8 @@ class Evento extends Model
'inicioSubmissao'
,
'fimSubmissao'
,
'inicioRevisao'
,
'fimRevisao'
,
'inicioSubmissao'
,
'fimSubmissao'
,
'inicioRevisao'
,
'fimRevisao'
,
'resultado_final'
,
'resultado_preliminar'
,
'coordenadorId'
,
'resultado_final'
,
'resultado_preliminar'
,
'coordenadorId'
,
'numMaxTrabalhos'
,
'numMaxCoautores'
,
'hasResumo'
,
'criador_id'
,
'numParticipantes'
,
'numMaxTrabalhos'
,
'numMaxCoautores'
,
'hasResumo'
,
'criador_id'
,
'numParticipantes'
,
'dt_inicioRelatorioParcial'
,
'dt_fimRelatorioParcial'
,
'dt_inicioRelatorioFinal'
,
'dt_fimRelatorioFinal'
'dt_inicioRelatorioParcial'
,
'dt_fimRelatorioParcial'
,
'dt_inicioRelatorioFinal'
,
'dt_fimRelatorioFinal'
,
'formAvaliacaoExterno'
,
'formAvaliacaoInterno'
];
];
public
function
endereco
(){
public
function
endereco
(){
...
...
app/Http/Controllers/DocumentacaoComplementarController.php
View file @
e32e7701
...
@@ -17,9 +17,10 @@ class DocumentacaoComplementarController extends Controller
...
@@ -17,9 +17,10 @@ class DocumentacaoComplementarController extends Controller
$docComp
=
DocumentacaoComplementar
::
find
(
$request
->
docId
);
$docComp
=
DocumentacaoComplementar
::
find
(
$request
->
docId
);
}
else
{
}
else
{
$docComp
=
new
DocumentacaoComplementar
;
$docComp
=
new
DocumentacaoComplementar
;
$docComp
->
save
();
}
}
$pasta
=
'docComplementar/'
.
Auth
::
user
()
->
id
;
$pasta
=
'docComplementar/'
.
$docComp
->
id
;
$docComp
->
termoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo De Compromisso.pdf"
);
$docComp
->
termoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo De Compromisso.pdf"
);
$docComp
->
comprovanteMatricula
=
Storage
::
putFileAs
(
$pasta
,
$request
->
comprovanteMatricula
,
"Comprovante De Matricula.pdf"
);
$docComp
->
comprovanteMatricula
=
Storage
::
putFileAs
(
$pasta
,
$request
->
comprovanteMatricula
,
"Comprovante De Matricula.pdf"
);
...
@@ -27,11 +28,9 @@ class DocumentacaoComplementarController extends Controller
...
@@ -27,11 +28,9 @@ class DocumentacaoComplementarController extends Controller
$docComp
->
termoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"TermoDeCompromisso.pdf"
);
$docComp
->
termoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"TermoDeCompromisso.pdf"
);
$docComp
->
participante_id
=
$request
->
partcipanteId
;
$docComp
->
participante_id
=
$request
->
partcipanteId
;
$docComp
->
linkLattes
=
$request
->
linkLattes
;
$docComp
->
linkLattes
=
$request
->
linkLattes
;
if
(
$request
->
docId
!=
null
){
$docComp
->
update
();
$docComp
->
update
();
}
else
{
$docComp
->
save
();
}
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
"Documentação complementar enviada com sucesso"
]);
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
"Documentação complementar enviada com sucesso"
]);
...
...
app/Http/Controllers/EventoController.php
View file @
e32e7701
...
@@ -126,6 +126,10 @@ class EventoController extends Controller
...
@@ -126,6 +126,10 @@ class EventoController extends Controller
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalInterno'
=>
[(
$request
->
pdfFormAvalInternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
]
,
'pdfFormAvalInterno'
=>
[
'required'
,
'file'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
//'modeloDocumento' => [],
//'modeloDocumento' => [],
]);
]);
...
@@ -154,6 +158,8 @@ class EventoController extends Controller
...
@@ -154,6 +158,8 @@ class EventoController extends Controller
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalInterno'
=>
[(
$request
->
pdfFormAvalInternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
//'modeloDocumento' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'],
//'modeloDocumento' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'],
]);
]);
...
@@ -214,6 +220,26 @@ class EventoController extends Controller
...
@@ -214,6 +220,26 @@ class EventoController extends Controller
$evento
->
modeloDocumento
=
$path
.
$nome
;
$evento
->
modeloDocumento
=
$path
.
$nome
;
}
}
if
(
isset
(
$request
->
pdfFormAvalInterno
)){
$pdfFormAvalInterno
=
$request
->
pdfFormAvalInterno
;
$extension
=
$pdfFormAvalInterno
->
extension
();
$path
=
'pdfFormAvalInterno/'
.
$evento
->
id
.
'/'
;
$nome
=
"formulario de avaliação interno"
.
"."
.
$extension
;
Storage
::
putFileAs
(
$path
,
$pdfFormAvalInterno
,
$nome
);
$evento
->
formAvaliacaoInterno
=
$path
.
$nome
;
}
if
(
isset
(
$request
->
pdfFormAvalExterno
)){
$pdfFormAvalExterno
=
$request
->
pdfFormAvalExterno
;
$extension
=
$pdfFormAvalExterno
->
extension
();
$path
=
'pdfFormAvalExterno/'
.
$evento
->
id
.
'/'
;
$nome
=
"formulario de avaliação externo"
.
"."
.
$extension
;
Storage
::
putFileAs
(
$path
,
$pdfFormAvalExterno
,
$nome
);
$evento
->
formAvaliacaoExterno
=
$path
.
$nome
;
}
$evento
->
update
();
$evento
->
update
();
// $user = Auth::user();
// $user = Auth::user();
...
@@ -247,6 +273,14 @@ class EventoController extends Controller
...
@@ -247,6 +273,14 @@ class EventoController extends Controller
$nome
=
"modelo"
.
"."
.
$extension
;
$nome
=
"modelo"
.
"."
.
$extension
;
$eventoTemp
->
modeloDocumento
=
Storage
::
putFileAs
(
$path
,
$request
->
modeloDocumento
,
$nome
);
$eventoTemp
->
modeloDocumento
=
Storage
::
putFileAs
(
$path
,
$request
->
modeloDocumento
,
$nome
);
}
}
if
(
!
(
is_null
(
$request
->
pdfFormAvalExterno
))
)
{
$pasta
=
'pdfFormAvalExterno/'
.
$eventoTemp
->
id
;
$eventoTemp
->
formAvaliacaoExterno
=
Storage
::
putFileAs
(
$pasta
,
$request
->
pdfFormAvalExterno
,
'formulario de avaliação externo.pdf'
);
}
if
(
!
(
is_null
(
$request
->
pdfFormAvalInterno
))
)
{
$pasta
=
'pdfFormAvalInterno/'
.
$eventoTemp
->
id
;
$eventoTemp
->
formAvaliacaoInterno
=
Storage
::
putFileAs
(
$pasta
,
$request
->
pdfFormAvalInterno
,
'formulario de avaliação interno.pdf'
);
}
$eventoTemp
->
update
();
$eventoTemp
->
update
();
...
@@ -378,6 +412,8 @@ class EventoController extends Controller
...
@@ -378,6 +412,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalInterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
]);
]);
}
}
...
@@ -400,6 +436,8 @@ class EventoController extends Controller
...
@@ -400,6 +436,8 @@ class EventoController extends Controller
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalInterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
]);
]);
$evento
->
nome
=
$request
->
nome
;
$evento
->
nome
=
$request
->
nome
;
...
@@ -437,6 +475,26 @@ class EventoController extends Controller
...
@@ -437,6 +475,26 @@ class EventoController extends Controller
$evento
->
modeloDocumento
=
$path
.
$nome
;
$evento
->
modeloDocumento
=
$path
.
$nome
;
}
}
if
(
isset
(
$request
->
pdfFormAvalInterno
)){
$pdfFormAvalInterno
=
$request
->
pdfFormAvalInterno
;
$extension
=
$pdfFormAvalInterno
->
extension
();
$path
=
'pdfFormAvalInterno/'
.
$evento
->
id
.
'/'
;
$nome
=
"formulario de avaliação interno"
.
"."
.
$extension
;
Storage
::
putFileAs
(
$path
,
$pdfFormAvalInterno
,
$nome
);
$evento
->
formAvaliacaoInterno
=
$path
.
$nome
;
}
if
(
isset
(
$request
->
pdfFormAvalExterno
)){
$pdfFormAvalExterno
=
$request
->
pdfFormAvalExterno
;
$extension
=
$pdfFormAvalExterno
->
extension
();
$path
=
'pdfFormAvalExterno/'
.
$evento
->
id
.
'/'
;
$nome
=
"formulario de avaliação externo"
.
"."
.
$extension
;
Storage
::
putFileAs
(
$path
,
$pdfFormAvalExterno
,
$nome
);
$evento
->
formAvaliacaoExterno
=
$path
.
$nome
;
}
$evento
->
update
();
$evento
->
update
();
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
...
...
app/Http/Controllers/ParticipanteController.php
View file @
e32e7701
...
@@ -117,4 +117,16 @@ class ParticipanteController extends Controller
...
@@ -117,4 +117,16 @@ class ParticipanteController extends Controller
$participante
->
save
();
$participante
->
save
();
return
redirect
()
->
back
()
->
with
([
'mensagem'
=>
'Alteração da bolsa realizada com sucesso!'
]);
return
redirect
()
->
back
()
->
with
([
'mensagem'
=>
'Alteração da bolsa realizada com sucesso!'
]);
}
}
public
function
atualizarDocComplementar
(
Request
$request
){
$participante
=
Participante
::
find
(
$request
->
partcipanteId
);
$pasta
=
'participantes/'
.
$participante
->
id
;
$participante
->
anexoTermoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo_de_Compromisso.pdf"
);
$participante
->
anexoComprovanteMatricula
=
Storage
::
putFileAs
(
$pasta
,
$request
->
comprovanteMatricula
,
"Comprovante_de_Matricula.pdf"
);
$participante
->
anexoLattes
=
Storage
::
putFileAs
(
$pasta
,
$request
->
pdfLattes
,
"Curriculo_Lattes.pdf"
);
$participante
->
linkLattes
=
$request
->
linkLattes
;
$participante
->
update
();
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
"Documentação complementar enviada com sucesso"
]);
}
}
}
database/migrations/2022_0
2_22_094237_create_documentacao_complementars_table
.php
→
database/migrations/2022_0
3_17_085158_alter_table_eventos3
.php
View file @
e32e7701
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
...
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Support\Facades\Schema
;
class
CreateDocumentacaoComplementarsTable
extends
Migration
class
AlterTableEventos3
extends
Migration
{
{
/**
/**
* Run the migrations.
* Run the migrations.
...
@@ -13,17 +13,9 @@ class CreateDocumentacaoComplementarsTable extends Migration
...
@@ -13,17 +13,9 @@ class CreateDocumentacaoComplementarsTable extends Migration
*/
*/
public
function
up
()
public
function
up
()
{
{
Schema
::
create
(
'documentacao_complementars'
,
function
(
Blueprint
$table
)
{
Schema
::
table
(
'eventos'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'formAvaliacaoExterno'
)
->
nullable
();
$table
->
string
(
'termoCompromisso'
);
$table
->
string
(
'formAvaliacaoInterno'
)
->
nullable
();
$table
->
string
(
'comprovanteMatricula'
);
$table
->
string
(
'pdfLattes'
);
$table
->
string
(
'linkLattes'
);
$table
->
integer
(
'participante_id'
)
->
nullable
();
$table
->
foreign
(
'participante_id'
)
->
references
(
'id'
)
->
on
(
'participantes'
);
$table
->
timestamps
();
});
});
}
}
...
@@ -34,6 +26,9 @@ class CreateDocumentacaoComplementarsTable extends Migration
...
@@ -34,6 +26,9 @@ class CreateDocumentacaoComplementarsTable extends Migration
*/
*/
public
function
down
()
public
function
down
()
{
{
Schema
::
dropIfExists
(
'documentacao_complementars'
);
Schema
::
table
(
'eventos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'formAvaliacaoExterno'
);
$table
->
dropColumn
(
'formAvaliacaoInterno'
);
});
}
}
}
}
resources/views/documentacaoComplementar/listar.blade.php
View file @
e32e7701
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
<td style="
text
-
align
:
center
;
" title="
{{
$participante
->
user
->
name
}}
">
{
{$participante->user->name}
}
</td>
<td style="
text
-
align
:
center
;
" title="
{{
$participante
->
user
->
name
}}
">
{
{$participante->user->name}
}
</td>
<td style="
text
-
align
:
center
;
">
<td style="
text
-
align
:
center
;
">
<button type="
button
" class="
btn
btn
-
primary
" data-toggle="
modal
" data-target="
#modalConfirm{{$participante->id}}" @if($trabalho->status!="aprovado")disabled="disabled" @endif>
<button type="
button
" class="
btn
btn
-
primary
" data-toggle="
modal
" data-target="
#modalConfirm{{$participante->id}}" @if($trabalho->status!="aprovado")disabled="disabled" @endif>
@
if
(
$participante
->
documentacaoComplementar
==
null
)
@
if
(
$participante
->
anexoComprovanteMatricula
==
null
||
$participante
->
anexoTermoCompromisso
==
null
||
$participante
->
anexoLattes
==
null
||
$participante
->
linkLattes
==
null
)
Pendente
Pendente
@
else
@
else
Visualizar
Visualizar
...
@@ -43,7 +45,7 @@
...
@@ -43,7 +45,7 @@
</
td
>
</
td
>
</
tbody
>
</
tbody
>
<
div
class
=
"modal fade"
id
=
"modalConfirm
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"dial
o
g"
<
div
class
=
"modal fade"
id
=
"modalConfirm
{
{$participante->id}
}
"
tabindex
=
"-1"
role
=
"
o
dialg"
aria
-
labelledby
=
"modalConfirmLabel"
aria
-
hidden
=
"true"
>
aria
-
labelledby
=
"modalConfirmLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-lg"
role
=
"document"
>
<
div
class
=
"modal-dialog modal-lg"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content"
>
...
@@ -57,7 +59,11 @@
...
@@ -57,7 +59,11 @@
<
input
type
=
"hidden"
value
=
"
{
{$participante->id}
}
"
name
=
"partcipanteId"
>
<
input
type
=
"hidden"
value
=
"
{
{$participante->id}
}
"
name
=
"partcipanteId"
>
<
div
class
=
"row col-md-12"
>
<
div
class
=
"row col-md-12"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
label
class
=
"control-label "
>
Termo
de
Compromisso
</
label
>
<
label
class
=
"control-label "
>
Termo
de
Compromisso
@
if
(
$participante
->
anexoTermoCompromisso
)
:
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoTermoCompromisso
]) }}"
>
Arquivo
atual
</
a
>
@
endif
</
label
>
<
br
>
<
br
>
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"termoCompromisso"
accept
=
".pdf"
id
=
"termoCompromisso
{
{$participante->id}
}
"
required
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"termoCompromisso"
accept
=
".pdf"
id
=
"termoCompromisso
{
{$participante->id}
}
"
required
/>
/>
...
@@ -69,7 +75,11 @@
...
@@ -69,7 +75,11 @@
<
br
>
<
br
>
</
div
>
</
div
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
label
class
=
"control-label "
>
Comprovante
de
Matricula
</
label
>
<
label
class
=
"control-label "
>
Comprovante
de
Matricula
@
if
(
$participante
->
anexoComprovanteMatricula
)
:
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoComprovanteMatricula
]) }}"
>
Arquivo
atual
</
a
>
@
endif
</
label
>
<
br
>
<
br
>
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"comprovanteMatricula"
accept
=
".pdf"
id
=
"comprovanteMatricula
{
{$participante->id}
}
"
required
/>
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"comprovanteMatricula"
accept
=
".pdf"
id
=
"comprovanteMatricula
{
{$participante->id}
}
"
required
/>
@
error
(
'comprovanteMatricula'
)
@
error
(
'comprovanteMatricula'
)
...
@@ -81,7 +91,10 @@
...
@@ -81,7 +91,10 @@
</
div
>
</
div
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
label
class
=
"control-label "
>
PDF
Lattes
</
label
>
<
label
class
=
"control-label "
>
PDF
Lattes
@
if
(
$participante
->
anexoLattes
)
:
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoLattes
]) }}"
>
Arquivo
atual
</
a
>
@
endif
</
label
>
<
br
>
<
br
>
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"pdfLattes"
accept
=
".pdf"
id
=
"pdfLattes
{
{$participante->id}
}
"
<
input
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"pdfLattes"
accept
=
".pdf"
id
=
"pdfLattes
{
{$participante->id}
}
"
required
/>
required
/>
...
@@ -92,10 +105,10 @@
...
@@ -92,10 +105,10 @@
@
enderror
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
label
class
=
"control-label "
>
Link
Lattes
</
label
>
<
label
class
=
"control-label "
>
Link
Lattes
</
label
>
<
br
>
<
br
>
<
input
type
=
"text"
class
=
"input-group-text col-md-12"
name
=
"linkLattes"
placeholder
=
"Link Lattes"
id
=
"linkLattes
{
{$participante->id}
}
"
<
input
type
=
"text"
class
=
"input-group-text col-md-12"
name
=
"linkLattes"
placeholder
=
"Link Lattes"
id
=
"linkLattes
{
{$participante->id}
}
"
required
/>
required
@
if
(
$participante
->
linkLattes
)
value
=
"
{
{$participante->linkLattes}
}
"
@
endif
/>
@
error
(
'linkLattes'
)
@
error
(
'linkLattes'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
e32e7701
...
@@ -319,6 +319,39 @@
...
@@ -319,6 +319,39 @@
@enderror
@enderror
</div>
</div>
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
">
<label for="
pdfFormAvalExterno
">Formulário de avaliação externo:</label>
@if(old('pdfFormAvalExternoPreenchido') != null)
<a id="
pdfFormAvalExternoTemp
" href="
{{
route
(
'baixar.evento.temp'
,
[
'nomeAnexo'
=>
'formAvaliacaoExterno'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
pdfFormAvalExternoPreenchido
" name="
pdfFormAvalExternoPreenchido
" value="
{{
old
(
'pdfFormAvalExternoPreenchido'
)
}}
" >
<input type="
file
" accept="
.
pdf
" class="
form
-
control
-
file
pdf
@
error
(
'pdfFormAvalExterno'
)
is
-
invalid
@
enderror
" name="
pdfFormAvalExterno
" value="
{{
old
(
'pdfFormAvalExterno'
)
}}
" id="
pdfFormAvalExterno
" onchange="
exibirAnexoTemp
(
this
)
">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfFormAvalExterno')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
">
<label for="
pdfFormAvalExterno
">Formulário de avaliação interno:</label>
@if(old('pdfFormAvalInternoPreenchido') != null)
<a id="
pdfFormAvalExternoTemp
" href="
{{
route
(
'baixar.evento.temp'
,
[
'nomeAnexo'
=>
'formAvaliacaoInterno'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
pdfFormAvalInternoPreenchido
" name="
pdfFormAvalInternoPreenchido
" value="
{{
old
(
'pdfFormAvalInternoPreenchido'
)
}}
" >
<input type="
file
" accept="
.
pdf
" class="
form
-
control
-
file
pdf
@
error
(
'pdfFormAvalInterno'
)
is
-
invalid
@
enderror
" name="
pdfFormAvalInterno
" value="
{{
old
(
'pdfFormAvalInterno'
)
}}
" id="
pdfFormAvalInterno
" onchange="
exibirAnexoTemp
(
this
)
">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfFormAvalInterno')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
</div>
</div>
<div class="
row
justify
-
content
-
center
" style="
margin
:
20
px
0
20
px
0
">
<div class="
row
justify
-
content
-
center
" style="
margin
:
20
px
0
20
px
0
">
...
@@ -349,6 +382,14 @@
...
@@ -349,6 +382,14 @@
var modeloDocumentoPreenchido = document.getElementById('modeloDocumentoPreenchido');
var modeloDocumentoPreenchido = document.getElementById('modeloDocumentoPreenchido');
modeloDocumentoPreenchido.value = "
sim
";
modeloDocumentoPreenchido.value = "
sim
";
}
}
if(file.id === "
pdfFormAvalExterno
"){
var pdfFormAvalExternoPreenchido = document.getElementById('pdfFormAvalExternoPreenchido');
pdfFormAvalExternoPreenchido.value = "
sim
";
}
if(file.id === "
pdfFormAvalInterno
"){
var pdfFormAvalInternoPreenchido = document.getElementById('pdfFormAvalInternoPreenchido');
pdfFormAvalInternoPreenchido.value = "
sim
";
}
}
}
$("
input
[
type
=
'file'
]
").on("
change
", function () {
$("
input
[
type
=
'file'
]
").on("
change
", function () {
...
...
resources/views/evento/editarEvento.blade.php
View file @
e32e7701
...
@@ -311,6 +311,38 @@
...
@@ -311,6 +311,38 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Formulário
de
avaliação
externo
:</
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoExterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Formulário
de
avaliação
interno
:</
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoInterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfFormAvalInterno') is-invalid @enderror"
name
=
"pdfFormAvalInterno"
value
=
"{{ old('pdfFormAvalInterno') }}"
id
=
"pdfFormAvalInterno"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalInterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
...
...
routes/web.php
View file @
e32e7701
...
@@ -154,7 +154,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
...
@@ -154,7 +154,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
//########## Documentação Complementar
//########## Documentação Complementar
Route
::
get
(
'/documentacaoComplementar'
,
'ParticipanteController@listarParticipanteProjeto'
)
->
name
(
'docComplementar.listar'
);
Route
::
get
(
'/documentacaoComplementar'
,
'ParticipanteController@listarParticipanteProjeto'
)
->
name
(
'docComplementar.listar'
);
Route
::
post
(
'/documentacaoComplementar/enviar'
,
'
DocumentacaoComplementarController@cri
ar'
)
->
name
(
'docComplementar.enviar'
);
Route
::
post
(
'/documentacaoComplementar/enviar'
,
'
ParticipanteController@atualizarDocComplement
ar'
)
->
name
(
'docComplementar.enviar'
);
//######### Atribuição #######################################
//######### Atribuição #######################################
Route
::
get
(
'/atribuir'
,
'AtribuicaoController@distribuicaoAutomatica'
)
->
name
(
'distribuicao'
);
Route
::
get
(
'/atribuir'
,
'AtribuicaoController@distribuicaoAutomatica'
)
->
name
(
'distribuicao'
);
...
...
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