From 3d5e468a28b47526b7e02f288e1417e78053a014 Mon Sep 17 00:00:00 2001 From: ske087 Date: Thu, 18 Dec 2025 21:53:56 +0200 Subject: [PATCH] Improve FG scan page UX and integrate scan-to-boxes with QZ Tray printing - Redesigned scan card layout: 500px width with horizontal label-input layout - Reduced spacing and optimized for no scrolling (700px max-height) - Added auto-advance between fields when valid data is entered - Integrated scan-to-boxes popup with warehouse box assignment - Added QZ Tray printing to Quick Box Creation button - Box labels now print automatically after creation in scan workflow - Fixed warehouse blueprint URL prefix registration (/warehouse) - Updated manage_boxes to return JSON for AJAX requests - Improved error message grid layout to maintain form alignment --- py_app/app/static/css/scan.css | 36 +++++++++---- py_app/app/templates/fg_scan.html | 90 +++++++++++++++++++++++++++++-- 2 files changed, 114 insertions(+), 12 deletions(-) diff --git a/py_app/app/static/css/scan.css b/py_app/app/static/css/scan.css index f98b3be..5c309ee 100644 --- a/py_app/app/static/css/scan.css +++ b/py_app/app/static/css/scan.css @@ -1,30 +1,48 @@ /* Scan Module Specific Styles */ .scan-form-card { - width: 380px; - max-width: 380px; + width: 500px; + max-width: 500px; margin: 0 auto 20px auto; - max-height: 660px; + max-height: 700px; overflow-y: auto; - padding: 18px 18px 12px 18px; + padding: 12px 18px 12px 18px; +} + +.scan-form-card h3 { + margin-top: 0; + margin-bottom: 8px; } .scan-form-card form { - display: flex; - flex-direction: column; - gap: 4px; + display: grid; + grid-template-columns: 140px 1fr; + gap: 8px; + align-items: center; } .scan-form-card label { font-weight: 500; - margin-bottom: 1px; + margin-bottom: 0; + margin-top: 0; font-size: 13px; + text-align: left; + padding-right: 8px; } .scan-form-card input[type="text"] { padding: 5px 10px; font-size: 13px; - margin-bottom: 2px; + margin-bottom: 0; +} + +.scan-form-card button[type="submit"], +.scan-form-card button[type="button"] { + grid-column: 1 / -1; +} + +.scan-form-card > form > div { + grid-column: 1 / -1; } .scan-table-card { diff --git a/py_app/app/templates/fg_scan.html b/py_app/app/templates/fg_scan.html index 1d1f4c0..a66fb47 100644 --- a/py_app/app/templates/fg_scan.html +++ b/py_app/app/templates/fg_scan.html @@ -3,12 +3,15 @@ {% block title %}Finish Good Scan{% endblock %} {% block head %} + +