-
{{#each notes}}
-
@@ -41,11 +56,11 @@
{{#if notes}}
{{newlinestobr notes}}
{{/if}} -+-
{{#each toggles}}
{{#if this}}
-
- {{notetogglename @key}} +
- {{notetogglename @key}} {{/if}} {{/each}}
Number- +Street- +- +
++++++ZIP++ ++++++Route++ ++- Options
{{#each toggles}} diff --git a/www/routes.js b/www/routes.js index 6b1caea..0e042d4 100644 --- a/www/routes.js +++ b/www/routes.js @@ -107,7 +107,17 @@ var routes = [ }, on: { pageAfterIn: function () { - // TODO: searchbar + notessearchbar = app.searchbar.create({ + el: '.notes-list-searchbar', + searchContainer: '#noteslist', + searchIn: '.item-title', + backdrop: false, + on: { + search(sb, query, previousQuery) { + console.log(query, previousQuery); + } + } + }); } }, routes: [ @@ -131,6 +141,8 @@ var routes = [ id: uuid, number: "", street: "", + zipcode: inStorage("zipcode") ? getStorage("zipcode") : "", + route: inStorage("lastrouteid") ? getStorage("lastrouteid") : "", notes: "", toggles: {} } diff --git a/www/settings.js b/www/settings.js index 6c6a602..de8ecbd 100644 --- a/www/settings.js +++ b/www/settings.js @@ -322,19 +322,22 @@ var SETTINGS = { name: "Vacant", id: "vacant", preventsDelivery: true, - reason: "vacant" + reason: "vacant", + icon: "far fa-circle" }, { name: "Outside delivery radius", id: "undeliverable", preventsDelivery: true, - reason: "too far from the route" + reason: "too far from the route", + icon: "fas fa-route" }, { name: "On hold", id: "hold", preventsDelivery: true, - reason: "on hold" + reason: "on hold", + icon: "fas fa-pause-circle" } ], synckeyblacklist: [