mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 09:11:11 +00:00
Create Inverse QU Conversions (#788)
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<select required disabled class="form-control input-group-qu" id="from_qu_id" name="from_qu_id">
|
||||
<option></option>
|
||||
@foreach($quantityunits as $quantityunit)
|
||||
<option @if(($product != null && $quantityunit->id == $product->qu_id_stock) || ($defaultQuUnit != null && $quantityunit->id == $defaultQuUnit->id))) selected="selected" @endif value="{{ $quantityunit->id }}">{{ $quantityunit->name }}</option>
|
||||
<option @if(($product != null && $quantityunit->id == $product->qu_id_stock) || ($defaultQuUnit != null && $quantityunit->id == $defaultQuUnit->id))) selected="selected" @endif value="{{ $quantityunit->id }}" data-plural-form="{{ $quantityunit->name_plural }}">{{ $quantityunit->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div class="invalid-feedback">{{ $__t('A quantity unit is required') }}</div>
|
||||
@@ -70,6 +70,13 @@
|
||||
'additionalCssClasses' => 'input-group-qu'
|
||||
))
|
||||
|
||||
<div class="checkbox @if($mode == 'edit') d-none @endif">
|
||||
<label for="create_inverse">
|
||||
<input type="checkbox" id="create_inverse" name="create_inverse:skip" checked> {{ $__t('Create Inverse QU Conversion') }}
|
||||
</label>
|
||||
<p id="qu-conversion-inverse-info" class="form-text text-info d-none"></p>
|
||||
</div>
|
||||
|
||||
@include('components.userfieldsform', array(
|
||||
'userfields' => $userfields,
|
||||
'entity' => 'quantity_unit_conversions'
|
||||
|
Reference in New Issue
Block a user