add botão (funcionando) remover produto da comanda

This commit is contained in:
2024-12-17 11:03:24 -03:00
parent 1e0e4d7b6f
commit 09b4f50a1b
10 changed files with 63 additions and 8 deletions

View File

@@ -2,19 +2,29 @@ function openModal() {
document.getElementById('Modal-add-product').style.display = 'block';
}
function open_remove_product_comanda() {
document.getElementById('remove-product-comanda').style.display = 'block';
}
function closeModal() {
document.getElementById('Modal-add-product').style.display = 'none';
}
function removeCloseModal() {
document.getElementById('remove-product-comanda').style.display = 'none';
}
document.getElementById('openModal').addEventListener('click', openModal);
document.getElementById('productForm').addEventListener('submit', function(event) {
event.preventDefault();
// const productName = document.getElementById('productName').value;
// const productPrice = document.getElementById('productPrice').value;
// const productDescription = document.getElementById('productDescription').value;
// closeModal();
});