removeProductBalcao trocado htmx por ajax

This commit is contained in:
2024-12-27 17:17:17 -03:00
parent 1beb2e00b2
commit 356d45c3e5
4 changed files with 21 additions and 10 deletions

View File

@@ -8,7 +8,9 @@
<tr>
<td>{{item.product.name}}</td>
<td>R$ {{item.product.price}}</td>
<td><button hx-get="{% url 'removeProductBalcao' item.id %} " hx-trigger="click" hx-target="#list-products-balcao" >🗑️ Excluir</button></td>
<td><button onclick="removeProductBalcao({{item.id}})"
>🗑️ Excluir</button></td>
</tr>
{% endfor %}