diff --git a/gestaoRaul/balcao/__pycache__/htmx_views.cpython-313.pyc b/gestaoRaul/balcao/__pycache__/htmx_views.cpython-313.pyc index af194db..262b264 100644 Binary files a/gestaoRaul/balcao/__pycache__/htmx_views.cpython-313.pyc and b/gestaoRaul/balcao/__pycache__/htmx_views.cpython-313.pyc differ diff --git a/gestaoRaul/balcao/__pycache__/urls.cpython-313.pyc b/gestaoRaul/balcao/__pycache__/urls.cpython-313.pyc index 8a2f325..e0a1e73 100644 Binary files a/gestaoRaul/balcao/__pycache__/urls.cpython-313.pyc and b/gestaoRaul/balcao/__pycache__/urls.cpython-313.pyc differ diff --git a/gestaoRaul/balcao/__pycache__/views.cpython-313.pyc b/gestaoRaul/balcao/__pycache__/views.cpython-313.pyc index f34c643..c79c798 100644 Binary files a/gestaoRaul/balcao/__pycache__/views.cpython-313.pyc and b/gestaoRaul/balcao/__pycache__/views.cpython-313.pyc differ diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3 index 741c91d..ba6a706 100644 Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ diff --git a/gestaoRaul/products/__pycache__/urls.cpython-313.pyc b/gestaoRaul/products/__pycache__/urls.cpython-313.pyc index 7982663..d6fa548 100644 Binary files a/gestaoRaul/products/__pycache__/urls.cpython-313.pyc and b/gestaoRaul/products/__pycache__/urls.cpython-313.pyc differ diff --git a/gestaoRaul/products/__pycache__/views.cpython-313.pyc b/gestaoRaul/products/__pycache__/views.cpython-313.pyc index f7e3e8a..f289cc8 100644 Binary files a/gestaoRaul/products/__pycache__/views.cpython-313.pyc and b/gestaoRaul/products/__pycache__/views.cpython-313.pyc differ diff --git a/gestaoRaul/products/templates/products.html b/gestaoRaul/products/templates/products.html index 0e25f73..c291af8 100644 --- a/gestaoRaul/products/templates/products.html +++ b/gestaoRaul/products/templates/products.html @@ -41,10 +41,12 @@ Produtos
+ +
{% csrf_token %} - + {% if product.active == True %} @@ -69,15 +71,13 @@ Produtos - -
{% csrf_token %}

Cadastro de Produto

-
+



diff --git a/gestaoRaul/templates/static/pico.css b/gestaoRaul/templates/static/pico.css index c340a09..f3e8163 100644 --- a/gestaoRaul/templates/static/pico.css +++ b/gestaoRaul/templates/static/pico.css @@ -1260,7 +1260,7 @@ optgroup, select, textarea { margin: 0; - font-size: 1rem; + font-size: 0.8rem; line-height: var(--pico-line-height); font-family: inherit; letter-spacing: inherit; @@ -1268,6 +1268,8 @@ textarea { input { overflow: visible; + /* max-height: 45px; */ + } select { @@ -1960,11 +1962,9 @@ details[open] > summary::after { background-position: left center; } -/** - * Card (
) - */ + article { - /* margin-bottom: var(--pico-block-spacing-vertical); */ + margin-bottom: var(--pico-block-spacing-vertical); margin: 0px; max-width: 95%; padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal); @@ -1974,7 +1974,7 @@ article { transition: transform 0.2s; } article:hover { - transform: scale(1.05); + transform: scale(1.02); box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); } article > header, @@ -2337,9 +2337,9 @@ dialog { align-items: center; justify-content: center; width: inherit; - min-width: 100%; + min-width: 70%; height: inherit; - min-height: 100%; + min-height: 70%; padding: 0; border: 0; -webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter); diff --git a/gestaoRaul/templates/static/products/css/products.css b/gestaoRaul/templates/static/products/css/products.css index de5f400..d822f5c 100644 --- a/gestaoRaul/templates/static/products/css/products.css +++ b/gestaoRaul/templates/static/products/css/products.css @@ -51,7 +51,12 @@ input, textarea { border: 1px solid #ccc; } - +* dialog { + transform: scale(1); + /* display: flexbox; + max-width: 200; + max-height: 400; */ +} diff --git a/gestaoRaul/templates/static/products/js/products.js b/gestaoRaul/templates/static/products/js/products.js index d2ae560..c20b2e1 100644 --- a/gestaoRaul/templates/static/products/js/products.js +++ b/gestaoRaul/templates/static/products/js/products.js @@ -21,9 +21,10 @@ function editProduct(id) { preco = preco.replace('R$ ', ''); preco = preco.replace(',', '.'); productPrice.value = preco; - // productDescription.value = document.getElementById('description-'+id).innerHTML; + productDescription.value = document.getElementById('description-'+id).value; productqtd.value = document.getElementById('quantity-'+id).innerHTML; - categorie.value = 2; + console.log(document.getElementById('h-category-'+id).value) + categorie.value = document.getElementById('h-category-'+id).value; // const url = `/products/editProduct/${id}/`; // // window.location.href = url;