mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
add product in comanda
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'base.css' %}">
|
||||
<script src="{% static 'htmx_base.js' %}"></script>
|
||||
{% block 'head' %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
13
gestaoRaul/templates/htmx_components/htmx_list_products.html
Normal file
13
gestaoRaul/templates/htmx_components/htmx_list_products.html
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
{% for product in products %}
|
||||
|
||||
<div class="card">
|
||||
{{product.name}}
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,6 +6,14 @@
|
||||
margin: 0 auto; /* Centraliza o grid na página */
|
||||
}
|
||||
|
||||
.grid-list-products {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 2fr);
|
||||
gap: 10px;
|
||||
max-width: 800px; /* Define a largura máxima do grid */
|
||||
margin: 0 auto; /* Centraliza o grid na página */
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
|
||||
1
gestaoRaul/templates/static/htmx_base.js
Normal file
1
gestaoRaul/templates/static/htmx_base.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user