email-new-order-admin.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <html>
  2. <head>
  3. <title>{{$.Else.Subject}}</title>
  4. </head>
  5. <body>
  6. <h2>Client</h2>
  7. <table border="1">
  8. <tbody>
  9. <tr>
  10. <td><b>Last&nbsp;name</b>&nbsp;&nbsp;&nbsp;</td>
  11. <td>
  12. {{if ne $.Client.LastName "" }}
  13. {{$.Client.LastName}}
  14. {{else}}
  15. -
  16. {{end}}
  17. </td>
  18. </tr>
  19. <tr>
  20. <td><b>First&nbsp;name</b>&nbsp;&nbsp;&nbsp;</td>
  21. <td>
  22. {{if ne $.Client.FirstName "" }}
  23. {{$.Client.FirstName}}
  24. {{else}}
  25. -
  26. {{end}}
  27. </td>
  28. </tr>
  29. <tr>
  30. <td><b>Middle&nbsp;name</b>&nbsp;&nbsp;&nbsp;</td>
  31. <td>
  32. {{if ne $.Client.MiddleName "" }}
  33. {{$.Client.MiddleName}}
  34. {{else}}
  35. -
  36. {{end}}
  37. </td>
  38. </tr>
  39. <tr>
  40. <td><b>Phone</b>&nbsp;&nbsp;&nbsp;</td>
  41. <td>
  42. {{if ne $.Client.Phone "" }}
  43. {{$.Client.Phone}}
  44. {{else}}
  45. -
  46. {{end}}
  47. </td>
  48. </tr>
  49. <tr>
  50. <td><b>Email</b>&nbsp;&nbsp;&nbsp;</td>
  51. <td>
  52. {{if ne $.Client.Email "" }}
  53. {{$.Client.Email}}
  54. {{else}}
  55. -
  56. {{end}}
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. <div>&nbsp;</div>
  62. <h2>Delivery</h2>
  63. <div>
  64. {{if ne $.Client.DeliveryComment "" }}
  65. {{$.Client.DeliveryComment}}
  66. {{else}}
  67. -
  68. {{end}}
  69. </div>
  70. <div>&nbsp;</div>
  71. <h2>Order comment</h2>
  72. <div>
  73. {{if ne $.Client.OrderComment "" }}
  74. {{$.Client.OrderComment}}
  75. {{else}}
  76. -
  77. {{end}}
  78. </div>
  79. <div>&nbsp;</div>
  80. <h2>Order products</h2>
  81. <div>
  82. <table border="1" width="100%">
  83. <tbody>
  84. {{range $.Basket.Products}}
  85. <tr>
  86. <td>
  87. {{.RenderName}}
  88. </td>
  89. <td>
  90. {{.RenderPrice}}&nbsp;{{$.Basket.Currency.Code}}&nbsp;x&nbsp;{{.RenderQuantity}}
  91. </td>
  92. <td>
  93. {{.RenderSum}} {{$.Basket.Currency.Code}}
  94. </td>
  95. </tr>
  96. {{end}}
  97. </tbody>
  98. </table>
  99. </div>
  100. <h2>Total: {{$.Basket.RenderTotalSum}} {{$.Basket.Currency.Code}}</h2>
  101. <div>&nbsp;</div>
  102. <div><a href="{{$.Else.CpOrderLink}}" target="_blank">{{$.Else.CpOrderLink}}</a></div>
  103. </body>
  104. </html>