From e2c3e1531b3da8b3730653a3982123e97c58309c Mon Sep 17 00:00:00 2001 From: mc16 <mc16> Date: Wed, 12 Apr 2017 08:58:02 -0300 Subject: [PATCH] =?UTF-8?q?Mudan=C3=A7as=20de=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 21 +++++++-------------- prototipo.html | 12 +----------- 2 files changed, 8 insertions(+), 25 deletions(-) diff --git a/main.js b/main.js index 2d2638c..157f508 100644 --- a/main.js +++ b/main.js @@ -206,6 +206,11 @@ function alertConjuntoEmpresa(empresa, cardapio){ } $("#checkBoxesConjunto").html(htmlCheckBoxes+"</ul>"); +} + +$("#adicionaEmpresa").click(function(){ + + } $("#adicionaCardapioEmpresa").click(function(){ @@ -344,20 +349,8 @@ $("#editaPublicoEmpresa").click( function(){ } - idades = [] - numFaixas = $("#tidades").children().length; - console.log(numFaixas); - idade =[] - for(var i = 0; i < numFaixas; i++) - { - idade.push(document.getElementById( "idadeMinima"+i ).value); - idade.push(document.getElementById( "idadeMaxima"+i ).value); - console.log(idade); - idades.push(idade); - console.log(idades); - idade =[] - } - necessidadesNutr = new NecessidadesNutr(tabelasDados, refeicoesDados, idades) + + necessidadesNutr = new NecessidadesNutr(tabelasDados, refeicoesDados) dados.setNecessidadesNutr(necessidadesNutr); atualizaEmpresas(); diff --git a/prototipo.html b/prototipo.html index 8892857..ab447f8 100644 --- a/prototipo.html +++ b/prototipo.html @@ -104,17 +104,7 @@ </div> - - - <table><tr> - <td><input type=text id="nomeEmpresa" placeholder="Nome"></td> - <td><input type=text id="cnpj" placeholder="CNPJ"></td> - <td><input type=text id="telefone" placeholder="Telefone"></td> - <td><input type=text id="responsavel" placeholder="Responsável"></td> - <td><button onClick=cadastraEmpresa();>Cadastrar Empresa</button></td> - </tr></table> - <table> - + <tr><td><button id="adicionaEmpresa" >Adicionar Empresa</button></td></tr> <thead> <tr> <td> Dados da empresa </td> -- GitLab