mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
UI strings/tooltips/basic handling review/optimizations
This commit is contained in:
@@ -92,13 +92,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm permission-MASTER_DATA_EDIT show-as-dialog-link"
|
||||
href="{{ $U('/battery/') }}{{ $battery->id }}?embedded">
|
||||
href="{{ $U('/battery/') }}{{ $battery->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm battery-delete-button permission-MASTER_DATA_EDIT"
|
||||
href="#"
|
||||
data-battery-id="{{ $battery->id }}"
|
||||
data-battery-name="{{ $battery->name }}">
|
||||
data-battery-name="{{ $battery->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -117,7 +117,7 @@
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
data-placement="left"
|
||||
title="{{ $__t('Track charge cycle of battery %s', FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->name) }}"
|
||||
title="{{ $__t('Track charge cycle') }}"
|
||||
data-battery-id="{{ $currentBatteryEntry->battery_id }}"
|
||||
data-battery-name="{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->name }}">
|
||||
<i class="fas fa-fire"></i>
|
||||
@@ -133,17 +133,17 @@
|
||||
data-battery-id="{{ $currentBatteryEntry->battery_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-info"></i></span> <span class="dropdown-item-text">{{ $__t('Show battery details') }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Battery overview') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/batteriesjournal?embedded&battery=') }}{{ $currentBatteryEntry->battery_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-file-alt"></i></span> <span class="dropdown-item-text">{{ $__t('Journal for this battery') }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Battery journal') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item permission-MASTER_DATA_EDIT"
|
||||
<a class="dropdown-item permission-MASTER_DATA_EDIT show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/battery/') }}{{ $currentBatteryEntry->battery_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-edit"></i></span> <span class="dropdown-item-text">{{ $__t('Edit battery') }}</span>
|
||||
href="{{ $U('/battery/') }}{{ $currentBatteryEntry->battery_id }}?embedded">
|
||||
<span class="dropdown-item-text">{{ $__t('Edit battery') }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -92,13 +92,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/chore/') }}{{ $chore->id }}">
|
||||
href="{{ $U('/chore/') }}{{ $chore->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm chore-delete-button"
|
||||
href="#"
|
||||
data-chore-id="{{ $chore->id }}"
|
||||
data-chore-name="{{ $chore->name }}">
|
||||
data-chore-name="{{ $chore->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -144,7 +144,7 @@
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
data-placement="left"
|
||||
title="{{ $__t('Track execution of chore %s', FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->name) }}"
|
||||
title="{{ $__t('Track chore execution') }}"
|
||||
data-chore-id="{{ $curentChoreEntry->chore_id }}"
|
||||
data-chore-name="{{ FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->name }}">
|
||||
<i class="fas fa-play"></i>
|
||||
@@ -160,17 +160,17 @@
|
||||
data-chore-id="{{ $curentChoreEntry->chore_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-info"></i></span> <span class="dropdown-item-text">{{ $__t('Show chore details') }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Chore overview') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/choresjournal?embedded&chore=') }}{{ $curentChoreEntry->chore_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-file-alt"></i></span> <span class="dropdown-item-text">{{ $__t('Journal for this chore') }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Chore journal') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item permission-MASTER_DATA_EDIT"
|
||||
type="button"
|
||||
href="{{ $U('/chore/') }}{{ $curentChoreEntry->chore_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-edit"></i></span> <span class="dropdown-item-text">{{ $__t('Edit chore') }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Edit chore') }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link"
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Journal for this chore') }}">
|
||||
title="{{ $__t('Chore journal') }}">
|
||||
<i class="fas fa-file-alt"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
@@ -17,14 +17,14 @@
|
||||
class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link"
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Stock journal for this product') }}">
|
||||
title="{{ $__t('Stock journal') }}">
|
||||
<i class="fas fa-file-alt"></i>
|
||||
</a>
|
||||
<a id="productcard-product-stock-button"
|
||||
class="btn btn-sm btn-outline-info py-0 mr-1 float-right disabled show-as-dialog-link"
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Stock entries for this product') }}">
|
||||
title="{{ $__t('Stock entries') }}">
|
||||
<i class="fas fa-boxes"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
@@ -81,13 +81,17 @@
|
||||
<tr data-equipment-id="{{ $equipmentItem->id }}">
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm hide-when-embedded hide-on-fullscreen-card"
|
||||
href="{{ $U('/equipment/') }}{{ $equipmentItem->id }}">
|
||||
href="{{ $U('/equipment/') }}{{ $equipmentItem->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-sm btn-danger hide-when-embedded hide-on-fullscreen-card equipment-delete-button"
|
||||
href="#"
|
||||
data-equipment-id="{{ $equipmentItem->id }}"
|
||||
data-equipment-name="{{ $equipmentItem->name }}">
|
||||
data-equipment-name="{{ $equipmentItem->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -81,11 +81,11 @@
|
||||
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
||||
@include('components.numberpicker', array(
|
||||
'id' => 'price',
|
||||
'label' => 'Price per stock unit',
|
||||
'label' => 'Price',
|
||||
'min' => 0,
|
||||
'decimals' => $userSettings['stock_decimal_places_prices'],
|
||||
'value' => '',
|
||||
'hint' => $__t('in %s per purchase quantity unit', GROCY_CURRENCY),
|
||||
'hint' => $__t('Per stock quantity unit', GROCY_CURRENCY),
|
||||
'additionalHtmlContextHelp' => '<i class="fas fa-question-circle"
|
||||
data-toggle="tooltip"
|
||||
title="' . $__t('This will apply to added products') . '"></i>',
|
||||
|
@@ -91,13 +91,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/location/') }}{{ $location->id }}?embedded">
|
||||
href="{{ $U('/location/') }}{{ $location->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm location-delete-button"
|
||||
href="#"
|
||||
data-location-id="{{ $location->id }}"
|
||||
data-location-name="{{ $location->name }}">
|
||||
data-location-name="{{ $location->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -97,13 +97,17 @@
|
||||
<a class="btn btn-danger btn-sm apikey-delete-button"
|
||||
href="#"
|
||||
data-apikey-id="{{ $apiKey->id }}"
|
||||
data-apikey-apikey="{{ $apiKey->api_key }}">
|
||||
data-apikey-apikey="{{ $apiKey->api_key }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
<a class="btn btn-info btn-sm apikey-show-qr-button"
|
||||
href="#"
|
||||
data-apikey-key="{{ $apiKey->api_key }}"
|
||||
data-apikey-type="{{ $apiKey->key_type }}">
|
||||
data-apikey-type="{{ $apiKey->key_type }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Show a QR-Code for this API key') }}">
|
||||
<i class="fas fa-qrcode"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -91,13 +91,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/productgroup/') }}{{ $productGroup->id }}?embedded">
|
||||
href="{{ $U('/productgroup/') }}{{ $productGroup->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm product-group-delete-button"
|
||||
href="#"
|
||||
data-group-id="{{ $productGroup->id }}"
|
||||
data-group-name="{{ $productGroup->name }}">
|
||||
data-group-name="{{ $productGroup->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -113,18 +113,24 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/product/') }}{{ $product->id }}">
|
||||
href="{{ $U('/product/') }}{{ $product->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm product-delete-button @if($product->active == 0) disabled @endif"
|
||||
href="#"
|
||||
data-product-id="{{ $product->id }}"
|
||||
data-product-name="{{ $product->name }}">
|
||||
data-product-name="{{ $product->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@if($product->active == 0) (deactivated) @endif {{ $product->name }}@if(!empty($product->picture_file_name)) <i class="fas fa-image text-muted"></i>@endif
|
||||
@if($product->active == 0) (deactivated) @endif {{ $product->name }}@if(!empty($product->picture_file_name)) <i class="fas fa-image text-muted"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('This product has a picture') }}"></i>@endif
|
||||
</td>
|
||||
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) d-none @endif">
|
||||
{{ FindObjectInArrayByPropertyValue($locations, 'id', $product->location_id)->name }}
|
||||
|
@@ -90,13 +90,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/quantityunit/') }}{{ $quantityunit->id }}">
|
||||
href="{{ $U('/quantityunit/') }}{{ $quantityunit->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm quantityunit-delete-button"
|
||||
href="#"
|
||||
data-quantityunit-id="{{ $quantityunit->id }}"
|
||||
data-quantityunit-name="{{ $quantityunit->name }}">
|
||||
data-quantityunit-name="{{ $quantityunit->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -125,13 +125,17 @@
|
||||
data-recipe-id="{{ $recipe->id }}">
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm hide-when-embedded hide-on-fullscreen-card"
|
||||
href="{{ $U('/recipe/') }}{{ $recipe->id }}">
|
||||
href="{{ $U('/recipe/') }}{{ $recipe->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-sm btn-danger hide-when-embedded hide-on-fullscreen-card recipe-delete"
|
||||
href="#"
|
||||
data-recipe-id="{{ $recipe->id }}"
|
||||
data-recipe-name="{{ $recipe->name }}">
|
||||
data-recipe-name="{{ $recipe->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -17,12 +17,14 @@
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<h4 class="mt-2">{{ $__t('Recipe card') }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="recipe_ingredients_group_by_product_group">
|
||||
<input type="checkbox"
|
||||
class="user-setting-control"
|
||||
id="recipe_ingredients_group_by_product_group"
|
||||
data-setting-key="recipe_ingredients_group_by_product_group"> {{ $__t('Group ingredients by their product group') }}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="form-check-input custom-control-input user-setting-control"
|
||||
id="recipe_ingredients_group_by_product_group"
|
||||
data-setting-key="recipe_ingredients_group_by_product_group">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="recipe_ingredients_group_by_product_group">
|
||||
{{ $__t('Group ingredients by their product group') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -17,26 +17,28 @@
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<h4 class="mt-2">{{ $__t('Shopping list') }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="shopping-list-show-calendar">
|
||||
<input type="checkbox"
|
||||
class="user-setting-control"
|
||||
id="shopping-list-show-calendar"
|
||||
name="shopping-list-show-calendar"
|
||||
data-setting-key="shopping_list_show_calendar"> {{ $__t('Show a month-view calendar') }}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="form-check-input custom-control-input user-setting-control"
|
||||
id="shopping_list_show_calendar"
|
||||
data-setting-key="shopping_list_show_calendar">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="shopping_list_show_calendar">
|
||||
{{ $__t('Show a month-view calendar') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="mt-2">{{ $__t('Shopping list to stock workflow') }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="shopping-list-to-stock-workflow-auto-submit-when-prefilled">
|
||||
<input type="checkbox"
|
||||
class="user-setting-control"
|
||||
id="shopping-list-to-stock-workflow-auto-submit-when-prefilled"
|
||||
name="shopping-list-to-stock-workflow-auto-submit-when-prefilled"
|
||||
data-setting-key="shopping_list_to_stock_workflow_auto_submit_when_prefilled"> {{ $__t('Automatically do the booking using the last price and the amount of the shopping list item, if the product has "Default best before days" set') }}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="form-check-input custom-control-input user-setting-control"
|
||||
id="shopping_list_to_stock_workflow_auto_submit_when_prefilled"
|
||||
data-setting-key="shopping_list_to_stock_workflow_auto_submit_when_prefilled">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="shopping_list_to_stock_workflow_auto_submit_when_prefilled">
|
||||
{{ $__t('Automatically do the booking using the last price and the amount of the shopping list item, if the product has "Default best before days" set') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -91,13 +91,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/shoppinglocation/') }}{{ $shoppinglocation->id }}?embedded">
|
||||
href="{{ $U('/shoppinglocation/') }}{{ $shoppinglocation->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm shoppinglocation-delete-button"
|
||||
href="#"
|
||||
data-shoppinglocation-id="{{ $shoppinglocation->id }}"
|
||||
data-shoppinglocation-name="{{ $shoppinglocation->name }}">
|
||||
data-shoppinglocation-name="{{ $shoppinglocation->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -139,23 +139,6 @@
|
||||
<i class="fas fa-list"></i> {{ $__t('Inventory') }}
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item product-name-cell"
|
||||
data-product-id="{{ $stockEntry->product_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
<i class="fas fa-info"></i> {{ $__t('Show product details') }}
|
||||
</a>
|
||||
<a class="dropdown-item"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal?product=') }}{{ $stockEntry->product_id }}">
|
||||
<i class="fas fa-file-alt"></i> {{ $__t('Stock journal for this product') }}
|
||||
</a>
|
||||
<a class="dropdown-item"
|
||||
type="button"
|
||||
href="{{ $U('/product/') }}{{ $stockEntry->product_id . '?returnto=/stockentries' }}">
|
||||
<i class="fas fa-edit"></i> {{ $__t('Edit product') }}
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item stock-consume-button stock-consume-button-spoiled @if($stockEntry->amount < 1) disabled @endif"
|
||||
type="button"
|
||||
href="#"
|
||||
@@ -166,15 +149,37 @@
|
||||
data-stockrow-id="{{ $stockEntry->id }}"
|
||||
data-location-id="{{ $stockEntry->location_id }}"
|
||||
data-consume-amount="1">
|
||||
<i class="fas fa-utensils"></i> {{ $__t('Consume %1$s of %2$s as spoiled', '1 ' . FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->name) }}
|
||||
{{ $__t('Consume this stock entry as spoiled', '1 ' . FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->name) }}
|
||||
</a>
|
||||
@if(GROCY_FEATURE_FLAG_RECIPES)
|
||||
<a class="dropdown-item"
|
||||
type="button"
|
||||
href="{{ $U('/recipes?search=') }}{{ FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->name }}">
|
||||
<i class="fas fa-cocktail"></i> {{ $__t('Search for recipes containing this product') }}
|
||||
{{ $__t('Search for recipes containing this product') }}
|
||||
</a>
|
||||
@endif
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item product-name-cell"
|
||||
data-product-id="{{ $stockEntry->product_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
{{ $__t('Product overview') }}
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal?embedded&product=') }}{{ $stockEntry->product_id }}">
|
||||
{{ $__t('Stock journal') }}
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal/summary?embedded&product=') }}{{ $stockEntry->product_id }}">
|
||||
{{ $__t('Stock journal summary') }}
|
||||
</a>
|
||||
<a class="dropdown-item"
|
||||
type="button"
|
||||
href="{{ $U('/product/') }}{{ $stockEntry->product_id . '?returnto=/stockentries' }}">
|
||||
{{ $__t('Edit product') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
@@ -57,7 +57,7 @@
|
||||
'id' => 'amount',
|
||||
'value' => $stockEntry->amount,
|
||||
'label' => 'Amount',
|
||||
'hintId' => 'amount_qu_unit',
|
||||
'contextInfoId' => 'amount_qu_unit',
|
||||
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
|
||||
'additionalAttributes' => 'data-not-equal="-1"',
|
||||
'additionalHtmlContextHelp' => '<div id="tare-weight-handling-info"
|
||||
@@ -81,7 +81,7 @@
|
||||
'label' => 'Price',
|
||||
'min' => '0.' . str_repeat('0', $userSettings['stock_decimal_places_prices'] - 1) . '1',
|
||||
'decimals' => $userSettings['stock_decimal_places_prices'],
|
||||
'hint' => $__t('in %s per purchase quantity unit', GROCY_CURRENCY),
|
||||
'hint' => $__t('Per stock quantity unit'),
|
||||
'invalidFeedback' => $__t('The price cannot be lower than %s', '0'),
|
||||
'isRequired' => false
|
||||
))
|
||||
|
@@ -85,8 +85,8 @@
|
||||
</th>
|
||||
<th>{{ $__t('Product') }}</th>
|
||||
<th>{{ $__t('Amount') }}</th>
|
||||
<th>{{ $__t('Booking time') }}</th>
|
||||
<th>{{ $__t('Booking type') }}</th>
|
||||
<th>{{ $__t('Transaction time') }}</th>
|
||||
<th>{{ $__t('Transaction type') }}</th>
|
||||
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) d-none @endif">{{ $__t('Location') }}</th>
|
||||
<th>{{ $__t('Done by') }}</th>
|
||||
</tr>
|
||||
@@ -102,7 +102,7 @@
|
||||
data-booking-id="{{ $stockLogEntry->id }}"
|
||||
data-toggle="tooltip"
|
||||
data-placement="left"
|
||||
title="{{ $__t('Undo booking') }}">
|
||||
title="{{ $__t('Undo transaction') }}">
|
||||
<i class="fas fa-undo"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ $__t('Product') }}</th>
|
||||
<th>{{ $__t('Booking type') }}</th>
|
||||
<th>{{ $__t('Transaction type') }}</th>
|
||||
<th>{{ $__t('User') }}</th>
|
||||
<th>{{ $__t('Amount') }}</th>
|
||||
</tr>
|
||||
|
@@ -257,34 +257,6 @@
|
||||
<span class="dropdown-item-icon"><i class="fas fa-list"></i></span> <span class="dropdown-item-text">{{ $__t('Inventory') }}</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item product-name-cell"
|
||||
data-product-id="{{ $currentStockEntry->product_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-info"></i></span> <span class="dropdown-item-text">{{ $__t('Show product details') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockentries?embedded&product=') }}{{ $currentStockEntry->product_id }}"
|
||||
data-product-id="{{ $currentStockEntry->product_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-boxes"></i></span> <span class="dropdown-item-text">{{ $__t('Show stock entries') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal?embedded&product=') }}{{ $currentStockEntry->product_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-file-alt"></i></span> <span class="dropdown-item-text">{{ $__t('Stock journal for this product') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal/summary?embedded&product_id=') }}{{ $currentStockEntry->product_id }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-file-archive"></i></span> <span class="dropdown-item-text">{{ $__t('Journal summary for this product') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item permission-MASTER_DATA_EDIT"
|
||||
type="button"
|
||||
href="{{ $U('/product/') }}{{ $currentStockEntry->product_id . '?returnto=%2Fstockoverview' }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-edit"></i></span> <span class="dropdown-item-text">{{ $__t('Edit product') }}</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item product-consume-button product-consume-button-spoiled permission-STOCK_CONSUME @if($currentStockEntry->amount < 1) disabled @endif"
|
||||
type="button"
|
||||
href="#"
|
||||
@@ -292,15 +264,43 @@
|
||||
data-product-name="{{ $currentStockEntry->product_name }}"
|
||||
data-product-qu-name="{{ $currentStockEntry->qu_unit_name }}"
|
||||
data-consume-amount="1">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-utensils"></i></span> <span class="dropdown-item-text">{{ $__t('Consume %1$s of %2$s as spoiled', '1 ' . $currentStockEntry->qu_unit_name, $currentStockEntry->product_name) }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Consume %1$s of %2$s as spoiled', '1 ' . $currentStockEntry->qu_unit_name, $currentStockEntry->product_name) }}</span>
|
||||
</a>
|
||||
@if(GROCY_FEATURE_FLAG_RECIPES)
|
||||
<a class="dropdown-item"
|
||||
type="button"
|
||||
href="{{ $U('/recipes?search=') }}{{ $currentStockEntry->product_name }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-cocktail"></i></span> <span class="dropdown-item-text">{{ $__t('Search for recipes containing this product') }}</span>
|
||||
<span class="dropdown-item-text">{{ $__t('Search for recipes containing this product') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item product-name-cell"
|
||||
data-product-id="{{ $currentStockEntry->product_id }}"
|
||||
type="button"
|
||||
href="#">
|
||||
<span class="dropdown-item-text">{{ $__t('Product overview') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockentries?embedded&product=') }}{{ $currentStockEntry->product_id }}"
|
||||
data-product-id="{{ $currentStockEntry->product_id }}">
|
||||
<span class="dropdown-item-text">{{ $__t('Stock entries') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal?embedded&product=') }}{{ $currentStockEntry->product_id }}">
|
||||
<span class="dropdown-item-text">{{ $__t('Stock journal') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link"
|
||||
type="button"
|
||||
href="{{ $U('/stockjournal/summary?embedded&product_id=') }}{{ $currentStockEntry->product_id }}">
|
||||
<span class="dropdown-item-text">{{ $__t('Stock journal summary') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item permission-MASTER_DATA_EDIT"
|
||||
type="button"
|
||||
href="{{ $U('/product/') }}{{ $currentStockEntry->product_id . '?returnto=%2Fstockoverview' }}">
|
||||
<span class="dropdown-item-text">{{ $__t('Edit product') }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@@ -326,7 +326,9 @@
|
||||
@endif
|
||||
@if(boolval($userSettings['show_icon_on_stock_overview_page_when_product_is_on_shopping_list']))
|
||||
@if($currentStockEntry->on_shopping_list)
|
||||
<span class="btn btn-link btn-sm text-muted">
|
||||
<span class="text-muted cursor-normal"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('This product is currently on a shopping list') }}">
|
||||
<i class="fas fa-shopping-cart"></i>
|
||||
</span>
|
||||
@endif
|
||||
|
@@ -68,12 +68,14 @@
|
||||
))
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="show_icon_on_stock_overview_page_when_product_is_on_shopping_list">
|
||||
<input type="checkbox"
|
||||
class="user-setting-control"
|
||||
id="show_icon_on_stock_overview_page_when_product_is_on_shopping_list"
|
||||
data-setting-key="show_icon_on_stock_overview_page_when_product_is_on_shopping_list"> {{ $__t('Show an icon if the product is already on the shopping list') }}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="form-check-input custom-control-input user-setting-control"
|
||||
id="show_icon_on_stock_overview_page_when_product_is_on_shopping_list"
|
||||
data-setting-key="show_icon_on_stock_overview_page_when_product_is_on_shopping_list">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="show_icon_on_stock_overview_page_when_product_is_on_shopping_list">
|
||||
{{ $__t('Show an icon if the product is already on the shopping list') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -90,12 +92,14 @@
|
||||
))
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="show_purchased_date_on_purchase">
|
||||
<input type="checkbox"
|
||||
class="user-setting-control"
|
||||
id="show_purchased_date_on_purchase"
|
||||
data-setting-key="show_purchased_date_on_purchase"> {{ $__t('Show purchased date on purchase and inventory page (otherwise the purchased date defaults to today)') }}
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="form-check-input custom-control-input user-setting-control"
|
||||
id="show_purchased_date_on_purchase"
|
||||
data-setting-key="show_purchased_date_on_purchase">
|
||||
<label class="form-check-label custom-control-label"
|
||||
for="show_purchased_date_on_purchase">
|
||||
{{ $__t('Show purchased date on purchase and inventory page (otherwise the purchased date defaults to today)') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -91,13 +91,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/taskcategory/') }}{{ $taskCategory->id }}?embedded">
|
||||
href="{{ $U('/taskcategory/') }}{{ $taskCategory->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm task-category-delete-button"
|
||||
href="#"
|
||||
data-category-id="{{ $taskCategory->id }}"
|
||||
data-category-name="{{ $taskCategory->name }}">
|
||||
data-category-name="{{ $taskCategory->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -136,7 +136,7 @@
|
||||
href="#"
|
||||
data-toggle="tooltip"
|
||||
data-placement="left"
|
||||
title="{{ $__t('Mark task "%s" as completed', $task->name) }}"
|
||||
title="{{ $__t('Mark task as completed') }}"
|
||||
data-task-id="{{ $task->id }}"
|
||||
data-task-name="{{ $task->name }}">
|
||||
<i class="fas fa-check"></i>
|
||||
@@ -152,16 +152,20 @@
|
||||
<i class="fas fa-undo"></i>
|
||||
</a>
|
||||
@endif
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/task/') }}{{ $task->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-sm btn-danger delete-task-button"
|
||||
href="#"
|
||||
data-task-id="{{ $task->id }}"
|
||||
data-task-name="{{ $task->name }}">
|
||||
data-task-name="{{ $task->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/task/') }}{{ $task->id }}?embedded">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td id="task-{{ $task->id }}-name"
|
||||
class="@if($task->done == 1) text-strike-through @endif">
|
||||
|
@@ -82,13 +82,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/userentity/') }}{{ $userentity->id }}?embedded">
|
||||
href="{{ $U('/userentity/') }}{{ $userentity->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm userentity-delete-button"
|
||||
href="#"
|
||||
data-userentity-id="{{ $userentity->id }}"
|
||||
data-userentity-name="{{ $userentity->name }}">
|
||||
data-userentity-name="{{ $userentity->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
<a class="btn btn-secondary btn-sm"
|
||||
|
@@ -98,13 +98,17 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm show-as-dialog-link"
|
||||
href="{{ $U('/userfield/') }}{{ $userfield->id }}?embedded">
|
||||
href="{{ $U('/userfield/') }}{{ $userfield->id }}?embedded"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm userfield-delete-button"
|
||||
href="#"
|
||||
data-userfield-id="{{ $userfield->id }}"
|
||||
data-userfield-name="{{ $userfield->name }}">
|
||||
data-userfield-name="{{ $userfield->name }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -88,12 +88,16 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right d-print-none">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/userobject/' . $userentity->name . '/') }}{{ $userobject->id }}">
|
||||
href="{{ $U('/userobject/' . $userentity->name . '/') }}{{ $userobject->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm userobject-delete-button"
|
||||
href="#"
|
||||
data-userobject-id="{{ $userobject->id }}">
|
||||
data-userobject-id="{{ $userobject->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
@@ -83,17 +83,23 @@
|
||||
<tr>
|
||||
<td class="fit-content border-right">
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/user/') }}{{ $user->id }}">
|
||||
href="{{ $U('/user/') }}{{ $user->id }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Edit this item') }}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-info btn-sm"
|
||||
href="{{ $U('/user/' . $user->id . '/permissions') }}">
|
||||
href="{{ $U('/user/' . $user->id . '/permissions') }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Configure user permissions') }}">
|
||||
<i class="fas fa-lock"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm user-delete-button @if($user->id == GROCY_USER_ID) disabled @endif"
|
||||
href="#"
|
||||
data-user-id="{{ $user->id }}"
|
||||
data-user-username="{{ $user->username }}">
|
||||
data-user-username="{{ $user->username }}"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Delete this item') }}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user