123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <html>
- <head>
- <title>{{$.Else.Subject}}</title>
- </head>
- <body>
- <h2>Client</h2>
- <table border="1">
- <tbody>
- <tr>
- <td><b>Last name</b> </td>
- <td>
- {{if ne $.Client.LastName "" }}
- {{$.Client.LastName}}
- {{else}}
- -
- {{end}}
- </td>
- </tr>
- <tr>
- <td><b>First name</b> </td>
- <td>
- {{if ne $.Client.FirstName "" }}
- {{$.Client.FirstName}}
- {{else}}
- -
- {{end}}
- </td>
- </tr>
- <tr>
- <td><b>Middle name</b> </td>
- <td>
- {{if ne $.Client.MiddleName "" }}
- {{$.Client.MiddleName}}
- {{else}}
- -
- {{end}}
- </td>
- </tr>
- <tr>
- <td><b>Phone</b> </td>
- <td>
- {{if ne $.Client.Phone "" }}
- {{$.Client.Phone}}
- {{else}}
- -
- {{end}}
- </td>
- </tr>
- <tr>
- <td><b>Email</b> </td>
- <td>
- {{if ne $.Client.Email "" }}
- {{$.Client.Email}}
- {{else}}
- -
- {{end}}
- </td>
- </tr>
- </tbody>
- </table>
- <div> </div>
- <h2>Delivery</h2>
- <div>
- {{if ne $.Client.DeliveryComment "" }}
- {{$.Client.DeliveryComment}}
- {{else}}
- -
- {{end}}
- </div>
- <div> </div>
- <h2>Order comment</h2>
- <div>
- {{if ne $.Client.OrderComment "" }}
- {{$.Client.OrderComment}}
- {{else}}
- -
- {{end}}
- </div>
- <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><a href="{{$.Else.CpOrderLink}}" target="_blank">{{$.Else.CpOrderLink}}</a></div>
- </body>
- </html>
|