From 952417f231c0b6100285b72acd2c0cfc13382725 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 22 Jan 2021 15:17:35 -0700 Subject: [PATCH] Add appointment scheduler --- www/pages/appointment.html | 24 ++++++++++++++++++++++++ www/routes.js | 15 ++++++++++++++- www/settings.js | 1 + 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 www/pages/appointment.html diff --git a/www/pages/appointment.html b/www/pages/appointment.html new file mode 100644 index 0000000..641b16e --- /dev/null +++ b/www/pages/appointment.html @@ -0,0 +1,24 @@ + + +
+ + + + +
+ +
+ +
\ No newline at end of file diff --git a/www/routes.js b/www/routes.js index c536bba..6075bf1 100644 --- a/www/routes.js +++ b/www/routes.js @@ -16,7 +16,7 @@ var routes = [ pages: [ { title: "Schedule Pickup", - href: "/schedule", + href: "/appointment", icon: "fad fa-calendar-alt" }, { @@ -34,6 +34,19 @@ var routes = [ }); } }, + { + path: '/appointment', + name: 'appointment', + async: function (routeTo, routeFrom, resolve, reject) { + resolve({ + templateUrl: './pages/appointment.html' + }, { + context: { + url: SETTINGS.appointmenturl + } + }); + } + }, { path: '/track', url: './pages/track.html', diff --git a/www/settings.js b/www/settings.js index e8a8dfb..b5eb127 100644 --- a/www/settings.js +++ b/www/settings.js @@ -8,6 +8,7 @@ var SETTINGS = { apis: { track: "https://helena.express/tracker/api.php" }, + appointmenturl: "https://appointments.netsyms.com/index.php?service=19&hlnexp=1&embed=1&only=1", branding: { apptitle: "Helena Express", company: "Helena Express",