From d702653adf44c4d93b1f589be3d5e3847ba53055 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 18 Mar 2020 15:52:49 -0600 Subject: [PATCH] Add NMR option to route notes --- www/assets/js/packages.js | 2 +- www/pages/myroute.html | 2 +- www/settings.js | 13 ++++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/www/assets/js/packages.js b/www/assets/js/packages.js index 747755a..dc2f012 100644 --- a/www/assets/js/packages.js +++ b/www/assets/js/packages.js @@ -578,7 +578,7 @@ function addPackageByAddress(number, unit, street, citystate, zip, type, callbac prelookup(); } else { app.dialog.confirm( - "A route note says this address is " + deliverable.reason + ". Add item anyways?", + "A route note says this address " + deliverable.reason + ". Add item anyways?", "Confirm", function () { prelookup(); diff --git a/www/pages/myroute.html b/www/pages/myroute.html index 91da470..236f114 100644 --- a/www/pages/myroute.html +++ b/www/pages/myroute.html @@ -56,7 +56,7 @@ {{#if notes}}

{{newlinestobr notes}}

{{/if}} -
+
    {{#each toggles}} {{#if this}} diff --git a/www/settings.js b/www/settings.js index de8ecbd..0b567d4 100644 --- a/www/settings.js +++ b/www/settings.js @@ -322,21 +322,28 @@ var SETTINGS = { name: "Vacant", id: "vacant", preventsDelivery: true, - reason: "vacant", + reason: "is vacant", icon: "far fa-circle" }, + { + name: "No Mail Receptacle", + id: "nmr", + preventsDelivery: true, + reason: "has no mailbox", + icon: "far fa-times-circle" + }, { name: "Outside delivery radius", id: "undeliverable", preventsDelivery: true, - reason: "too far from the route", + reason: "is too far from the route", icon: "fas fa-route" }, { name: "On hold", id: "hold", preventsDelivery: true, - reason: "on hold", + reason: "is on hold", icon: "fas fa-pause-circle" } ],