camper/web/templates/mail/payment/details.gotxt

55 lines
2.3 KiB
Plaintext
Raw Normal View History

{{ printf (gettext "Hi %s,") .CompanyName }}
{{( gettext "We have successfully received the payment for the booking with the following details:" )}}
{{ with .Details -}}
## {{( pgettext "Payment" "title" )}}
* {{( pgettext "Reference" "header" )}}: {{ .Reference }} ({{ $.BaseURL }})
* {{( pgettext "Status" "header" )}}: {{ .StatusLabel }}
* {{( pgettext "Created at" "payment header" )}}: {{ .CreatedAt.Format "02/01/2006 15:04:05" }}
* {{( pgettext "Last updated at" "payment header" )}}: {{ .UpdatedAt.Format "02/01/2006 15:04:05" }}
## {{( pgettext "Booking" "title" )}}
* {{( pgettext "Accommodation" "title" )}}: {{ .CampsiteType }}
* {{( pgettext "Area preferences" "header" )}}: {{ .ZonePreferences }}
* {{( pgettext "ACSI card?" "input" )}}: {{if .ACSICard}}{{( gettext "Yes" )}}{{ else }}{{( gettext "No" )}}{{ end }}
* {{( pgettext "Arrival date" "input" )}}: {{ .ArrivalDate.Format "02/01/2006" }}
* {{( pgettext "Departure date" "input" )}}: {{ .DepartureDate.Format "02/01/2006" }}
* {{( pgettext "Nights" "cart" )}}: {{ .NumNights }}
* {{( pgettext "Adults aged 17 or older" "input" )}}: {{ .NumAdults }}
* {{( pgettext "Teenagers from 11 to 16 years old" "input" )}}: {{ .NumTeenagers }}
* {{( pgettext "Children from 2 to 10 years old" "input" )}}: {{ .NumChildren }}
* {{( pgettext "Dogs" "input" )}}: {{ .NumDogs }}
* {{( pgettext "Tourist tax" "cart" )}}: {{ .SubtotalTouristTax | formatPrice }}
* {{( pgettext "Total" "cart" )}}: {{ .Total | formatPrice }}
* {{( pgettext "Down payment" "cart" )}}: {{ .DownPaymentPercent }} %, {{ .DownPayment | formatPrice }}
{{ with .Options }}
## {{( pgettext "Campsite Type Options" "title" )}}
{{ range . -}}
* {{ .Label }}: {{ .Units }}
{{- end }}
{{- end -}}
{{ with .Customer }}
## {{( pgettext "Customer Details" "title" )}}
* {{( pgettext "Full name" "input" )}}: {{ .FullName }}
* {{( pgettext "Address" "input" )}}: {{ .Address }}
* {{( pgettext "Postcode" "input" )}}: {{ .PostalCode }}
* {{( pgettext "City" "input" )}}: {{ .City }}
* {{( pgettext "Country" "input" )}}: {{ .Country }}
* {{( pgettext "Email" "input" )}}: {{ .Email }}
* {{( pgettext "Phone" "input" )}}: {{ .Phone }}
* {{( pgettext "Language" "input" )}}: {{ .Language }}
{{- end }}
{{- end }}
{{( gettext "Best regards," )}}