mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
58 lines
1.3 KiB
HTML
58 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
|
|
|
|
{% block 'head' %}
|
|
<link rel="stylesheet" href="{% static 'mesas/css/mesas.css' %}">
|
|
<script src="{% static 'mesas/js/mesas_map.js' %}"></script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block 'title' %}
|
|
RRB&C - Mapa de Mesas
|
|
{% endblock %}
|
|
|
|
{% block 'body' %}
|
|
{% csrf_token %}
|
|
|
|
<style>
|
|
#mapa {
|
|
width: 1400px;
|
|
height: 800px;
|
|
background-image: url("{% static 'midia/mapMesa.webp' %}" );
|
|
background-size: cover;
|
|
position: relative;
|
|
}
|
|
</style>
|
|
|
|
<div id="mapa" >
|
|
|
|
{% for eixo in eixosXY %}
|
|
<div
|
|
id="{{eixo.x}}-{{eixo.y}}"
|
|
class="espaco"
|
|
style="background-color: rgba(0, 0, 255, 0);
|
|
width: 50px;
|
|
height: 50px;
|
|
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=" 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 %} |