From a043f8e98c3acaaede400e7ff68aa8f67c5ca361 Mon Sep 17 00:00:00 2001 From: Shiro-Nek0 Date: Thu, 19 Mar 2026 23:51:01 -0300 Subject: [PATCH] compose + colors --- .gitignore | 0 .vscode/tasks.json | 2 +- README.md | 2 +- docker-compose.yml | 11 +++++++++++ static/style.css | 12 ++++++++++++ templates/admin_productos.html | 10 +++++----- templates/admin_structure.html | 4 ++-- templates/admin_workers.html | 11 ++++++----- 8 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e16d934..c6685b0 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,7 +4,7 @@ { "label": "build-rendiciones", "type": "shell", - "command": "docker build -t rendiciones:latest .", + "command": "docker build -t rendiciones:latest . && docker compose up -d", "group": "build", "presentation": { "reveal": "always", diff --git a/README.md b/README.md index 7d51a13..54fdc66 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ services: - 5000:5000 volumes: - YOUR_PATH/rendiciones/db:/app/db - - YOUR_PATH/serendicionesipos/static/cache:/app/static/cache + - YOUR_PATH/rendiciones/static/cache:/app/static/cache container_name: rendiciones-server image: rendiciones:latest restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ac76102 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +name: rendiciones +services: + rendiciones: + ports: + - 5000:5000 + volumes: + - YOUR_PATH/rendiciones/db:/app/db + - YOUR_PATH/rendiciones/static/cache:/app/static/cache + container_name: rendiciones-server + image: rendiciones:latest + restart: unless-stopped \ No newline at end of file diff --git a/static/style.css b/static/style.css index 8292d24..7ccd58a 100644 --- a/static/style.css +++ b/static/style.css @@ -10,3 +10,15 @@ [data-bs-theme="dark"] .text-muted-rut { color: #adb5bd !important; /* Un gris medio para el label "RUT (No editable)" */ } + +@media (max-width: 576px) { + .col-barcode { + display: none; + } + + .btn-edit-sm, + .btn-del-sm { + padding: 4px 7px; + font-size: 0.75rem; + } + } diff --git a/templates/admin_productos.html b/templates/admin_productos.html index c943478..270845c 100644 --- a/templates/admin_productos.html +++ b/templates/admin_productos.html @@ -21,7 +21,7 @@ {{ edit_product_modal(zonas) }}
-
Agregar Nuevo Producto
+
Agregar Nuevo Producto
@@ -81,7 +81,7 @@ ${{ "{:,.0f}".format(prod[3]).replace(',', '.') }} - {{ confirm_modal( diff --git a/templates/admin_structure.html b/templates/admin_structure.html index 77c518a..1fda1be 100644 --- a/templates/admin_structure.html +++ b/templates/admin_structure.html @@ -21,7 +21,7 @@
-
+
Gestión de Zonas
@@ -63,7 +63,7 @@
-
+
Gestión de Módulos
diff --git a/templates/admin_workers.html b/templates/admin_workers.html index 46ccd15..55ad3f9 100644 --- a/templates/admin_workers.html +++ b/templates/admin_workers.html @@ -21,7 +21,7 @@ {{ edit_worker_modal(modulos) }}
-
Agregar Nuevo Trabajador
+
Agregar Nuevo Trabajador
@@ -73,18 +73,19 @@ {{ worker[4] }} - {{ confirm_modal(