diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3
index 161f7c6..55e01fb 100644
Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ
diff --git a/gestaoRaul/mesas/templates/mesas_map.html b/gestaoRaul/mesas/templates/mesas_map.html
index 2023fff..9141d86 100644
--- a/gestaoRaul/mesas/templates/mesas_map.html
+++ b/gestaoRaul/mesas/templates/mesas_map.html
@@ -34,22 +34,25 @@ RRB&C - Mapa de Mesas
style="background-color: rgba(0, 0, 255, 0);
width: 50px;
height: 50px;
- left: {{eixo.y}}px;
- top: {{eixo.x}}px;position: absolute">
+ left: {{eixo.y}}px;
+ top: {{eixo.x}}px;position: absolute" >
{% endfor %}
-
+
Depósito
+
+
{% endblock %}
\ No newline at end of file
diff --git a/gestaoRaul/templates/static/mesas/css/mesas.css b/gestaoRaul/templates/static/mesas/css/mesas.css
index 128fc64..c837761 100644
--- a/gestaoRaul/templates/static/mesas/css/mesas.css
+++ b/gestaoRaul/templates/static/mesas/css/mesas.css
@@ -54,4 +54,15 @@
.espaco {
border: 0.3px solid #cccccc56;
padding: 0px;
+}
+
+
+#drop {
+ display: flex;
+ background-color: rgb(75, 75, 75);
+ border-radius: 15px;
+ padding: 15px;
+ margin: 15px;
+ min-height: 300px;
+ max-width: 1370px;
}
\ No newline at end of file
diff --git a/gestaoRaul/templates/static/mesas/js/mesas_map.js b/gestaoRaul/templates/static/mesas/js/mesas_map.js
index 9ae64c7..d05f3e7 100644
--- a/gestaoRaul/templates/static/mesas/js/mesas_map.js
+++ b/gestaoRaul/templates/static/mesas/js/mesas_map.js
@@ -44,8 +44,13 @@ function saveLocal() {
const mesaElement = event.target;
const targetElement = event.target.parentNode;
const mesaId = mesaElement.id
-
const targetId = targetElement.id;
+const parentNodeClass = targetElement.classList.value
+console.log(parentNodeClass)
+
+
+if (parentNodeClass == 'espaco' || targetId == 'drop'){
+
const url = `/mesas/locationMesa/${mesaId}/${targetId}/`;
var resposta = fetch(url, {method: 'POST',
headers: {'Content-Type': 'application/json',
@@ -61,6 +66,9 @@ var resposta = fetch(url, {method: 'POST',
console.log(document.cookie)
console.error('Erro ao salvar local:', error);
});
+}else{
+ alert('Aqui não pode!!!')
+}
}