Browse Source

fix: 🚑️ decimal input steps to number inputs

IceToast 3 years ago
parent
commit
3723b527f5

+ 1 - 0
themes/default/views/admin/products/create.blade.php

@@ -66,6 +66,7 @@
                                             <label for="price">{{__('Price in')}} {{CREDITS_DISPLAY_NAME}}</label>
                                             <label for="price">{{__('Price in')}} {{CREDITS_DISPLAY_NAME}}</label>
                                             <input value="{{$product->price ??  old('price')}}" id="price" name="price" step=".01"
                                             <input value="{{$product->price ??  old('price')}}" id="price" name="price" step=".01"
                                                    type="number"
                                                    type="number"
+                                                   step="0.0001"
                                                    class="form-control @error('price') is-invalid @enderror"
                                                    class="form-control @error('price') is-invalid @enderror"
                                                    required="required">
                                                    required="required">
                                             @error('price')
                                             @error('price')

+ 4 - 2
themes/default/views/admin/products/edit.blade.php

@@ -75,8 +75,10 @@
                                         </div>
                                         </div>
 
 
                                         <div class="form-group">
                                         <div class="form-group">
-                                            <label for="price">{{__('Price in')}} {{ CREDITS_DISPLAY_NAME }}</label>
-                                            <input value="{{ $product->price }}" id="price" name="price" type="number" step=".01"
+                                            <label for="price">{{__('Price in')}} {{CREDITS_DISPLAY_NAME}}</label>
+                                            <input value="{{$product->price}}" id="price" name="price"
+                                                   type="number"
+                                                   step="0.0001"
                                                    class="form-control @error('price') is-invalid @enderror"
                                                    class="form-control @error('price') is-invalid @enderror"
                                                    required="required">
                                                    required="required">
                                             @error('price')
                                             @error('price')