diff --git a/cookbook/templates/shopping_list.html b/cookbook/templates/shopping_list.html index 5c23d87d..d8f84d67 100644 --- a/cookbook/templates/shopping_list.html +++ b/cookbook/templates/shopping_list.html @@ -109,23 +109,36 @@ + + + + + + + + + + + + + + + + + + + + + + + +
#123
[[element.amount]][[element.unit.name]][[element.food.name]] + +
-
-
- - - - - - - -
[[x.amount]][[x.unit.name]][[x.food.name]] - -
-
-
@@ -187,8 +200,10 @@
- - + +
@@ -282,7 +297,7 @@ data: { shopping_list_id: {% if shopping_list_id %}{{ shopping_list_id }}{% else %}null{% endif %}, loading: true, - edit_mode: false, + edit_mode: true, export_text_prefix: '', //TODO add userpreference recipe_query: '', recipes: [], @@ -296,6 +311,12 @@ foods_loading: false, units: [], units_loading: false, + list: [ + {id: 1, name: "Abby", sport: "basket"}, + {id: 2, name: "Brooke", sport: "foot"}, + {id: 3, name: "Courtenay", sport: "volley"}, + {id: 4, name: "David", sport: "rugby"} + ], }, directives: { tabindex: { @@ -491,6 +512,12 @@ }) }, + sortEntries: function () { + this.display_entries.forEach( (item, index) => { + + }) + console.log("IMPLEMENT ME", this.display_entries) + }, entryChecked: function (entry) { console.log("checked entry: ", entry) this.shopping_list.entries.forEach((item) => {