feat: update status comanda for PAYING

This commit is contained in:
2024-12-20 10:11:50 -03:00
parent dfb7418e7a
commit aed3b906a4
9 changed files with 37 additions and 7 deletions

View File

@@ -20,7 +20,13 @@ Comandas
<a href="{% url 'viewcomanda' %}?parametro={{ comanda.id }}" style="text-decoration: none;">
<article >
<header> {{comanda.name}} | {{comanda.mesa}}</header><br>
<header
{% if comanda.status == 'OPEN' %}
style="background-color: #036800;"
{% elif comanda.status == 'PAYING' %}
style="background-color: rgb(165, 86, 33);"
{% endif %}
> {{comanda.name}} | {{comanda.mesa}}</header><br>
<p>Aberta ás: {{comanda.dt_open|date:"H:i"}}</p>