#LOCAL("ForcePrintLink", 1) #INCLUDE("Content-PrintButton") #ENDLOCAL
#REM #ENDREM #WITH(#Shop)
#IF(#Logo) #ENDIF
#IF(#DEFINED(#Address)) #WITH(#Address) #FUNCTION("LocaleInclude", "ShopAddress", #Country.Code2) #ENDWITH #ENDIF
#REM #ENDREM #ENDWITH
#REM #ENDREM
#WITH(#Address)
{Address} #FUNCTION("LocaleInclude", "Address", #Country.Code2)
#INCLUDE("CustomerInfo")
#ENDWITH
#REM #ENDREM
{Appointment}
{AppointmentID}: #Alias
{BookedOn}: #CreationDate[date_tz]
{Status} {Date}
{CreationDateStatus} #CreationDate[datetime]
{AcceptedOn} #AcceptedOn[datetime]
{CancelledOn} #CancelledOn[datetime]
{ThanksForAppointment}
#IF(#DEFINED(#Description)) #ENDIF #IF(#DEFINED(#Text)) #ENDIF #IF(#DEFINED(#CustomerComment)) #ENDIF

#Calendar.Parent.NameOrAlias
{Description} #Calendar.Parent.Description[0]
{Text} #Calendar.Parent.Text[0]
{Quantity} #Quantity[float]
{StartDate} #StartDate[datetime]
{EndDate} #EndDate[datetime]
{UserComment} #CustomerComment
{TermsAndConditionMessage}
{BestRegards}
#IF(#DEFINED(#Shop.Address))#WITH(#Shop.Address)#Company#ENDWITH#ENDIF
#IF(#DEFINED(#AcceptedOn))

{AppointmentConfirmation}


#IF(#SEND_MAIL_FAILED)

{Notification}

{SEND_MAIL_FAILED}

#ELSIF(#DEFINED(#Address) AND #Address.EMail AND #Shop.Child.MailTypes.Child.AppointmentAccepted.IsActive)

{AppointmentConfirmationMailSent}

#ENDIF #ELSE

{AppointmentReservation}


#IF(#SEND_MAIL_FAILED)

{Notification}

{SEND_MAIL_FAILED}

#ELSIF(#DEFINED(#Address) AND #Address.EMail AND #Shop.Child.MailTypes.Child.AppointmentAccepted.IsActive)

{AppointmentReservationMailSent}

#ENDIF
#IF(#Shop.AcceptWithReservationText) #Shop.AcceptWithReservationText[0] #ELSE

{Notification}

{AcceptWithReservationText} #ENDIF
#ENDIF
{AppointmentData}
{AppointmentID}:#Alias

{StartDate}
#StartDate[datetime]
{EndDate}
#EndDate[datetime]

{CountItems}
#Quantity[float]
#IF(#COUNT(#Services)) #LOOP(#Services)
#Attribute.NameOrAlias
#LOCAL("ServiceID",#ID) #IF(#ID == #ServiceID) #ValueOrAlias #ENDIF #ENDLOCAL
#ENDLOOP #ELSIF(#DEFINED(#ServicesString))
{Options}
#ServicesString
#ENDIF #IF(#DEFINED(#CustomerComment))
{UserComment}
#CustomerComment
#ENDIF
{Address}
#WITH(#Child.Address) #FUNCTION("LocaleInclude","Address") #ENDWITH

{WhatsNext}
{DisplayHomepage}
{BackTo}: #Calendar.Parent.NameOrAlias
#IF(NOT #Session.User.IsAnonymous) {MyAccount}
{Logout} #ENDIF