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
35bf1ba7
Commit
35bf1ba7
authored
May 10, 2023
by
Yuri Resende
Browse files
Desabilitando campos para a edição
parent
c9288303
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/projeto/editaFormulario/participantes.blade.php
View file @
35bf1ba7
...
@@ -159,6 +159,7 @@
...
@@ -159,6 +159,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Nome completo'])
@component('componentes.input', ['label' => 'Nome completo'])
<input
type=
"text"
<input
type=
"text"
disabled
class=
"form-control "
class=
"form-control "
value=
"{{ old('name')[$i] ?? ($participante->user->name ?? '') }}"
value=
"{{ old('name')[$i] ?? ($participante->user->name ?? '') }}"
name=
"name[{{ $i }}]"
name=
"name[{{ $i }}]"
...
@@ -180,6 +181,7 @@
...
@@ -180,6 +181,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'E-mail'])
@component('componentes.input', ['label' => 'E-mail'])
<input
type=
"email"
<input
type=
"email"
disabled
class=
"form-control"
class=
"form-control"
value=
"{{ old('email')[$i] ?? ($participante->user->email ?? '') }}"
value=
"{{ old('email')[$i] ?? ($participante->user->email ?? '') }}"
name=
"email[{{ $i }}]"
name=
"email[{{ $i }}]"
...
@@ -201,6 +203,7 @@
...
@@ -201,6 +203,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Data de nascimento'])
@component('componentes.input', ['label' => 'Data de nascimento'])
<input
type=
"text"
<input
type=
"text"
disabled
class=
"form-control"
class=
"form-control"
value=
"{{ old('data_de_nascimento')[$i] ?? ($participante->data_de_nascimento ?? '') }}"
value=
"{{ old('data_de_nascimento')[$i] ?? ($participante->data_de_nascimento ?? '') }}"
name=
"data_de_nascimento[{{ $i }}]"
name=
"data_de_nascimento[{{ $i }}]"
...
@@ -218,6 +221,7 @@
...
@@ -218,6 +221,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'CPF'])
@component('componentes.input', ['label' => 'CPF'])
<input
type=
"text"
<input
type=
"text"
disabled
class=
"form-control cpf"
class=
"form-control cpf"
value=
"{{ old('cpf')[$i] ?? ($participante->user->cpf ?? '') }}"
value=
"{{ old('cpf')[$i] ?? ($participante->user->cpf ?? '') }}"
name=
"cpf[{{ $i }}]"
name=
"cpf[{{ $i }}]"
...
@@ -236,6 +240,7 @@
...
@@ -236,6 +240,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'RG'])
@component('componentes.input', ['label' => 'RG'])
<input
type=
"text"
<input
type=
"text"
disabled
class=
"form-control rg"
class=
"form-control rg"
min=
"9"
min=
"9"
maxlength=
"9"
maxlength=
"9"
...
@@ -255,6 +260,7 @@
...
@@ -255,6 +260,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Celular'])
@component('componentes.input', ['label' => 'Celular'])
<input
type=
"tel"
<input
type=
"tel"
disabled
class=
"form-control celular"
class=
"form-control celular"
value=
"{{ old('celular')[$i] ?? ($participante->user->celular ?? '') }}"
value=
"{{ old('celular')[$i] ?? ($participante->user->celular ?? '') }}"
name=
"celular[{{ $i }}]"
name=
"celular[{{ $i }}]"
...
@@ -278,6 +284,7 @@
...
@@ -278,6 +284,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'CEP'])
@component('componentes.input', ['label' => 'CEP'])
<input
name=
"cep[{{ $i }}]"
<input
name=
"cep[{{ $i }}]"
disabled
type=
"text"
type=
"text"
id=
"cep{{ $i }}"
id=
"cep{{ $i }}"
value=
"{{ old('cep')[$i] ?? ($participante->user->endereco->cep ?? '') }}"
value=
"{{ old('cep')[$i] ?? ($participante->user->endereco->cep ?? '') }}"
...
@@ -294,6 +301,7 @@
...
@@ -294,6 +301,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Estado'])
@component('componentes.input', ['label' => 'Estado'])
<input
name=
"uf[{{ $i }}]"
<input
name=
"uf[{{ $i }}]"
disabled
type=
"text"
type=
"text"
class=
"form-control"
class=
"form-control"
value=
"{{ old('uf')[$i] ?? ($participante->user->endereco->uf ?? '') }}"
value=
"{{ old('uf')[$i] ?? ($participante->user->endereco->uf ?? '') }}"
...
@@ -309,6 +317,7 @@
...
@@ -309,6 +317,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Cidade'])
@component('componentes.input', ['label' => 'Cidade'])
<input
name=
"cidade[{{ $i }}]"
<input
name=
"cidade[{{ $i }}]"
disabled
type=
"text"
type=
"text"
id=
"cidade{{ $i }}"
id=
"cidade{{ $i }}"
class=
"form-control"
class=
"form-control"
...
@@ -324,6 +333,7 @@
...
@@ -324,6 +333,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Bairro'])
@component('componentes.input', ['label' => 'Bairro'])
<input
name=
"bairro[{{ $i }}]"
<input
name=
"bairro[{{ $i }}]"
disabled
type=
"text"
type=
"text"
id=
"bairro{{ $i }}"
id=
"bairro{{ $i }}"
class=
"form-control"
class=
"form-control"
...
@@ -339,6 +349,7 @@
...
@@ -339,6 +349,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Rua'])
@component('componentes.input', ['label' => 'Rua'])
<input
name=
"rua[{{ $i }}]"
<input
name=
"rua[{{ $i }}]"
disabled
type=
"text"
type=
"text"
id=
"rua{{ $i }}"
id=
"rua{{ $i }}"
class=
"form-control"
class=
"form-control"
...
@@ -354,6 +365,7 @@
...
@@ -354,6 +365,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Número'])
@component('componentes.input', ['label' => 'Número'])
<input
name=
"numero[{{ $i }}]"
<input
name=
"numero[{{ $i }}]"
disabled
type=
"text"
type=
"text"
class=
"form-control"
class=
"form-control"
value=
"{{ old('numero')[$i] ?? ($participante->user->endereco->numero ?? '') }}"
value=
"{{ old('numero')[$i] ?? ($participante->user->endereco->numero ?? '') }}"
...
@@ -373,6 +385,7 @@
...
@@ -373,6 +385,7 @@
for=
"firstname"
>
Complemento
</label>
for=
"firstname"
>
Complemento
</label>
<input
type=
"text"
<input
type=
"text"
class=
"form-control"
class=
"form-control"
disabled
value=
"{{ old('complemento')[$i] ?? ($participante->user->endereco->complemento ?? '') }}"
value=
"{{ old('complemento')[$i] ?? ($participante->user->endereco->complemento ?? '') }}"
name=
"complemento[{{ $i }}]"
name=
"complemento[{{ $i }}]"
placeholder=
"Complemento"
placeholder=
"Complemento"
...
@@ -396,6 +409,7 @@
...
@@ -396,6 +409,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Instituição de Ensino'])
@component('componentes.input', ['label' => 'Instituição de Ensino'])
<select
style=
"display: inline"
<select
style=
"display: inline"
disabled
onchange=
"showInstituicao(this)"
onchange=
"showInstituicao(this)"
class=
"form-control"
class=
"form-control"
name=
"instituicao[{{ $i }}]"
name=
"instituicao[{{ $i }}]"
...
@@ -427,6 +441,7 @@
...
@@ -427,6 +441,7 @@
@component('componentes.input', ['label' => 'Digite a Instituição'])
@component('componentes.input', ['label' => 'Digite a Instituição'])
<input
<input
id=
"outrainstituicao[{{ $i }}]"
id=
"outrainstituicao[{{ $i }}]"
disabled
type=
"text"
type=
"text"
class=
"form-control @error('instituicao') is-invalid @enderror"
class=
"form-control @error('instituicao') is-invalid @enderror"
name=
"outrainstituicao[{{ $i }}]"
name=
"outrainstituicao[{{ $i }}]"
...
@@ -445,6 +460,7 @@
...
@@ -445,6 +460,7 @@
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Curso'])
@component('componentes.input', ['label' => 'Curso'])
<select
style=
"display: inline"
<select
style=
"display: inline"
disabled
class=
"form-control"
class=
"form-control"
name=
"curso[{{ $i }}]"
name=
"curso[{{ $i }}]"
onchange=
"showCurso(this)"
onchange=
"showCurso(this)"
...
...
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