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

@yield('title')

@if($product != null)

{{ $__t('Override for product') }} {{ $product->name }}

@else

{{ $__t('Default for QU') }} {{ $defaultQuUnit->name }}

@endif @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' => 0, 'step' => 0.001, 'value' => $value, 'invalidFeedback' => $__t('This cannot be lower than %1$s and must be a valid number with max. %2$s decimal places', '0', '3'), 'additionalHtmlElements' => '

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