From 2b4f2dd4863992ed7a1b14272ed87ca2b2d4acd3 Mon Sep 17 00:00:00 2001
From: Markus Birth
Date: Wed, 12 Apr 2017 15:45:27 +0200
Subject: [PATCH] Support restaurant reservations.
---
definitions/restaurant.json | 6 +++
templates/mail_restaurant.mustache | 62 ++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
create mode 100644 templates/mail_restaurant.mustache
diff --git a/definitions/restaurant.json b/definitions/restaurant.json
index 82e32b9..3019c8f 100644
--- a/definitions/restaurant.json
+++ b/definitions/restaurant.json
@@ -157,6 +157,12 @@
"group": 2,
"short": true
},
+ "startTime": {
+ "title": "Start time",
+ "type": "datetime",
+ "required": true,
+ "group": 1
+ },
"underName_name": {
"title": "Name on Reservation",
"type": "text",
diff --git a/templates/mail_restaurant.mustache b/templates/mail_restaurant.mustache
new file mode 100644
index 0000000..e9b3150
--- /dev/null
+++ b/templates/mail_restaurant.mustache
@@ -0,0 +1,62 @@
+From: Fake Reservation System <{{user.email}}>
+Subject: [FRS] {{reservationFor_name.value}} - {{startTime.value_human}} - {{form_type_uc}} Reservation
+Date: {{email_date}}
+X-Mailer: FRS/1.0
+MIME-Version: 1.0
+Content-Type: text/html; charset=utf-8
+
+
+
+
+
YOUR RESERVATION DETAILS
+
+
+
+ Reservation number:
{{reservationNumber.value}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Restaurant:
{{reservationFor_name.value}}
+ (
{{reservationFor_url.value}})
+ Phone:
{{reservationFor_telephone.value}}
+
+
+
+ {{reservationFor_address_streetAddress.value}}
+ {{reservationFor_address_addressLocality.value}}
+ {{reservationFor_address_addressRegion.value}}
+ {{reservationFor_address_postalCode.value}}
+ {{reservationFor_address_addressCountry.value}}
+
+
+
+ Party Size:
{{partySize.value}}
+
+ Starts at: {{startTime.value_human}}
+
+
+
+
+
+
+ Price:
{{price.value}} {{priceCurrency.value}}
+
+ {{# url.value }}
+
View your reservation online.
+ {{/ url.value }}
+
+
+
+