Add UI for selecting appointment type
This commit is contained in:
parent
97eba7004d
commit
ec4e9417cd
@ -181,3 +181,7 @@ Framework7 and FontAwesome both have a .fab class
|
|||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card.pointercursor {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
@ -13,7 +13,3 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.page[data-name="home"] .card {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
@ -13,13 +13,37 @@
|
|||||||
<span class="if-not-md">Back</span>
|
<span class="if-not-md">Back</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="title">Schedule Pickup</div>
|
<div class="title">Book Appointment</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{#if url}}
|
||||||
<div class="page-content" style="overflow-y: hidden;">
|
<div class="page-content" style="overflow-y: hidden;">
|
||||||
<iframe src="{{url}}" style="width: 100%; border: none; height: 100%;"></iframe>
|
<iframe src="{{url}}" style="width: 100%; border: none; height: 100%;"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="page-content noselect">
|
||||||
|
<div class="row justify-content-center margin-top">
|
||||||
|
<div class="col-100 medium-90 xlarge-75 margin-horizontal">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
{{#each services}}
|
||||||
|
<div class="col-100 small-50 large-33 no-margin-vertical">
|
||||||
|
<div class="card hapticbtn pointercursor" onclick="router.navigate('/appointment/{{serviceid}}');">
|
||||||
|
<div class="card-content text-align-center padding">
|
||||||
|
<h1 class="no-margin"><i class="{{icon}}"></i></h1>
|
||||||
|
<br />
|
||||||
|
<span style="font-weight: 700;">{{title}}</span>
|
||||||
|
<br />
|
||||||
|
<span>{{text}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
@ -22,7 +22,7 @@
|
|||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
{{#each pages}}
|
{{#each pages}}
|
||||||
<div class="col-100 small-50 large-33 no-margin-vertical">
|
<div class="col-100 small-50 large-33 no-margin-vertical">
|
||||||
<div class="card hapticbtn" onclick="router.navigate('{{href}}');">
|
<div class="card hapticbtn pointercursor" onclick="router.navigate('{{href}}');">
|
||||||
<div class="card-content text-align-center padding">
|
<div class="card-content text-align-center padding">
|
||||||
<h1 class="no-margin"><i class="{{icon}}"></i></h1>
|
<h1 class="no-margin"><i class="{{icon}}"></i></h1>
|
||||||
<br />
|
<br />
|
||||||
|
@ -15,10 +15,10 @@ var routes = [
|
|||||||
context: {
|
context: {
|
||||||
pages: [
|
pages: [
|
||||||
{
|
{
|
||||||
title: "Schedule Pickup",
|
title: "Book Appointment",
|
||||||
href: "/appointment",
|
href: "/appointment",
|
||||||
icon: "fad fa-calendar-alt",
|
icon: "fad fa-calendar-alt",
|
||||||
text: "Request a curbside courier to mail and ship your items."
|
text: "Get mailing, shipping, and notary services on your schedule anywhere in the Helena area."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Track Package",
|
title: "Track Package",
|
||||||
@ -58,6 +58,31 @@ var routes = [
|
|||||||
{
|
{
|
||||||
path: '/appointment',
|
path: '/appointment',
|
||||||
name: 'appointment',
|
name: 'appointment',
|
||||||
|
async: function (routeTo, routeFrom, resolve, reject) {
|
||||||
|
resolve({
|
||||||
|
templateUrl: './pages/appointment.html'
|
||||||
|
}, {
|
||||||
|
context: {
|
||||||
|
services: [
|
||||||
|
{
|
||||||
|
title: "Package Pickup",
|
||||||
|
text: "A courier will come to you and ship your mail, packages, etc.",
|
||||||
|
icon: "fad fa-hand-holding-box",
|
||||||
|
serviceid: 19
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Mobile Notary",
|
||||||
|
text: "A notary public will come to you and notarize your documents.",
|
||||||
|
icon: "fad fa-file-signature",
|
||||||
|
serviceid: 21
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
routes: [
|
||||||
|
{
|
||||||
|
path: "/:serviceId",
|
||||||
async: function (routeTo, routeFrom, resolve, reject) {
|
async: function (routeTo, routeFrom, resolve, reject) {
|
||||||
var url = SETTINGS.appointmenturl;
|
var url = SETTINGS.appointmenturl;
|
||||||
if ($("#app").hasClass("theme-dark")) {
|
if ($("#app").hasClass("theme-dark")) {
|
||||||
@ -67,10 +92,12 @@ var routes = [
|
|||||||
templateUrl: './pages/appointment.html'
|
templateUrl: './pages/appointment.html'
|
||||||
}, {
|
}, {
|
||||||
context: {
|
context: {
|
||||||
url: url
|
url: url + "&service=" + routeTo.params.serviceId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/track',
|
path: '/track',
|
||||||
|
@ -12,8 +12,8 @@ var SETTINGS = {
|
|||||||
loyalty: "https://helena.express/loyalty.php"
|
loyalty: "https://helena.express/loyalty.php"
|
||||||
},
|
},
|
||||||
stripe_pubkey: "pk_live_RgpadCo1LIIkfyUsY47VhUq6",
|
stripe_pubkey: "pk_live_RgpadCo1LIIkfyUsY47VhUq6",
|
||||||
appointmenturl: "https://appointments.netsyms.com/index.php?service=19&hlnexp=1&embed=1&only=1",
|
appointmenturl: "https://appointments.netsyms.com/index.php?hlnexp=1&embed=1&only=1&theme=darkly",
|
||||||
appointmenturl_darkmode: "https://appointments.netsyms.com/index.php?service=19&hlnexp=1&embed=1&only=1&theme=darkly",
|
appointmenturl_darkmode: "https://appointments.netsyms.com/index.php?hlnexp=1&embed=1&only=1&theme=darkly",
|
||||||
branding: {
|
branding: {
|
||||||
apptitle: "Helena Express",
|
apptitle: "Helena Express",
|
||||||
company: "Helena Express",
|
company: "Helena Express",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user