create comanda | detalhe comanda

This commit is contained in:
2024-12-12 21:33:04 -03:00
parent 2f84ca97c3
commit a3bb7bb674
15 changed files with 284 additions and 21 deletions

View File

@@ -0,0 +1,21 @@
function openModal() {
document.getElementById('Modal-create-comanda').style.display = 'block';
}
function closeModal() {
document.getElementById('Modal-create-comanda').style.display = 'none';
}
document.getElementById('openModal').addEventListener('click', openModal);
// document.getElementById('form-comanda').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();
// }
// );

View File

@@ -0,0 +1,20 @@
function openModal() {
document.getElementById('Modal-add-product').style.display = 'block';
}
function closeModal() {
document.getElementById('Modal-add-product').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();
});