From cb8a48e58f4aebdc5db994f04943e2c882b93e36 Mon Sep 17 00:00:00 2001 From: Scheianu Ionut Date: Sun, 5 Oct 2025 09:58:33 +0300 Subject: [PATCH] import locations to bulk --- py_app/app/static/style.css | 10 ++ py_app/app/templates/create_locations.html | 8 +- .../app/templates/import_locations_csv.html | 123 ++++++++++++++++++ 3 files changed, 139 insertions(+), 2 deletions(-) create mode 100644 py_app/app/templates/import_locations_csv.html diff --git a/py_app/app/static/style.css b/py_app/app/static/style.css index 4d8179b..e980e37 100644 --- a/py_app/app/static/style.css +++ b/py_app/app/static/style.css @@ -1209,4 +1209,14 @@ body.dark-mode .calendar-day.selected { min-height: 30px; font-size: 0.8em; } +} + +/* Selected row styles */ +tr.location-row.selected, .location-row.selected td { + background-color: #ffb300 !important; /* Accent color: Amber */ + color: #222 !important; + font-weight: bold; + box-shadow: 0 2px 8px rgba(255,179,0,0.12); + border-left: 4px solid #ff9800; + transition: background 0.2s, color 0.2s; } \ No newline at end of file diff --git a/py_app/app/templates/create_locations.html b/py_app/app/templates/create_locations.html index fac2463..0eabd65 100644 --- a/py_app/app/templates/create_locations.html +++ b/py_app/app/templates/create_locations.html @@ -46,8 +46,12 @@ } .location-row.selected { - background-color: #007bff !important; - color: white !important; + background-color: #ffb300 !important; /* Accent color: Amber */ + color: #222 !important; + font-weight: bold; + box-shadow: 0 2px 8px rgba(255,179,0,0.12); + border-left: 4px solid #ff9800; + transition: background 0.2s, color 0.2s; } .location-row { diff --git a/py_app/app/templates/import_locations_csv.html b/py_app/app/templates/import_locations_csv.html new file mode 100644 index 0000000..ec863c5 --- /dev/null +++ b/py_app/app/templates/import_locations_csv.html @@ -0,0 +1,123 @@ +{% extends "base.html" %} +{% block title %}Import Warehouse Locations CSV{% endblock %} + +{% block head %} + +{% endblock %} + +{% block content %} +
+ +
+

Import Warehouse Locations from CSV

+
+ + {% if not locations %} +
+ + {% else %} +
+ + {% endif %} +
+ + + +
+ +
+

Preview Table

+ + + + + + + + + + {% if locations %} + {% for loc in locations %} + + + + + + {% endfor %} + {% else %} + + {% endif %} + +
Location CodeSizeDescription
{{ loc[0] }}{{ loc[1] }}{{ loc[2] }}
No CSV file uploaded yet.
+
+ {% if report %} +
+

Import Report

+

{{ report }}

+
+ {% endif %} +
+{% endblock %}