@extends('layout.default') @if($mode == 'edit') @section('title', $__t('Edit quantity unit')) @else @section('title', $__t('Create quantity unit')) @endif @section('viewJsName', 'quantityunitform') @section('content')

@yield('title')


@if($mode == 'edit') @endif
{{ $__t('A name is required') }}
@if($pluralCount > 2)
@endif
@include('components.userfieldsform', array( 'userfields' => $userfields, 'entity' => 'quantity_units' )) {{ $__t('Save & continue to add conversions') }} @if(intval($pluralCount) > 2) @endif
@if($mode == "edit") @foreach($defaultQuConversions as $defaultQuConversion) @endforeach @endif
{{ $__t('Factor') }} {{ $__t('Unit') }}
{{ $defaultQuConversion->factor }} {{ FindObjectInArrayByPropertyValue($quantityUnits, 'id', $defaultQuConversion->to_qu_id)->name }}
@stop