@@ -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