package template var VarEmailNewOrderUserHtmlFile = []byte(`<html> <head> <title>{{$.Else.Subject}}</title> </head> <body> <h2>Your contacts</h2> <table border="1"> <tbody> {{if ne $.Client.LastName "" }} <tr> <td><b>Last name</b> </td> <td>{{$.Client.LastName}}</td> </tr> {{end}} {{if ne $.Client.FirstName "" }} <tr> <td><b>First name</b> </td> <td>{{$.Client.FirstName}}</td> </tr> {{end}} {{if ne $.Client.MiddleName "" }} <tr> <td><b>Middle name</b> </td> <td>{{$.Client.MiddleName}}</td> </tr> {{end}} {{if ne $.Client.Phone "" }} <tr> <td><b>Phone</b> </td> <td>{{$.Client.Phone}}</td> </tr> {{end}} {{if ne $.Client.Email "" }} <tr> <td><b>Email</b> </td> <td>{{$.Client.Email}}</td> </tr> {{end}} </tbody> </table> {{if ne $.Client.DeliveryComment "" }} <div> </div> <h2>Delivery</h2> <div>{{$.Client.DeliveryComment}}</div> {{end}} {{if ne $.Client.OrderComment "" }} <div> </div> <h2>Order comment</h2> <div>{{$.Client.OrderComment}}</div> {{end}} <div> </div> <h2>Order products</h2> <div> <table border="1" width="100%"> <tbody> {{range $.Basket.Products}} <tr> <td> {{.RenderName}} </td> <td> {{.RenderPrice}} {{$.Basket.Currency.Code}} x {{.RenderQuantity}} </td> <td> {{.RenderSum}} {{$.Basket.Currency.Code}} </td> </tr> {{end}} </tbody> </table> </div> <h2>Total: {{$.Basket.RenderTotalSum}} {{$.Basket.Currency.Code}}</h2> <div> </div> <div><b>Thank you for choosing our shop!</b></div> </body> </html>`)