Product / QU form refinements

This commit is contained in:
Bernd Bestel 2020-11-08 22:13:36 +01:00
parent 4c399392eb
commit 40283609b5
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 11 additions and 3 deletions

View File

@ -369,7 +369,8 @@
<small class="my-2 form-text text-muted @if($mode == 'edit') d-none @endif">{{ $__t('Save & continue to add quantity unit conversions & barcodes') }}</small>
<button class="save-product-button btn btn-success mb-2"
<button id="save-product-button"
class="save-product-button btn btn-success mb-2"
data-location="continue">{{ $__t('Save & continue') }}</button>
<button class="save-product-button btn btn-info mb-2"
data-location="return">{{ $__t('Save & return to products') }}</button>

View File

@ -100,9 +100,16 @@
<input type="hidden"
name="create_inverse:skip"
value="0">
<input @if($mode=='edit'
<input @if($mode=='create'
&&
$product->create_inverse == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="create_inverse" name="create_inverse:skip" value="1">
$product==null)
checked
@endif
class="form-check-input custom-control-input"
type="checkbox"
id="create_inverse"
name="create_inverse:skip"
value="1">
<label class="form-check-label custom-control-label"
for="create_inverse">{{ $__t('Create inverse QU conversion') }}</label>
<span id="qu-conversion-inverse-info"