From 69674e26488670038641d016b20fc863a096e545 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 3 Feb 2021 19:51:43 +0100 Subject: [PATCH] allow entry mode toggle --- cookbook/templates/shopping_list.html | 62 +++++++++++++++------------ 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/cookbook/templates/shopping_list.html b/cookbook/templates/shopping_list.html index 0aece6f01..8a25b7154 100644 --- a/cookbook/templates/shopping_list.html +++ b/cookbook/templates/shopping_list.html @@ -15,6 +15,10 @@ + + + + {% endblock %} @@ -135,31 +139,33 @@ -
+
+
+ {% trans 'Entry Mode' %} +
+
+ +
- -
-
-
-
-
-
+ +
-
@@ -213,22 +219,11 @@
-
-
- -
- - -
- -
-
-
+
+
+
+
+ +
+ + +
+ +
+
+
@@ -325,9 +334,9 @@
+ +
- -
@@ -405,6 +414,7 @@ users_loading: false, onLine: navigator.onLine, simple_entry: '', + entry_mode_simple: $cookies.isKey('shopping_entry_mode_simple') ? ($cookies.get('shopping_entry_mode_simple') === 'true') : true, }, directives: { tabindex: { @@ -894,8 +904,6 @@ this.makeToast(gettext('Error'), gettext('There was an error loading a resource!') + err.bodyText, 'danger') }) }, - - }, beforeDestroy() { window.removeEventListener('online', this.updateOnlineStatus);