From 91c275e66bef4d75aa87acf12a91619e92f912b4 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 20 Sep 2019 20:14:47 +0200 Subject: [PATCH] Slightly reordered the header of the shopping list page --- public/viewjs/shoppinglistform.js | 2 +- views/shoppinglist.blade.php | 44 +++++++++++++++---------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/public/viewjs/shoppinglistform.js b/public/viewjs/shoppinglistform.js index 7cfa3bfe..a10b6a34 100644 --- a/public/viewjs/shoppinglistform.js +++ b/public/viewjs/shoppinglistform.js @@ -10,7 +10,7 @@ Grocy.Api.Post('objects/shopping_lists', jsonData, function(result) { - window.location.href = U('/shoppinglist'); + window.location.href = U('/shoppinglist?list=' + result.created_object_id); }, function(xhr) { diff --git a/views/shoppinglist.blade.php b/views/shoppinglist.blade.php index 664d28c5..01c72842 100644 --- a/views/shoppinglist.blade.php +++ b/views/shoppinglist.blade.php @@ -16,28 +16,7 @@ @endpush @section('content') -
-
-

- @yield('title') - - {{ $__t('Add item') }} - - - {{ $__t('Clear list') }} - - - {{ $__t('Add products that are below defined min. stock amount') }} - - - {{ $__t('Add all list items to stock') }} - -

-

{{ $__n(count($missingProducts), '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') }}

-
-
- -
+