imagem planta baixa inserido

This commit is contained in:
2025-01-02 16:42:31 -03:00
parent f8d1373454
commit 4a29a85b55
8 changed files with 22 additions and 17 deletions

Binary file not shown.

View File

@@ -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 %}

View File

@@ -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

View File

@@ -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)

View File

@@ -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;

View File

@@ -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 => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB