mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
imagem planta baixa inserido
This commit is contained in:
Binary file not shown.
@@ -30,15 +30,15 @@ RRB&C - DashBoard
|
|||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h4> Mais Vendidos </h4>
|
<h4> Mais Vendidos </h4>
|
||||||
<table >
|
<table style="background-color: rgba(0, 255, 255, 0);">
|
||||||
<tr>
|
<tr style="background-color: rgba(0, 255, 255, 0);">
|
||||||
<th style="text-align: left;">Produto</th>
|
<th style="text-align: left;background-color: rgba(0, 255, 255, 0.089);">Produto</th>
|
||||||
<th style="text-align: left;">Quantidade</th>
|
<th style="text-align: left;background-color: rgba(0, 255, 255, 0.075);">Quantidade</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for produto in produtos_mais_vendidos %}
|
{% for produto in produtos_mais_vendidos %}
|
||||||
<tr>
|
<tr>
|
||||||
<td> {{ produto.nome }} </td>
|
<td style="background-color: rgba(0, 255, 255, 0);"> {{ produto.nome }} </td>
|
||||||
<td> {{ produto.quantidade }} </td>
|
<td style="background-color: rgba(0, 255, 255, 0);"> {{ produto.quantidade }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Binary file not shown.
@@ -14,7 +14,17 @@ RRB&C - Mapa de Mesas
|
|||||||
|
|
||||||
{% block 'body' %}
|
{% block 'body' %}
|
||||||
|
|
||||||
<div id="mapa" style="position: relative">
|
<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 %}
|
{% for eixo in eixosXY %}
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ def mesas(request):
|
|||||||
|
|
||||||
def mapMesas(request):
|
def mapMesas(request):
|
||||||
eixosXY = []
|
eixosXY = []
|
||||||
for i in range(0,25):
|
for i in range(0,27):
|
||||||
for j in range(0,15):
|
for j in range(0,16):
|
||||||
item = {'x':j*50, 'y':i*50}
|
item = {'x':j*50, 'y':i*50}
|
||||||
eixosXY.append(item)
|
eixosXY.append(item)
|
||||||
|
|
||||||
|
|||||||
@@ -45,12 +45,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#mapa {
|
|
||||||
width: 1200px;
|
|
||||||
height: 800px;
|
|
||||||
background-image: url('https://payload.cargocollective.com/1/22/714749/12741186/FAENG-ANTES_1216.png');
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.elemento {
|
.elemento {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ var resposta = fetch(url, {method: 'GET', headers: {'Content-Type': 'applicati
|
|||||||
},}).then(response => response.json())
|
},}).then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
if(data.status == 'ok'){
|
if(data.status != 'ok'){
|
||||||
alert('Mesa movida com sucesso!')
|
alert('Erro ao salvar local:', error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|||||||
BIN
gestaoRaul/templates/static/midia/mapMesa.webp
Normal file
BIN
gestaoRaul/templates/static/midia/mapMesa.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
Reference in New Issue
Block a user