_{MsgYouSuccessfullyCreatedYourBooking}.
+
+
+
+
+ _{MsgShowMyAppointments}
+
+
+
+
+ _{MsgBookNewAppointment}
-
- #{rdrs}
+
+
+
+
+ info
+
+
+ _{MsgShowDetails}
+
+ expand_more
+
+ $forall (Entity bid (Book _ _ _ date time _ _ tz _ _),offer,service) <- books
+ $with Entity _ (Offer _ oname _ price prefix suffix _) <- offer
+ $with Entity _ (Service sname _ _ _ _ _) <- service
+
+
+
+
+ #{sname}
+
+ #{oname}:
+ $maybe x <- prefix
+ #{x}
+ $with x <- show price
+ $maybe c <- currency
+ #{x}
+ $nothing
+ #{x}
+ $maybe x <- suffix
+ #{x}
+ $with dt <- ((<>) ((<>) (pack $ show date) " ") (pack $ show time))
+ $with dtz <- ((<>) dt ((<>) ((<>) " (" tz) ")"))
+
+ #{dtz}
+
+ arrow_forward_ios
+
+
+$forall (_,msg) <- msgs
+
+
+ #{msg}
+
+
+
+
+ close
diff --git a/templates/book/payment/completion.julius b/templates/book/payment/completion.julius
new file mode 100644
index 0000000..0b45fa7
--- /dev/null
+++ b/templates/book/payment/completion.julius
@@ -0,0 +1,38 @@
+
+window.mdc.autoInit();
+
+window.onscroll = function (e) {
+ if (document.body.scrollTop > 128 || document.documentElement.scrollTop > 128) {
+ document.querySelector('header.mdc-top-app-bar').classList.remove('mdc-top-app-bar--prominent');
+ document.querySelector('header.mdc-top-app-bar span.mdc-top-app-bar__title').style['white-space'] = 'nowrap';
+ } else {
+ document.querySelector('header.mdc-top-app-bar').classList.add('mdc-top-app-bar--prominent');
+ document.querySelector('header.mdc-top-app-bar span.mdc-top-app-bar__title').style['white-space'] = 'normal';
+ }
+};
+
+Array.from(
+ document.querySelectorAll('span.currency[data-value][data-currency]')
+).forEach(function (x) {
+ x.textContent = Intl.NumberFormat(navigator.language, {
+ style: 'currency',
+ currency: x.dataset.currency,
+ minimumFractionDigits: 0,
+ maximumFractionDigits: 2,
+ useGrouping: true
+ }).format(x.dataset.value);
+});
+
+Array.from(
+ document.querySelectorAll('span.currency[data-value]:not([data-currency])')
+).forEach(function (x) {
+ x.textContent = Intl.NumberFormat(navigator.language, {
+ minimumFractionDigits: 0,
+ maximumFractionDigits: 2,
+ useGrouping: true
+ }).format(x.dataset.value);
+});
+
+Array.from(
+ document.querySelectorAll('aside.mdc-snackbar')
+).forEach(function (x) { x.MDCSnackbar.open(); });
diff --git a/templates/book/payment/payment.hamlet b/templates/book/payment/payment.hamlet
index 8520b58..45fcd67 100644
--- a/templates/book/payment/payment.hamlet
+++ b/templates/book/payment/payment.hamlet
@@ -38,8 +38,7 @@
#{amount}
-