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
14ca4d39
Commit
14ca4d39
authored
Jun 30, 2022
by
unknown
Browse files
Adição de campo obrigatorio CPF e RG
parent
6ea315f4
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/ParticipanteController.php
View file @
14ca4d39
...
@@ -112,6 +112,7 @@ class ParticipanteController extends Controller
...
@@ -112,6 +112,7 @@ class ParticipanteController extends Controller
$editalTipo
=
$request
->
eventoTipo
;
$editalTipo
=
$request
->
eventoTipo
;
$participante
->
anexoTermoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo_de_Compromisso.pdf"
);
$participante
->
anexoTermoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo_de_Compromisso.pdf"
);
$participante
->
anexoComprovanteMatricula
=
Storage
::
putFileAs
(
$pasta
,
$request
->
comprovanteMatricula
,
"Comprovante_de_Matricula.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"
){
if
(
$request
->
eventoTipo
!=
"PIBEX"
){
$participante
->
anexoLattes
=
Storage
::
putFileAs
(
$pasta
,
$request
->
pdfLattes
,
"Curriculo_Lattes.pdf"
);
$participante
->
anexoLattes
=
Storage
::
putFileAs
(
$pasta
,
$request
->
pdfLattes
,
"Curriculo_Lattes.pdf"
);
...
...
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'
);
});
}
}
resources/views/documentacaoComplementar/listar.blade.php
View file @
14ca4d39
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<
div
class
=
"row col-md-12"
>
<
div
class
=
"row col-md-12"
>
<
div
class
=
"col-md-6"
style
=
"margin-top: 15px"
>
<
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
>
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoTermoCompromisso
]) }}"
>
Arquivo
atual
</
a
>
@
endif
@
endif
</
label
>
</
label
>
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<
br
>
<
br
>
</
div
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"margin-top: 15px"
>
<
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
>
<
a
id
=
"modeloDocumentoTemp"
href
=
"{{ route('baixar.documentosParticipante', ['pathDocumento' =>
$participante->anexoComprovanteMatricula
]) }}"
>
Arquivo
atual
</
a
>
@
endif
@
endif
</
label
>
</
label
>
...
@@ -91,9 +91,27 @@
...
@@ -91,9 +91,27 @@
@
enderror
@
enderror
<
br
>
<
br
>
</
div
>
</
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
")
@if(
$trabalho->evento
->tipo != "
PIBEX
")
<
div
class
=
"col-md-6"
>
<div class="
col
-
md
-
6
"
style="
margin
-
top
:
15
px
"
>
<
label
class
=
"control-label "
>
PDF
Lattes
<
span
style
=
"color: red"
>*</
span
>@
if
(
$participante
->
anexoLattes
)
:
<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>
<a id="
modeloDocumentoTemp
" href="
{{
route
(
'baixar.documentosParticipante'
,
[
'pathDocumento'
=>
$participante
->
anexoLattes
])
}}
">Arquivo atual</a>
@endif
@endif
</label>
</label>
...
@@ -105,22 +123,25 @@
...
@@ -105,22 +123,25 @@
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
<br>
</div>
</div>
<
div
class
=
"col-md-6"
>
<div class="
col
-
md
-
6
"
style="
margin
-
top
:
15
px
"
>
<
label
class
=
"control-label "
content
=
"required"
>
Link
Lattes
<
span
style
=
"color: red"
>*</
span
>
:
</
label
>
<label class="
control
-
label
" content="
required
">Link Lattes <span style="
color
:
red
">*</span> </label>
<br>
<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
}}
"
<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')
@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>
</span>
</span>
@enderror
@enderror
<br>
</div>
</div>
@endif
@endif
<div class="
col
-
md
-
6
" style="
margin
-
top
:
15
px
">
<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>
<a id="
modeloDocumentoTemp
" href="
{{
route
(
'baixar.documentosParticipante'
,
[
'pathDocumento'
=>
$participante
->
anexoComprovanteBancario
])
}}
">Arquivo atual</a>
@endif
@endif
</label>
</label>
...
@@ -134,7 +155,7 @@
...
@@ -134,7 +155,7 @@
</div>
</div>
<div class="
col
-
md
-
6
" style="
margin
-
top
:
15
px
">
<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>
<a id="
modeloDocumentoTemp
" href="
{{
route
(
'baixar.documentosParticipante'
,
[
'pathDocumento'
=>
$participante
->
anexoAutorizacaoPais
])
}}
">Arquivo atual</a>
@endif
@endif
</label>
</label>
...
...
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