Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
14ca4d39
Commit
14ca4d39
authored
2 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Adição de campo obrigatorio CPF e RG
parent
6ea315f4
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/Http/Controllers/ParticipanteController.php
+1
-0
app/Http/Controllers/ParticipanteController.php
database/migrations/2022_06_30_110525_add_anexo_cpf_rg_to_participantes_table.php
+32
-0
..._06_30_110525_add_anexo_cpf_rg_to_participantes_table.php
resources/views/documentacaoComplementar/listar.blade.php
+30
-9
resources/views/documentacaoComplementar/listar.blade.php
with
63 additions
and
9 deletions
+63
-9
app/Http/Controllers/ParticipanteController.php
View file @
14ca4d39
...
...
@@ -112,6 +112,7 @@ class ParticipanteController extends Controller
$editalTipo
=
$request
->
eventoTipo
;
$participante
->
anexoTermoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo_de_Compromisso.pdf"
);
$participante
->
anexoComprovanteMatricula
=
Storage
::
putFileAs
(
$pasta
,
$request
->
comprovanteMatricula
,
"Comprovante_de_Matricula.pdf"
);
$participante
->
anexo_cpf_rg
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexo_cpf_rg
,
"Anexo_CPF_RG."
.
$request
->
file
(
'anexo_cpf_rg'
)
->
getClientOriginalExtension
());
if
(
$request
->
eventoTipo
!=
"PIBEX"
){
$participante
->
anexoLattes
=
Storage
::
putFileAs
(
$pasta
,
$request
->
pdfLattes
,
"Curriculo_Lattes.pdf"
);
...
...
This diff is collapsed.
Click to expand it.
database/migrations/2022_06_30_110525_add_anexo_cpf_rg_to_participantes_table.php
0 → 100644
View file @
14ca4d39
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddAnexoCpfRgToParticipantesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'participantes'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'anexo_cpf_rg'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'participantes'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'anexo_cpf_rg'
);
});
}
}
This diff is collapsed.
Click to expand it.
resources/views/documentacaoComplementar/listar.blade.php
View file @
14ca4d39
...
...
@@ -61,7 +61,7 @@
<
div
class
=
"row col-md-12"
>
<
div
class
=
"col-md-6"
style
=
"margin-top: 15px"
>
<
label
class
=
"control-label "
>
Termo
de
Compromisso
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexoTermoCompromisso
)
:
<
label
class
=
"control-label "
>
Termo
de
Compromisso
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexoTermoCompromisso
)
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoTermoCompromisso
]) }}"
>
Arquivo
atual
</
a
>
@
endif
</
label
>
...
...
@@ -77,7 +77,7 @@
<
br
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"margin-top: 15px"
>
<
label
class
=
"control-label "
>
Comprovante
de
Matricula
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexoComprovanteMatricula
)
:
<
label
class
=
"control-label "
>
Comprovante
de
Matricula
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexoComprovanteMatricula
)
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoComprovanteMatricula
]) }}"
>
Arquivo
atual
</
a
>
@
endif
</
label
>
...
...
@@ -91,9 +91,27 @@
@
enderror
<
br
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"margin-top: 15px"
>
<
label
class
=
"control-label "
>
CPF
e
RG
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexo_cpf_rg
)
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexo_cpf_rg
]) }}"
>
Arquivo
atual
</
a
>
@
endif
</
label
>
<
br
>
<
input
@
if
(
$trabalho
->
status
!=
"aprovado"
)
disabled
=
"disabled"
@
endif
type
=
"file"
class
=
"input-group-text"
value
=
""
name
=
"anexo_cpf_rg"
accept
=
".pdf"
id
=
"anexo_cpf_rg
{
{$participante->id}
}
"
required
"
/>
@error('anexo_cpf_rg')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
<br>
</div>
@if(
$trabalho->evento
->tipo != "
PIBEX
")
<
div
class
=
"col-md-6"
>
<
label
class
=
"control-label "
>
PDF
Lattes
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexoLattes
)
:
<div class="
col
-
md
-
6
"
style="
margin
-
top
:
15
px
"
>
<label class="
control
-
label
">PDF Lattes <span style="
color
:
red
">*</span>@if(
$participante->anexoLattes
)
<a id="
modeloDocumentoTemp
" href="
{{
route
(
'baixar.documentosParticipante'
,
[
'pathDocumento'
=>
$participante
->
anexoLattes
])
}}
">Arquivo atual</a>
@endif
</label>
...
...
@@ -105,22 +123,25 @@
<strong>{{
$message
}}</strong>
</span>
@enderror
<br>
</div>
<
div
class
=
"col-md-6"
>
<
label
class
=
"control-label "
content
=
"required"
>
Link
Lattes
<
span
style
=
"color: red"
>*</
span
>
:
</
label
>
<div class="
col
-
md
-
6
"
style="
margin
-
top
:
15
px
"
>
<label class="
control
-
label
" content="
required
">Link Lattes <span style="
color
:
red
">*</span> </label>
<br>
<input @if(
$trabalho->status
!="
aprovado
")disabled="
disabled
" @endif type="
text
" class="
input
-
group
-
text
col
-
md
-
12
" name="
linkLattes
" placeholder="
Link
Lattes
" id="
linkLattes
{{
$participante
->
id
}}
"
required
@
if
(
$participante
->
linkLattes
)
value
=
"
{
{$participante->linkLattes}
}
"
@
endif
maxlength
=
"250"
/>
required @if(
$participante->linkLattes
) value="
{{
$participante
->
linkLattes
}}
" @endif maxlength="
250
"
style="
width
:
322
px
;
"
/>
@error('linkLattes')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
<br>
</div>
@endif
<div class="
col
-
md
-
6
" style="
margin
-
top
:
15
px
">
<
label
class
=
"control-label "
>
Comprovante
Bancário
@
if
(
$participante
->
anexoComprovanteBancario
)
:
<label class="
control
-
label
">Comprovante Bancário @if(
$participante->anexoComprovanteBancario
)
<a id="
modeloDocumentoTemp
" href="
{{
route
(
'baixar.documentosParticipante'
,
[
'pathDocumento'
=>
$participante
->
anexoComprovanteBancario
])
}}
">Arquivo atual</a>
@endif
</label>
...
...
@@ -134,7 +155,7 @@
</div>
<div class="
col
-
md
-
6
" style="
margin
-
top
:
15
px
">
<
label
class
=
"control-label "
>
Autorização
dos
Pais
@
if
(
$participante
->
anexoAutorizacaoPais
)
:
<label class="
control
-
label
">Autorização dos Pais @if(
$participante->anexoAutorizacaoPais
)
<a id="
modeloDocumentoTemp
" href="
{{
route
(
'baixar.documentosParticipante'
,
[
'pathDocumento'
=>
$participante
->
anexoAutorizacaoPais
])
}}
">Arquivo atual</a>
@endif
</label>
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help