mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Support camera barcode scanning in recipepicker (references #1562)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@if (!GROCY_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
||||
@if (!GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)
|
||||
|
||||
@once
|
||||
@push('componentScripts')
|
||||
|
@@ -24,9 +24,10 @@
|
||||
@endif
|
||||
<i class="fas fa-barcode float-right mt-1"></i>
|
||||
</label>
|
||||
<select class="form-control recipe-combobox"
|
||||
<select class="form-control recipe-combobox barcodescanner-input"
|
||||
id="recipe_id"
|
||||
name="recipe_id"
|
||||
data-target="@recipepicker"
|
||||
@if($isRequired)
|
||||
required
|
||||
@endif>
|
||||
@@ -37,3 +38,5 @@
|
||||
</select>
|
||||
<div class="invalid-feedback">{{ $__t('You have to select a recipe') }}</div>
|
||||
</div>
|
||||
|
||||
@include('components.barcodescanner')
|
||||
|
Reference in New Issue
Block a user