mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
update: page balcao
This commit is contained in:
@@ -21,10 +21,10 @@ Detalhes {{comanda.name}}
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="grid-container" >
|
<div class="grid-container" >
|
||||||
<div>
|
<div style="text-align: center;">
|
||||||
<h1>Venda Balcão</h1>
|
<h1>Venda Balcão</h1>
|
||||||
<div>
|
<div>
|
||||||
<button class="primary" id="openModal" >Adicionar Produto</button>
|
<!-- <button class="primary" id="openModal" >Adicionar Produto</button> -->
|
||||||
|
|
||||||
<button id="pagarComanda" hx-get="{% url 'closeComanda' comanda.id %} " hx-trigger="click" hx-swap="none" onclick="imprimirConta()"
|
<button id="pagarComanda" hx-get="{% url 'closeComanda' comanda.id %} " hx-trigger="click" hx-swap="none" onclick="imprimirConta()"
|
||||||
{% if comanda.status != 'OPEN' %}
|
{% if comanda.status != 'OPEN' %}
|
||||||
@@ -33,11 +33,15 @@ Detalhes {{comanda.name}}
|
|||||||
>Fechar Comanda</button>
|
>Fechar Comanda</button>
|
||||||
|
|
||||||
<button id="pagarComanda" onclick="modal_payment_comanda()"
|
<button id="pagarComanda" onclick="modal_payment_comanda()"
|
||||||
|
{% if total == 0 %}
|
||||||
|
disabled
|
||||||
|
{% endif %}
|
||||||
>Receber</button>
|
>Receber</button>
|
||||||
|
|
||||||
<button class="button" id="imprimirFichas" onclick="imprimirFichas()"
|
<button class="button" id="imprimirFichas" onclick="imprimirFichas()"
|
||||||
|
{% if total == 0 %}
|
||||||
|
disabled
|
||||||
|
{% endif %}
|
||||||
>Imprimir Fichas</button>
|
>Imprimir Fichas</button>
|
||||||
|
|
||||||
<!-- <button class="button" id="imprimirFichas" hx-get="{% url 'reopenComanda' comanda.id %} " hx-trigger="click" hx-swap="none" onclick="reloadPage()"
|
<!-- <button class="button" id="imprimirFichas" hx-get="{% url 'reopenComanda' comanda.id %} " hx-trigger="click" hx-swap="none" onclick="reloadPage()"
|
||||||
@@ -66,7 +70,7 @@ Detalhes {{comanda.name}}
|
|||||||
<td>{{item.product.name}}</td>
|
<td>{{item.product.name}}</td>
|
||||||
<td>R$ {{item.product.price}}</td>
|
<td>R$ {{item.product.price}}</td>
|
||||||
<td><button
|
<td><button
|
||||||
hx-get="{% url 'removeProductComanda' item.id %} " hx-trigger="click" hx-target="#list-products-comanda"
|
hx-get="{% url 'removeProductComanda' item.id %} " hx-trigger="click" hx-swap="none"
|
||||||
onclick="reloadPage()">🗑️ Excluir</button></td>
|
onclick="reloadPage()">🗑️ Excluir</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -89,15 +93,15 @@ Detalhes {{comanda.name}}
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<article>
|
<!-- <article> -->
|
||||||
|
|
||||||
<form id="productForm" >
|
<form id="productForm" >
|
||||||
<h2>Adicionar Produto </h2>
|
<h2 style="text-align: center;">Adicionar Produto </h2>
|
||||||
<input type="text" id="search-product" name="search-product" placeholder="Buscar Produto" hx-get="{% url 'listProduct' comanda.id %}" hx-trigger="keyup" hx-target="#product-list"><br>
|
<input type="text" id="search-product" name="search-product" placeholder="Buscar Produto" hx-get="{% url 'listProduct' comanda.id %}" hx-trigger="keyup" hx-target="#product-list"><br>
|
||||||
<div id="product-list" class="grid-list-products">
|
<div id="product-list" class="grid-list-products">
|
||||||
{% for product in products %}
|
{% for product in products %}
|
||||||
|
|
||||||
<article onclick="reloadPage()" style="background-color: #293552;" hx-get="{% url 'addProduct' product.id comanda.id %} " hx-trigger="click" hx-target="#list-products-comanda">
|
<article onclick="reloadPage()" style="background-color: #293552;" hx-get="{% url 'addProduct' product.id comanda.id %} " hx-trigger="click" hx-swap="none">
|
||||||
{{product.name}} <br>
|
{{product.name}} <br>
|
||||||
R$ {{product.price}}
|
R$ {{product.price}}
|
||||||
</article >
|
</article >
|
||||||
@@ -107,7 +111,7 @@ Detalhes {{comanda.name}}
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</article>
|
<!-- </article> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -19,7 +19,7 @@ from django.urls import path, include
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('/', include('home.urls')),
|
path('', include('home.urls')),
|
||||||
path('products/', include('products.urls')),
|
path('products/', include('products.urls')),
|
||||||
path('mesas/', include('mesas.urls')),
|
path('mesas/', include('mesas.urls')),
|
||||||
path('typePay/', include('typePay.urls')),
|
path('typePay/', include('typePay.urls')),
|
||||||
|
|||||||
@@ -21,12 +21,12 @@
|
|||||||
|
|
||||||
<nav >
|
<nav >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#">Home</a></li>
|
<li><a href="{% url 'home' %}">Home</a></li>
|
||||||
<li><a href="{% url 'mesas' %}">Mesas</a></li>
|
<li><a href="{% url 'mesas' %}">Mesas</a></li>
|
||||||
<li><a href="{% url 'comandas' %}">Comandas</a></li>
|
<li><a href="{% url 'comandas' %}">Comandas</a></li>
|
||||||
<li><a href="{% url 'products' %}">Produtos</a></li>
|
<li><a href="{% url 'products' %}">Produtos</a></li>
|
||||||
|
<li><a href="{% url 'viewBalcao' %}">Balcão</a></li>
|
||||||
<li><a href="#">Categorias</a></li>
|
<li><a href="#">Categorias</a></li>
|
||||||
<li><a href="{% url 'viewBalcao' %}">Balcao</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<!-- <div class="content">
|
<!-- <div class="content">
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
{% for product in products %}
|
{% for product in products %}
|
||||||
{{co}}
|
|
||||||
|
|
||||||
<article onclick="reloadPage()" style="background-color: #293552;" hx-get="{% url 'addProduct' product.id comanda_id %} " hx-trigger="click" hx-target="#list-products-comanda">
|
<article onclick="reloadPage()" style="background-color: #293552;" hx-get="{% url 'addProduct' product.id comanda_id %} " hx-trigger="click" hx-swap="none">
|
||||||
{{product.name}} <br>
|
{{product.name}} <br>
|
||||||
R$ {{product.price}}
|
R$ {{product.price}}
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.grid-container {
|
.grid-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 2fr);
|
grid-template-columns: repeat(2, 2fr);
|
||||||
gap: 10px;
|
gap: 20px;
|
||||||
max-width: 1300px; /* Define a largura máxima do grid */
|
max-width: 1300px; /* Define a largura máxima do grid */
|
||||||
margin: 0 auto; /* Centraliza o grid na página */
|
margin: 0 auto; /* Centraliza o grid na página */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user