diff --git a/changelog/56_UNRELEASED_2020-xx-xx.md b/changelog/56_UNRELEASED_2020-xx-xx.md index 6b20a665..ba196902 100644 --- a/changelog/56_UNRELEASED_2020-xx-xx.md +++ b/changelog/56_UNRELEASED_2020-xx-xx.md @@ -3,3 +3,6 @@ ### Shopping list fixes - Optimized the new compact view (there was a little too much white space at the sides of the page) + +### Recipe improvements +- Optimized the ordering of the inputs on the recipe ingredient edit page (moved "Only check if a single unit is in stock" before the amount) diff --git a/views/recipeposform.blade.php b/views/recipeposform.blade.php index 676c959c..23f68e32 100644 --- a/views/recipeposform.blade.php +++ b/views/recipeposform.blade.php @@ -33,6 +33,16 @@ 'nextInputSelector' => '#amount' )) +
+
+
+ + only_check_single_unit_in_stock == 1) checked @endif class="form-check-input" type="checkbox" id="only_check_single_unit_in_stock" name="only_check_single_unit_in_stock" value="1"> + +
+
+
+ @php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp @php if($mode == 'edit') { $initialQuId = $recipePos->qu_id; } else { $initialQuId = ''; } @endphp @include('components.productamountpicker', array( @@ -41,16 +51,6 @@ 'additionalGroupCssClasses' => 'mb-0' )) -
-
-
- - only_check_single_unit_in_stock == 1) checked @endif class="form-check-input" type="checkbox" id="only_check_single_unit_in_stock" name="only_check_single_unit_in_stock" value="1"> - -
-
-
-