alterar modal dialog para popover em addProduct

This commit is contained in:
2025-02-21 16:59:34 -03:00
parent fdb9d9e453
commit baafa4cdec
12 changed files with 111 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
{% for product in products %}
<article
<div
onclick="addProductComanda({{product.id}})"
class="card-product"
hx-get="{% url 'addProduct' product.id comanda_id %} "
@@ -10,7 +10,7 @@
hx-target="#list-products-comanda">
{{product.name}} <br>
R$ {{product.price}}
</article>
</div>
{% endfor %}

View File

@@ -42,6 +42,7 @@
{% endif %}
</tr>
{% endfor %}
{% if config.taxa %}
<tr>
<td>
Taxa de serviço 10%
@@ -50,6 +51,8 @@
R$ {{valores.taxa}}
</td>
</tr>
{% endif %}
{% if parcials%}
<td colspan="2" style="text-align: center;"><b>Pagamentos parciais</b></td>
{% endif %}
@@ -64,8 +67,12 @@
<tfoot>
<tr>
<td colspan="2" style="text-align: center;"><b>Total R$ {{valores.totalComTaxa}}</b></td>
</tr>
<tr>
{% if config.taxa %}
<td colspan="2" style="text-align: center;"><b>Total R$ {{valores.totalComTaxa}}</b></td>
{% else %}
<td colspan="2" style="text-align: center;"><b>Total R$ {{valores.totalSemTaxa}}</b></td>
{% endif %}
</tr>
</tfoot>