mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 21:45:41 +00:00
61 lines
1.6 KiB
HTML
61 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
|
|
|
|
|
|
|
|
{% block 'title' %}
|
|
Comandas{% endblock %}
|
|
{% block 'head' %}
|
|
<link rel="stylesheet" href="{% static 'comandas/css/comandas.css' %}">
|
|
{% endblock %}
|
|
{% block 'body' %}
|
|
|
|
<body>
|
|
<div class="grid-container">
|
|
<button class="button" id="openModal">Abrir Comanda</button>
|
|
|
|
{% for comanda in comandas %}
|
|
|
|
<div href="{% url 'viewcomanda' %}?parametro={{ comanda.id }}" class="card">
|
|
<a href="{% url 'viewcomanda' %}?parametro={{ comanda.id }}">{{comanda.name}} </a> <br>
|
|
<a href="{% url 'viewcomanda' %}?parametro={{ comanda.id }}">{{comanda.mesa}}</a>
|
|
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
</div>
|
|
|
|
<div class="modal" id="Modal-create-comanda">
|
|
<div class="modal-content">
|
|
<form id="form-comanda" method="post" action="{% url 'createComanda' %}">
|
|
{% csrf_token %}
|
|
<h2>Abrir Comanda</h2>
|
|
<input type="text" id="name-comanda" name="name-comanda" required placeholder="Nome"><br>
|
|
<select name="select-mesa" >
|
|
|
|
{% for mesa in mesas %}
|
|
<option value="{{mesa.id}}">{{mesa.name}}</option>
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<!-- <option value="opcao1">Opção 1</option>
|
|
<option value="opcao2">Opção 2</option>
|
|
<option value="opcao3" >Opção 3</option> -->
|
|
</select>
|
|
<button type="submit">Abrir</button>
|
|
<button type="button" onclick="closeModal()" style="background-color:red;">Fechar</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script src="{% static 'comandas/js/comandas.js' %}"></script>
|
|
|
|
|
|
|
|
|
|
{% endblock %} |