feat: arrastar mesas tambem para depósito

This commit is contained in:
2025-01-03 15:58:44 -03:00
parent 42f3e02b0d
commit a2d751e88f
4 changed files with 27 additions and 5 deletions

View File

@@ -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" >
</div>
{% endfor %}
</div>
<h2>Depósito</h2>
<div id="drop" >
{% for mesa in mesas %}
{% if mesa.active == True %}
<div id="{{mesa.id}}" class="m-card" ondragend="saveLocal()" draggable="true" style=" position: absolute; background-color: indianred;" >{{mesa.name}} <input type="text" hidden value="{{mesa.location}}"> </div>
<div id="{{mesa.id}}" class="m-card" ondragend="saveLocal()" draggable="true" style=" background-color: indianred;" >{{mesa.name}} <input type="text" hidden value="{{mesa.location}}"> </div>
{% else %}
<div id="{{mesa.id}}" class="m-card" ondragend="saveLocal()" draggable="true" >{{mesa.name}} <input type="text" hidden value="{{mesa.location}}"></div>
{% endif %}
{% endfor %}
</div>
{% endblock %}