From be767fcacfcad28aa76dddbe70c2ae037e831eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 22 Feb 2026 19:28:03 +0100 Subject: [PATCH] Added basic info block when an storage location was found for an barcode --- .../label_system/scanner/_info_mode.html.twig | 35 +++++++++++++++++++ translations/messages.en.xlf | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/templates/label_system/scanner/_info_mode.html.twig b/templates/label_system/scanner/_info_mode.html.twig index aa72c38b..92da61c2 100644 --- a/templates/label_system/scanner/_info_mode.html.twig +++ b/templates/label_system/scanner/_info_mode.html.twig @@ -86,8 +86,43 @@ + + {% elseif entity %} {# If we have an entity but that is not an part #} + +
+
+ {% trans %}label_scanner.target_found{% endtrans %}: {{ type_label(entity) }} + {% if openUrl %} +
+ + + +
+ {% endif %} + +
+
+
+ +
+ + +
+

{{ entity.name }}

+

{% trans %}id.label{% endtrans %}: {{ entity.id }} ({{ type_label(entity) }})

+ + {% if entity.fullPath is defined %} + {{ helper.breadcrumb_entity_link(entity)}} + {% endif %} +
+
+
+ {% endif %} + {% if createUrl %}

{% trans %}label_scanner.part_can_be_created{% endtrans %}

diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 0ea7e745..31bc3884 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -9521,7 +9521,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g label_scanner.target_found - Item Found + Item found in database