Streamlined inventory input field hints

This commit is contained in:
Bernd Bestel 2025-01-22 19:28:47 +01:00
parent 0bbc06a70c
commit 69e21fd483
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 10 additions and 4 deletions

View File

@ -16,9 +16,14 @@
data-next-input-selector="{{ $nextInputSelector }}"
data-prefill-by-name="{{ $prefillByName }}"
data-prefill-by-id="{{ $prefillById }}">
<label for="shopping_location_id">{{ $__t($label) }}&nbsp;&nbsp;<span @if(!empty($hintId))id="{{ $hintId }}"
@endif
class="small text-muted">{{ $hint }}</span></label>
<label for="shopping_location_id">{{ $__t($label) }}
@if(!empty($hint))
<i class="fa-solid fa-question-circle text-muted"
data-toggle="tooltip"
data-trigger="hover click"
title="{{ $hint }}"></i>
@endif
</label>
<select class="form-control shopping-location-combobox"
id="shopping_location_id"
name="shopping_location_id"

View File

@ -91,7 +91,8 @@
@include('components.shoppinglocationpicker', array(
'label' => 'Store',
'shoppinglocations' => $shoppinglocations
'shoppinglocations' => $shoppinglocations,
'hint' => $__t('This will apply to added products'),
))
@else
<input type="hidden"