diff --git a/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html b/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html
index 1415b62..4ed56e1 100644
--- a/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html
+++ b/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html
@@ -11,17 +11,16 @@
- {{item.product.name}}
+
+ {{item.product.name}}
{% if item.product.cuisine == True %}
-
-
td, th {
-
border-collapse: collapse;
- padding-top: 20px;
- margin: 20px;
+ padding-top: 10px;
+ margin: 10px;
text-align: center;
font-size: 20px;}
- |
| ${item} |
-
| ${obs} |
-
| ${cliente}${local} |
-
| ${dateString} |
+
| ${order[0]} |
+
| ${order[1]} |
+
| ${order[3]} - ${order[4]} |
+
| ${order[5]} |
`;
var printWindow = window.open('', '_blank');
@@ -254,11 +246,11 @@ function troco(){
function addOrder(){
- obs = document.getElementById('obs')
-
+ var obs = document.getElementById('obs')
id = document.getElementById('id-temp').value
var obsPrint = document.getElementById(id+'-obsOrder')
- tooltipObs = document.getElementById('tooltip-id-'+id)
+ var order = obsPrint.value.split('|');
+ var newOrder = '';
fetch(`/comandas/editOrders/${id}/${obs.value}`, {
method: 'POST',
@@ -270,9 +262,12 @@ function addOrder(){
.then(data => {
if(data.status == 'ok'){
showToast('✅Pedido atualizado com sucesso!😁','success')
- tooltipObs.dataset.tooltip = data.obs
obs.value = ''
- obsPrint.value = data.obs
+ order[1] = data.obs;
+ for(var i = 0; i < order.length; i++){
+ newOrder += order[i] + '|';
+ }
+ obsPrint.value = newOrder;
document.getElementById('modal-obs').style.display = 'none';
}
@@ -338,3 +333,8 @@ function taxa(){
}
+function inforOrders(id){
+ var order = document.getElementById(id+'-obsOrder').value.split('|');
+
+ feedback(order[2], "", order[1]+' - '+order[5]);
+}
\ No newline at end of file
diff --git a/gestaoRaul/templates/static/orders/css/orders.css b/gestaoRaul/templates/static/orders/css/orders.css
index 38497bf..2243797 100644
--- a/gestaoRaul/templates/static/orders/css/orders.css
+++ b/gestaoRaul/templates/static/orders/css/orders.css
@@ -4,7 +4,14 @@
color: black;
}
+h2 {
+ font-size: 18px;
+ justify-self: center;
+ margin-bottom: 0px;
+}
+
.container {
+ margin-top: -50px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 0px;
@@ -91,4 +98,8 @@
}
+ #title {
+ display:none;
+ }
+
}
\ No newline at end of file