2023-05-21 10:56:38 +02:00
|
|
|
@php require_frontend_packages(['animatecss']); @endphp
|
|
|
|
|
2019-09-18 20:21:09 +02:00
|
|
|
@extends('layout.default')
|
|
|
|
|
|
|
|
@section('title', $__t('Quantity unit plural form testing'))
|
|
|
|
|
|
|
|
@section('content')
|
2020-04-19 08:51:02 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h2 class="title">@yield('title')</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-31 18:37:10 +01:00
|
|
|
|
2020-11-08 15:09:10 +01:00
|
|
|
<hr class="my-2">
|
2020-10-31 18:37:10 +01:00
|
|
|
|
2019-09-18 20:21:09 +02:00
|
|
|
<div class="row">
|
2021-06-24 22:46:47 +02:00
|
|
|
<div class="col-lg-6 col-12">
|
2020-08-31 20:32:50 +02:00
|
|
|
<form id="quantityunitpluraltesting-form"
|
|
|
|
novalidate>
|
2019-09-18 20:21:09 +02:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="qu_id">{{ $__t('Quantity unit') }}</label>
|
2020-11-16 19:10:29 +01:00
|
|
|
<select class="custom-control custom-select"
|
2020-08-31 20:32:50 +02:00
|
|
|
id="qu_id"
|
|
|
|
name="qu_id">
|
2019-09-18 20:21:09 +02:00
|
|
|
<option></option>
|
|
|
|
@foreach($quantityUnits as $quantityUnit)
|
2020-08-31 20:32:50 +02:00
|
|
|
<option value="{{ $quantityUnit->id }}"
|
|
|
|
data-singular-form="{{ $quantityUnit->name }}"
|
|
|
|
data-plural-form="{{ $quantityUnit->name_plural }}">{{ $quantityUnit->name }}</option>
|
2019-09-18 20:21:09 +02:00
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@include('components.numberpicker', array(
|
2020-08-31 20:32:50 +02:00
|
|
|
'id' => 'amount',
|
|
|
|
'label' => 'Amount',
|
2020-12-23 19:56:37 +01:00
|
|
|
'min' => 0,
|
2020-10-20 13:08:54 -05:00
|
|
|
'decimals' => $userSettings['stock_decimal_places_amounts'],
|
2020-08-31 20:32:50 +02:00
|
|
|
'isRequired' => false,
|
2020-11-15 14:15:09 +01:00
|
|
|
'value' => 1,
|
|
|
|
'additionalCssClasses' => 'locale-number-input locale-number-quantity-amount'
|
2019-09-18 20:21:09 +02:00
|
|
|
))
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h2><strong>{{ $__t('Result') }}:</strong> <span id="result"></span></h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|