@extends('layout.default') @section('title', $L('Inventory')) @section('activeNav', 'inventory') @section('viewJsName', 'inventory') @section('content')

@yield('title')

@include('components.productpicker', array( 'products' => $products, 'nextInputSelector' => '#new_amount' )) @include('components.numberpicker', array( 'id' => 'new_amount', 'label' => 'New amount', 'hintId' => 'new_amount_qu_unit', 'min' => 0, 'value' => 1, 'invalidFeedback' => $L('The amount cannot be lower than #1', '0'), 'additionalAttributes' => 'data-notequal="notequal" not-equal="-1"', 'additionalHtmlElements' => '
', 'additionalHtmlContextHelp' => '
' . $L('Tare weight handling enabled - please weigh the whole container, the amount to be posted will be automatically calculcated') . '
' )) @include('components.datetimepicker', array( 'id' => 'best_before_date', 'label' => 'Best before', 'hint' => 'This will apply to added products', 'format' => 'YYYY-MM-DD', 'initWithNow' => false, 'limitEndToNow' => false, 'limitStartToNow' => true, 'invalidFeedback' => $L('A best before date is required and must be later than today'), 'nextInputSelector' => '#best_before_date', 'additionalCssClasses' => 'date-only-datetimepicker', 'shortcutValue' => '2999-12-31', 'shortcutLabel' => 'Never expires' ))
@include('components.productcard')
@stop