Commit 7c391855 authored by Gabriel-31415's avatar Gabriel-31415
Browse files

ajste

parent 1ea62356
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
</div> </div>
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'Celular']) @component('componentes.input', ['label' => 'Celular'])
<input type="tel" class="form-control celular" name="celular[]" placeholder="Celular" required/> <input type="number" class="form-control celular" name="celular[]" placeholder="Celular" required/>
@endcomponent @endcomponent
</div> </div>
<div class="col-md-12"><h5>Endereço</h5></div> <div class="col-md-12"><h5>Endereço</h5></div>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="pontuacaoPlanilha">Valor da planilha de pontuação <span style="color: red; font-weight:bold">*</span></label> <label for="pontuacaoPlanilha">Valor da planilha de pontuação <span style="color: red; font-weight:bold">*</span></label>
<input class="form-control @error('pontuacaoPlanilha') is-invalid @enderror" type="text" name="pontuacaoPlanilha" <input class="form-control @error('pontuacaoPlanilha') is-invalid @enderror" type="number" name="pontuacaoPlanilha"
value="{{old('pontuacaoPlanilha') !== null ? old('pontuacaoPlanilha') : (isset($rascunho) ? $rascunho->pontuacaoPlanilha : '')}}" required> value="{{old('pontuacaoPlanilha') !== null ? old('pontuacaoPlanilha') : (isset($rascunho) ? $rascunho->pontuacaoPlanilha : '')}}" required>
@error('pontuacaoPlanilha') @error('pontuacaoPlanilha')
......
...@@ -460,13 +460,15 @@ ...@@ -460,13 +460,15 @@
for (let index = 0; index < cln.children[i].querySelectorAll('input').length; index++) { for (let index = 0; index < cln.children[i].querySelectorAll('input').length; index++) {
let input = cln.children[i].querySelectorAll('input')[index]; let input = cln.children[i].querySelectorAll('input')[index];
let name = input.getAttributeNode("name").value; let name = input.getAttributeNode("name").value;
input.getAttributeNode("name").value = name + '[' + contador + ']'; name = name.replace("[", "");
name = name.replace("]", "");
input.getAttributeNode("name").value = name + '[]';
// input.getAttributeNode("disabled").value = " "; // input.getAttributeNode("disabled").value = " ";
let select = cln.children[i].querySelectorAll('select')[index]; let select = cln.children[i].querySelectorAll('select')[index];
if(select){ if(select){
let selectName = select.getAttributeNode("name").value; let selectName = select.getAttributeNode("name").value;
// console.log(select.getAttributeNode("name").value) // console.log(select.getAttributeNode("name").value)
select.getAttributeNode("name").value = selectName + '[' + contador + ']'; select.getAttributeNode("name").value = selectName + '[]';
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment