From bff577b461c55c24723032c5b07240957c735029 Mon Sep 17 00:00:00 2001 From: Adriano Dal Pastro Date: Fri, 5 Jun 2026 08:48:54 +0000 Subject: [PATCH] fix(measure): separate traceability inputs from recipe search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the recipe selection page the Lotto/Seriale fields shared a single filter bar with the "Cerca ricetta" search box, so operators read them as search filters instead of data-entry fields and never filled them in. Split into two cards: a search filter, and a distinct "Tracciabilità" section with heading, helper text, accent border and monospace inputs with amber/indigo icons matching the lot/serial badges shown downstream. Add EN translations for the new strings. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../templates/measure/select_recipe.html | 65 ++++++++++++------- .../translations/en/LC_MESSAGES/messages.po | 12 ++++ 2 files changed, 55 insertions(+), 22 deletions(-) diff --git a/src/frontend/flask_app/templates/measure/select_recipe.html b/src/frontend/flask_app/templates/measure/select_recipe.html index 979c2d4..9a1b4b6 100644 --- a/src/frontend/flask_app/templates/measure/select_recipe.html +++ b/src/frontend/flask_app/templates/measure/select_recipe.html @@ -92,40 +92,61 @@ - -
+ +
-
- -
- - -
+ + +
+
+ +
+
+
+ + + +
+

{{ _('Tracciabilità') }}

+

{{ _('Dati del pezzo da misurare — compila prima di selezionare la ricetta') }}

+
+
+
- + + placeholder="{{ _('Es. LOT-2026-001 (opzionale)') }}" + class="tmf-input font-mono">
- + + placeholder="{{ _('Es. SN-000123 (opzionale)') }}" + class="tmf-input font-mono">
diff --git a/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po b/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po index 8a7aab9..aac256d 100644 --- a/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po +++ b/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po @@ -2173,3 +2173,15 @@ msgstr "Error generating report" #~ msgid "Segui le istruzioni nella direttiva" #~ msgstr "Follow the instructions in the directive" +msgid "Tracciabilità" +msgstr "Traceability" + +msgid "Dati del pezzo da misurare — compila prima di selezionare la ricetta" +msgstr "Part data to be measured — fill in before selecting the recipe" + +msgid "Es. LOT-2026-001 (opzionale)" +msgstr "E.g. LOT-2026-001 (optional)" + +msgid "Es. SN-000123 (opzionale)" +msgstr "E.g. SN-000123 (optional)" +