Unverified Commit b5db175d authored by Antônio Durval's avatar Antônio Durval Committed by GitHub
Browse files

Merge pull request #911 from antonioDurval/master

Correções no Modal
parents 7b024ead d89ba2cd
...@@ -439,13 +439,13 @@ ...@@ -439,13 +439,13 @@
</div> </div>
<form method="POST" id="SubParticForm" action="{{route('trabalho.infoTrocaParticipante')}}" enctype="multipart/form-data"> <form method="POST" id="SubParticForm" action="{{route('trabalho.infoTrocaParticipante')}}" enctype="multipart/form-data">
@csrf @csrf
<div class="col-6"> <div class="col-12">
@component('componentes.input', ['label' => 'Data de Entrada']) @component('componentes.input', ['label' => 'Data de Entrada'])
<input type="date" class="form-control" value="" name="data_entrada" placeholder="Data de Entrada" id="dt_entradaManter{{$participante->id}}" /> <input type="date" class="form-control" value="" name="data_entrada" placeholder="Data de Entrada" id="dt_entradaManter{{$participante->id}}" />
@error('data_entrada') @error('data_entrada')
<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
@endcomponent @endcomponent
</div> </div>
...@@ -1104,6 +1104,7 @@ ...@@ -1104,6 +1104,7 @@
function exibirUsuarioAdicionado(data, integranteAntigoId) { function exibirUsuarioAdicionado(data, integranteAntigoId) {
console.log(data) console.log(data)
$('#modalIntegrante').modal('hide'); $('#modalIntegrante').modal('hide');
$(`#modalSubParticipanteCompleto${integranteAntigoId}`).modal('hide');
document.getElementById(`nome${integranteAntigoId}`).value = data[0]['name']; document.getElementById(`nome${integranteAntigoId}`).value = data[0]['name'];
document.getElementById(`nome${integranteAntigoId}`).setAttribute("readonly", ""); document.getElementById(`nome${integranteAntigoId}`).setAttribute("readonly", "");
......
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