From 17ae7e3d0c184f4e602d8413b899001269960ac5 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 15 Nov 2020 09:27:07 +0100 Subject: [PATCH] Added a tooltip what scan mode is --- localization/strings.pot | 3 +++ views/consume.blade.php | 3 ++- views/purchase.blade.php | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/localization/strings.pot b/localization/strings.pot index 500c4a67..bd359d09 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -1930,3 +1930,6 @@ msgstr "" msgid "There are items in stock which expire earlier" msgstr "" + +msgid "When enabled, the amount will always be filled with 1 after changing/scanning a product and if all fields could be automatically populated (by product defaults), the transaction is automatically submitted" +msgstr "" diff --git a/views/consume.blade.php b/views/consume.blade.php index c1fde9df..bc41ca53 100644 --- a/views/consume.blade.php +++ b/views/consume.blade.php @@ -29,7 +29,8 @@ @if(!$embedded) + data-toggle="tooltip" + title="{{ $__t('When enabled, the amount will always be filled with 1 after changing/scanning a product and if all fields could be automatically populated (by product defaults), the transaction is automatically submitted') }}">{{ $__t('Scan mode') }} @if(boolval($userSettings['scan_mode_consume_enabled'])) {{ $__t('on') }} @else {{ $__t('off') }} @endif {{ $__t('Scan mode') }} @if(boolval($userSettings['scan_mode_purchase_enabled'])) {{ $__t('on') }} @else {{ $__t('off') }} @endif + data-toggle="tooltip" + title="{{ $__t('When enabled, the amount will always be filled with 1 after changing/scanning a product and if all fields could be automatically populated (by product defaults), the transaction is automatically submitted') }}">{{ $__t('Scan mode') }} @if(boolval($userSettings['scan_mode_purchase_enabled'])) {{ $__t('on') }} @else {{ $__t('off') }} @endif