diff --git a/resources/views/evento/formulario/integrantes.blade.php b/resources/views/evento/formulario/integrantes.blade.php index e1914e497550e6a58e515fb18bd500d506ed64ba..393607cf4622a99c9e0cb558bbfde8e6cabc915f 100644 --- a/resources/views/evento/formulario/integrantes.blade.php +++ b/resources/views/evento/formulario/integrantes.blade.php @@ -202,7 +202,7 @@ $('#aviso-modal-limite-de-integrantes').modal('show'); } - let modal_id = 0; + let modal_id = Number(document.getElementById('quantidadeModais').value); function exibirUsuarioAdicionado(data) { $('#modalIntegrante').modal('hide'); diff --git a/resources/views/evento/formulario/participantes.blade.php b/resources/views/evento/formulario/participantes.blade.php index 9682055996881327f991882416b5cf5568a60be6..b9d64cdf4b40429e2b47178c027349b532629bbc 100755 --- a/resources/views/evento/formulario/participantes.blade.php +++ b/resources/views/evento/formulario/participantes.blade.php @@ -358,38 +358,40 @@ @endif - @if($edital->tipo != "CONTINUO" && (old('funcaoParticipante') == null || !array_key_exists($i, old('funcaoParticipante')) || old('funcaoParticipante')[$i] == 'Bolsista')) -
-
Plano de trabalho
-
-
- @component('componentes.input', ['label' => 'Título']) - - - - @error('nomePlanoTrabalho.'.$i) - - {{ $message }} - - @enderror - @endcomponent -
-
- @component('componentes.input', ['label' => 'Anexo (.pdf)']) - - @error('anexoPlanoTrabalho.'.$i) - - {{ $message }} - - @enderror - @error('anexoPlanoTrabalho') - - {{ $message }} - - @enderror - @endcomponent -
- @endif + {{--
diff --git a/resources/views/evento/submeterTrabalho.blade.php b/resources/views/evento/submeterTrabalho.blade.php index b377859339b63c8a19c413f776e71850b9495a73..8e993bff2e9fee37f17762f2494fab89331b4bcf 100755 --- a/resources/views/evento/submeterTrabalho.blade.php +++ b/resources/views/evento/submeterTrabalho.blade.php @@ -7,6 +7,7 @@
@csrf +
@@ -219,16 +220,16 @@ if(nome.value != ""){ if(planoTrabalho != null && planoTrabalho.value != ""){ - nomePlano.innerHTML = `

Nome: ${nome.value}
+ nomePlano.innerHTML = ` Nome: ${nome.value}
E-mail: ${email.value}
Plano: ${planoTrabalho.value}
CPF: ${cpf.value}
- Função: ${nome_funcao}

`; + Função: ${nome_funcao}`; }else { - nomePlano.innerHTML = `

Nome: ${nome.value}
+ nomePlano.innerHTML = ` Nome: ${nome.value}
E-mail: ${email.value}
CPF: ${cpf.value}
- Função: ${nome_funcao}

`; + Função: ${nome_funcao}`; } }else{ nomePlano.innerText = `Discente `+(id+1); @@ -240,6 +241,7 @@ document.getElementById("checkB"+id).checked = true; //$("#atribuir1").attr('data-target','#modalIntegrante'+(id+1)); modal_id = id+1; + document.getElementById("quantidadeModais").value = modal_id; document.getElementById("part"+id).removeAttribute("hidden"); //document.getElementById("exampleModal"+id).modal('hide'); @@ -254,6 +256,7 @@ document.getElementById("part"+id).setAttribute("hidden",true); //$("#atribuir1").attr('data-target','#exampleModal'+(id)); modal_id -= 1; + document.getElementById("quantidadeModais").value = modal_id; document.getElementById("exampleModal"+id).modal('hide'); } @endif diff --git a/resources/views/projeto/editaFormulario/integrantes.blade.php b/resources/views/projeto/editaFormulario/integrantes.blade.php index 7b29ff1c5f9bc072687d3fa57064b473003bb6d0..c3fc41eda3f0230bab7f6ce6b0cd9a6ebceee7a7 100644 --- a/resources/views/projeto/editaFormulario/integrantes.blade.php +++ b/resources/views/projeto/editaFormulario/integrantes.blade.php @@ -272,6 +272,7 @@ if(['funcao']){ modal_id += 1; + document.getElementById("quantidadeModais").value = modal_id; } $('#integrante').append(` diff --git a/resources/views/projeto/editar.blade.php b/resources/views/projeto/editar.blade.php index dfe39830964be22b6f1f1c739a7f2f2dd3296bfc..d56e58c17ba24504b27782f3b876830941469952 100755 --- a/resources/views/projeto/editar.blade.php +++ b/resources/views/projeto/editar.blade.php @@ -260,6 +260,8 @@ document.getElementById("checkB"+id).checked = true; // $("#atribuir1").attr('data-target','#exampleModal'+(id+1)); modal_id += 1; + document.getElementById("quantidadeModais").value = modal_id; + document.getElementById("part"+id).removeAttribute("hidden"); // document.getElementById("exampleModal"+id).modal('hide'); } @@ -274,6 +276,7 @@ // $("#atribuir1").attr('data-target','#exampleModal'+(id)); // document.getElementById("exampleModal"+id).modal('hide'); modal_id -= 1; + document.getElementById("quantidadeModais").value = modal_id; console.log(modal_id); } @endif