Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. {% trans_default_domain 'lcshop' %}
  2. {% macro tableHead() %}
  3. <table id="order-products-list" class="table table-striped">
  4. <thead>
  5. <tr>
  6. <th colspan="2">
  7. <span>Produits / Producteurs</span>
  8. </th>
  9. <th>
  10. <span>Prix HT à l'unité</span>
  11. </th>
  12. <th>
  13. <span>Prix TTC à l'unité </span>
  14. </th>
  15. <th>
  16. <span>Disponibilité</span>
  17. </th>
  18. <th>
  19. <span>Quantité</span>
  20. </th>
  21. <th>
  22. <span>Total</span>
  23. </th>
  24. </tr>
  25. </thead>
  26. {% endmacro %}
  27. {% macro products(form_order_products) %}
  28. <tbody>
  29. <template v-for="(orderProduct, key) in orderProducts">
  30. <order-product ref="orderProductBLOP" :order-product="orderProduct" :template="templateTest"
  31. :key-item="key"></order-product>
  32. </template>
  33. </tbody>
  34. {% endmacro %}
  35. {% macro productsTemplate(form_order_products) %}
  36. <tr class="order-product-item">
  37. <td colspan="2">{% verbatim %}{{orderProduct.title}}{% endverbatim %}</td>
  38. <td>
  39. {% verbatim %}{{orderProduct.price}}{% endverbatim %}€
  40. </td>
  41. <td>
  42. {% verbatim %}{{orderProduct.priceWithTax}}{% endverbatim %}€
  43. </td>
  44. <td></td>
  45. <td>
  46. {{ form_widget(form_order_products.orderProducts.vars.prototype.quantityOrder, {'attr' : {'ref': 'fieldQuantity', 'v-model' : 'orderProduct.quantityOrder', '@change' : 'updateOrderProducts'}}) }}
  47. {{ form_widget(form_order_products.orderProducts.vars.prototype.product, {'attr' : {'ref' : 'fieldProduct', 'v-model' : 'orderProduct.product'}}) }}
  48. {#{{ form_widget(form_order_products.orderProducts.vars.prototype.id, {'attr' : {'ref' : 'fieldId', 'v-model' : 'orderProduct.id'}}) }}#}
  49. <button type="button" class="btn-remove-product btn btn-default" @click="deleteOrderProduct()">
  50. <i class="fa fa-trash"></i>
  51. </button>
  52. </td>
  53. <td>
  54. {% verbatim %}{{orderProduct.totalWithTaxAndReduction}}{% endverbatim %}€
  55. </td>
  56. </tr>
  57. {% endmacro %}
  58. {% macro tableTotal() %}
  59. </table>
  60. <div class="clearfix"></div>
  61. <div class="row">
  62. <div class="col-7">
  63. <button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-add-product-to-order">
  64. <i class="fa fa-plus"></i> {{ "action.order.addOrderProduct"|trans }}
  65. </button>
  66. <button type="button" class="btn btn-warning" data-toggle="modal" data-target="#modal-reduction-cart">
  67. <i class="fa fa-shopping-basket"></i> {{ "action.order.addReductionCart"|trans }}
  68. </button>
  69. <button type="button" class="btn btn-warning" data-toggle="modal" data-target="#modal-reduction-credit">
  70. <i class="fa fa-backspace"></i> {{ "action.order.addReductionCredit"|trans }}
  71. </button>
  72. </div>
  73. <div class="col-5">
  74. <div class="table-responsive">
  75. <table class="table">
  76. <tbody>
  77. <tr>
  78. <th>Total without Tax</th>
  79. <td>${order.total}€</td>
  80. </tr>
  81. <tr>
  82. <th>Total</th>
  83. <td>${order.totalWithTax}€</td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. {% endmacro %}
  91. {% macro mainInfo() %}
  92. {#${order.id}#}
  93. <div class="col-3">
  94. <div class="info-box">
  95. <span class="info-box-icon bg-info">
  96. <i class="far fa-user"></i></span>
  97. <div class="info-box-content">
  98. <span class="info-box-text">{{ "field.default.user"|trans({}, 'lcshop') }}</span>
  99. <strong v-if="order.user" v-html="order.user"></strong>
  100. <strong v-else v-html="order.visitor"></strong>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="col-3">
  105. <div class="info-box">
  106. <span class="info-box-icon bg-success">
  107. <i class="far fa-calendar"></i></span>
  108. <div class="info-box-content">
  109. <span class="info-box-text">{{ "field.default.date"|trans({}, 'lcshop') }}</span>
  110. <span class="info-box-number" v-if="order.createdAt"> ${order.createdAt}</span>
  111. <span class="info-box-number" v-else> ${order.createdAt}</span>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="col-3">
  116. <div class="info-box">
  117. <span class="info-box-icon bg-warning">
  118. <i class="fa fa-euro-sign"></i></span>
  119. <div class="info-box-content">
  120. <span class="info-box-text">{{ "field.OrderShop.total"|trans({}, 'lcshop') }}</span>
  121. <strong> ${order.totalWithTaxAndReduction} €</strong>
  122. <strong> ${order.countProducts}</strong>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="col-3">
  127. <div class="info-box">
  128. <span class="info-box-icon bg-danger">
  129. <i class="fa fa-info"></i></span>
  130. <div class="info-box-content">
  131. <span class="info-box-text">{{ "field.OrderShop.status"|trans({}, 'lcshop') }}</span>
  132. <strong> ${order.orderStatus}</strong>
  133. <button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-status">
  134. {{ "action.edit"|trans }}
  135. </button>
  136. </div>
  137. </div>
  138. </div>
  139. {#
  140. <div class="col-3">
  141. <strong>{{ "field.OrderShop.status"|trans }} </strong><br/>
  142. <span>${order.orderStatus}</span>
  143. <button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-status">
  144. {{ "action.edit"|trans }}
  145. </button>
  146. </div>#}
  147. {% endmacro mainInfo %}
  148. {% macro addressInfo() %}
  149. <div class="col-4">
  150. <div class="info-box">
  151. <span class="info-box-icon bg-info">
  152. <i class="fa fa-address-card"></i></span>
  153. <div class="info-box-content">
  154. <strong>{{ "field.default.invoiceAddress"|trans({}, 'lcshop') }}</strong>
  155. <address v-html="order.invoiceAddress">
  156. </address>
  157. <button type="button" class="btn btn-default" data-toggle="modal"
  158. data-target="#modal-order-invoice-address">
  159. {{ "action.edit"|trans }}
  160. </button>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="col-4">
  165. <div class="info-box">
  166. <span class="info-box-icon bg-success">
  167. <i class="fa fa-map-marked-alt"></i></span>
  168. <div class="info-box-content">
  169. <div v-if="order.deliveryType == 'home'">
  170. <strong>{{ "field.default.deliveryAddress"|trans({}, 'lcshop') }}</strong>
  171. <address v-html="order.deliveryAddress">
  172. </address>
  173. </div>
  174. <div v-else-if="order.deliveryType == 'point-sale'">
  175. <h6><strong>{{ "field.default.deliveryPointSale"|trans({}, 'lcshop') }} : </strong></h6>
  176. <address v-html="order.deliveryPointSale">
  177. </address>
  178. </div>
  179. <div v-else>
  180. Aucun lieu de livraison défini.
  181. </div>
  182. <button type="button" class="btn btn-default" data-toggle="modal"
  183. data-target="#modal-order-delivery-address">
  184. {{ "action.edit"|trans }}
  185. </button>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="col-4">
  190. <div class="info-box">
  191. <span class="info-box-icon bg-danger">
  192. <i class="fa fa-clock"></i></span>
  193. <div class="info-box-content">
  194. <h6><strong>{{ "field.default.deliveryAvailabilty"|trans({}, 'lcshop') }} : </strong></h6>
  195. <div v-if="order.deliveryType == 'home'">
  196. <div v-html="order.deliveryAvailabilityZone">
  197. </div>
  198. </div>
  199. <div v-else-if="order.deliveryType == 'point-sale'">
  200. <div v-html="order.deliveryAvailabilityPointSale">
  201. </div>
  202. </div>
  203. <button type="button" class="btn btn-default" data-toggle="modal"
  204. data-target="#modal-order-delivery-availability">
  205. {{ "action.edit"|trans }}
  206. </button>
  207. </div>
  208. </div>
  209. </div>
  210. {% endmacro addressInfo %}