#IF(#OBJECT_EXISTS)

{InputError}

{ObjectExists}
#ELSIF(#MAIL_SENT)

{AppointmentSendOk}


#ELSIF(#FormError)

{InputError}

#IF(#FormErrors.Reason.STRING_EMPTY) {PleaseFillRequiredFields}
#ENDIF {PleaseCorrectErrors}
#ELSIF(#SendMail)

{QuestionSendConfirmation}

{InfoSendConfirmation} {SendConfirmation}

#ENDIF #IF(#DELETE)

{AcceptAction}

#ELSE #ENDIF #IF(#DEFINED(#User) AND NOT #User.IsAnonymous) #ENDIF #IF(#DEFINED(#CustomerOrder)) #ENDIF
{AppointmentID} #Alias
{User} #User.Alias
{Order} #CustomerOrder.Alias #IF(#CustomerOrder.PaidOn){Paid} #CustomerOrder.PaidOn[datetime]#ENDIF

{ContactData}

#LOCAL("AddressPrefix", "Address") #LOCAL("SiteLocale", #SITELOCALE(#Session.User.LocaleID)) #LocaleInclude("Edit-Address", #SiteLocale.Country.Code2) #ENDLOCAL #ENDLOCAL
#WITH_ERROR(#FormError) #IF(#Parent.Parent.CanAddToBasket)#LOCAL("AppointmentPrice", #FUNCTION("APPOINTMENTMENT_PRICE", #Object, #Parent.Parent.Object, #Shop.CurrencyID, #Shop.InputTaxModel))#IF(#DEFINED(#AppointmentPrice)) #LOCAL("CurrencyID", "")#IF(#DEFINED(#CustomerOrder))#SET("CurrencyID",#CustomerOrder.LineItemContainer.CurrencyID)#ELSE#SET("CurrencyID", #Shop.CurrencyID) #ENDIF #ENDLOCAL #IF(#DEFINED(#Prepayment)) #LOCAL("CurrencyID", "")#IF(#DEFINED(#CustomerOrder))#SET("CurrencyID",#CustomerOrder.LineItemContainer.CurrencyID)#ELSE#SET("CurrencyID", #Shop.CurrencyID) #ENDIF #ENDLOCAL #ENDIF #ENDIF#ENDLOCAL#ENDIF #IF(#COUNT(#Services))#LOOP(#Services) #ENDLOOP#ELSIF(#DEFINED(#ServicesString))
#ServicesString
#ENDIF #ENDWITH_ERROR
{Price} #AppointmentPrice[money] / #IF(#Parent.Parent.DurationAmount != 1)#Parent.Parent.DurationAmount #ENDIF#Parent.Parent.DurationUnit.NameOrAlias
{Prepayment} #Prepayment[money]
{StartDate}
{EndDate} {BubblehelpEnddateAndDuration}
{Quantity} #Parent.Parent.OrderUnit.Name
#Attribute.NameOrAlias #LOCAL("ServiceID",#ID) #ENDLOCAL
{Options}
{AppointmentCreatedViaWebsite}
#IF(#AcceptedOn)(#AcceptedOn[datetime])#ELSE#ENDIF #IF(#Shop.Child.MailTypes.Child.AppointmentAccepted.IsActive AND NOT #CancelledOn)
#ENDIF
#IF(#CancelledOn)(#CancelledOn[datetime])#ELSE#ENDIF

{UserComment}
{Comment}
#IF(#DELETE) #ELSE #IF(#INPUT.PopUp) #ELSE #IF(#Session.User.DeleteConfirmation) #ELSE #ENDIF #ENDIF #ENDIF