@extends('layout.default') @if($mode == 'edit') @section('title', $__t('Edit QU conversion')) @else @section('title', $__t('Create QU conversion')) @endif @section('content')

@if($mode == 'edit') @endif
@if($product != null) @endif
{{ $__t('A quantity unit is required') }}
{{ $__t('A quantity unit is required') }}
@php if($mode == 'edit') { $value = $quConversion->factor; } else { $value = 1; } @endphp @include('components.numberpicker', array( 'id' => 'factor', 'label' => 'Factor', 'min' => $DEFAULT_MIN_AMOUNT, 'decimals' => $userSettings['stock_decimal_places_amounts'], 'value' => $value, 'additionalHtmlElements' => '

', 'additionalCssClasses' => 'input-group-qu locale-number-input locale-number-quantity-amount' )) @include('components.userfieldsform', array( 'userfields' => $userfields, 'entity' => 'quantity_unit_conversions' ))
@stop