mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 21:45:41 +00:00
44 lines
1.1 KiB
HTML
44 lines
1.1 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' %}
|
|
|
|
<div id="mapa" style="position: relative">
|
|
|
|
{% 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>
|
|
|
|
{% 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>
|
|
{% else %}
|
|
<div id="{{mesa.id}}" class="m-card" ondragend="saveLocal()" draggable="true" >{{mesa.name}} <input type="text" hidden value="{{mesa.location}}"></div>
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
{% endblock %} |