Allow no product for shopping list items & always in-/decrement by 1 when using the number input arrow buttons (fixes #964)

This commit is contained in:
Bernd Bestel
2020-10-18 14:27:23 +02:00
parent 7e08224c75
commit 80cf68aeaa
13 changed files with 11 additions and 30 deletions

View File

@@ -5,7 +5,6 @@
@php if(!isset($value)) { $value = 1; } @endphp
@php if(empty($min)) { $min = 0; } @endphp
@php if(empty($max)) { $max = 999999; } @endphp
@php if(empty($step)) { $step = 1; } @endphp
@php if(empty($hint)) { $hint = ''; } @endphp
@php if(empty($hintId)) { $hintId = ''; } @endphp
@php if(empty($additionalCssClasses)) { $additionalCssClasses = ''; } @endphp
@@ -36,7 +35,7 @@
value="{{ $value }}"
min="{{ $min }}"
max="{{ $max }}"
step="{{ $step }}"
step="{{ $min }}"
@if($isRequired)
required
@endif>

View File

@@ -42,7 +42,6 @@
'label' => $userfield->caption,
'noNameAttribute' => true,
'min' => 0,
'step' => 0.01,
'isRequired' => false,
'additionalCssClasses' => 'userfield-input',
'additionalAttributes' => 'data-userfield-name="' . $userfield->name . '"'