Fixed/unified shopping list item button tooltips (fixes #1239)

This commit is contained in:
Bernd Bestel 2020-12-31 13:09:55 +01:00
parent 5cd3fb092a
commit 97b93f23bd
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 2 deletions

View File

@ -832,7 +832,7 @@ msgstr ""
msgid "Add all list items to stock"
msgstr ""
msgid "Add %1$s of %2$s to stock"
msgid "Add this item to stock"
msgstr ""
msgid "Adding shopping list item %1$s of %2$s"

View File

@ -209,7 +209,7 @@
</a>
<a class="btn btn-sm btn-primary @if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif @if(empty($listItem->product_id)) disabled @else shopping-list-stock-add-workflow-list-item-button @endif"
href="{{ $U('/purchase?embedded&flow=shoppinglistitemtostock&product=') }}{{ $listItem->product_id }}&amount={{ $listItem->amount }}&listitemid={{ $listItem->id }}&quId={{ $listItem->qu_id }}"
@if(!empty($listItem->product_id)) data-toggle="tooltip" title="{{ $__t('Add %1$s of %2$s to stock', $listItem->amount . ' ' . $__n($listItem->amount, $listItem->qu_name, $listItem->qu_name_plural), $listItem->product_name, $listItem->amount) }}" @endif>
@if(!empty($listItem->product_id)) data-toggle="tooltip" title="{{ $__t('Add this item to stock') }}" @endif>
<i class="fas fa-box"></i>
</a>
</td>