mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
create views comandas
This commit is contained in:
@@ -18,7 +18,21 @@ RRB&C - Mesas
|
||||
|
||||
{% for mesa in mesas %}
|
||||
|
||||
<div class="card">{{mesa.name}}</div>
|
||||
<div class="card"
|
||||
{% if mesa.active == True %}
|
||||
style="background-color: indianred;"
|
||||
{% endif %}
|
||||
>{{mesa.name}}
|
||||
|
||||
|
||||
<form action="{% url 'onOffmesa' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="id-mesa" value="{{ mesa.id }}">
|
||||
<button type="submit">On/Off</button>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user