mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
* Fixes #1035: Check available amount after filtering by stock_entry_id * Fixes #1036: Remove stock-related buttons/options from Shopping-list if FEATURE_FLAG_STOCK is disabled * Fixes #1010: Repair recipe-picture upload. * Fixes #958: Disable auto-reload of equipments-page. * Fix uncaught exception in locationpicker.js * Fixes #761 and #762: Add "Remove exact amount" for products with tare weight handling and use it for recipe-consumption. * Fixes #1048: Repair product-group-filter on "Master Data"/Products * Renamed variable Co-authored-by: Bernd Bestel <bernd@berrnd.de>
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
@push('componentScripts')
|
|
<script src="{{ $U('/viewjs/components/locationpicker.js', true) }}?v={{ $version }}"></script>
|
|
@endpush
|
|
|
|
@php if(empty($prefillByName)) { $prefillByName = ''; } @endphp
|
|
@php if(empty($prefillById)) { $prefillById = ''; } @endphp
|
|
@php if(!isset($isRequired)) { $isRequired = true; } @endphp
|
|
@php if(empty($hint)) { $hint = ''; } @endphp
|
|
@php if(empty($nextInputSelector)) { $nextInputSelector = ''; } @endphp
|
|
|
|
<div class="form-group"
|
|
data-next-input-selector="{{ $nextInputSelector }}"
|
|
data-prefill-by-name="{{ $prefillByName }}"
|
|
data-prefill-by-id="{{ $prefillById }}">
|
|
<label for="location_id">{{ $__t('Location') }} <span @if(!empty($hintId))id="{{ $hintId }}" @endif
|
|
class="small text-muted">{{ $hint }}</span></label>
|
|
<select class="form-control location-combobox"
|
|
id="location_id"
|
|
name="location_id"
|
|
@if($isRequired)
|
|
required
|
|
@endif>
|
|
<option value=""></option>
|
|
@foreach($locations as $location)
|
|
<option value="{{ $location->id }}">{{ $location->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
<div class="invalid-feedback">{{ $__t('You have to select a location') }}</div>
|
|
</div>
|