You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
6.8KB

  1. {% extends '@LcShop/backend/default/show.html.twig' %}
  2. {% trans_default_domain 'lcshop' %}
  3. {% import '@LcShop/backend/default/block/macros.html.twig' as macros %}
  4. {% import '@LcShop/backend/order/macros.html.twig' as order_macros %}
  5. {% block main %}
  6. {# {% form_theme form_order_reduction_cart '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
  7. {% form_theme form_add_product_to_order '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
  8. {% form_theme form_order_reduction_credit '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}#}
  9. <div class="lc-vue-js-container" id="lc-order-edit">
  10. <div class="row">
  11. {{ order_macros.mainInfo() }}
  12. <template v-if="order.user">
  13. {{ order_macros.addressInfo() }}
  14. </template>
  15. {% macro addressInfo() %}
  16. <div class="col-3">
  17. <div class="info-box">
  18. <span class="info-box-icon bg-info">
  19. <i class="fa fa-address-card"></i></span>
  20. <div class="info-box-content">
  21. <strong>{{ "field.default.invoiceAddress"|trans({}, 'lcshop') }}</strong>
  22. <address v-html="order.invoiceAddress">
  23. </address>
  24. {{ _self.order_modal_button('#modal-order-invoice-address') }}
  25. </div>
  26. </div>
  27. <div class="info-box">
  28. <span class="info-box-icon bg-success">
  29. <i class="fa fa-map-marked-alt"></i></span>
  30. <div class="info-box-content">
  31. <div v-if="order.deliveryType == 'home'">
  32. <strong>{{ "field.default.deliveryAddress"|trans({}, 'lcshop') }}</strong>
  33. <address v-html="order.deliveryAddress">
  34. </address>
  35. </div>
  36. <div v-else-if="order.deliveryType == 'point-sale'">
  37. <h6><strong>{{ "field.default.deliveryPointSale"|trans({}, 'lcshop') }} : </strong></h6>
  38. <address v-html="order.deliveryPointSale">
  39. </address>
  40. </div>
  41. <div v-else>
  42. Aucun lieu de livraison défini.
  43. </div>
  44. {{ _self.order_modal_button('#modal-order-delivery-address') }}
  45. </div>
  46. </div>
  47. <div class="info-box">
  48. <span class="info-box-icon bg-danger">
  49. <i class="fa fa-clock"></i></span>
  50. <div class="info-box-content">
  51. <h6><strong>{{ "field.default.deliveryAvailabilty"|trans({}, 'lcshop') }} : </strong></h6>
  52. <div v-if="order.deliveryType == 'home'">
  53. <div v-html="order.deliveryAvailabilityZone">
  54. </div>
  55. </div>
  56. <div v-else-if="order.deliveryType == 'point-sale'">
  57. <div v-html="order.deliveryAvailabilityPointSale">
  58. </div>
  59. </div>
  60. {{ _self.order_modal_button('#modal-order-delivery-availability') }}
  61. </div>
  62. </div>
  63. </div>
  64. {% endmacro addressInfo %}
  65. {{ macros.startCard(9, 'OrderShop.resume') }}
  66. {% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}
  67. {{ macros.cardOverlay('isLoading') }}
  68. {{ macros.endCard() }}
  69. {% if form_order_invoice_address is defined %}
  70. {% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
  71. {% endif %}
  72. {% if form_order_delivery_address is defined %}
  73. {% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
  74. {% endif %}
  75. {% if form_order_delivery_availability is defined %}
  76. {% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
  77. {% endif %}
  78. {% if form_order_status is defined %}
  79. {% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
  80. {% endif %}
  81. {% if form_add_order_reduction_credit is defined %}
  82. {% include '@LcShop/backend/order/form/modal_addreductioncredit.html.twig' %}
  83. {% endif %}
  84. {% if form_add_order_reduction_cart is defined %}
  85. {% include '@LcShop/backend/order/form/modal_addreductioncart.html.twig' %}
  86. {% endif %}
  87. {% if form_delete_order_reduction_cart is defined %}
  88. {% include '@LcShop/backend/order/form/modal_deletereductioncart.html.twig' %}
  89. {% endif %}
  90. {% if form_delete_order_reduction_credit is defined %}
  91. {% include '@LcShop/backend/order/form/modal_deletereductioncredit.html.twig' %}
  92. {% endif %}
  93. {% if form_add_product_to_order is defined %}
  94. {% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
  95. {% endif %}
  96. {% if form_order_payment is defined %}
  97. {% include '@LcShop/backend/order/form/modal_orderpayment.html.twig' %}
  98. {% endif %}
  99. {% if form_delete_order_payment is defined %}
  100. {% include '@LcShop/backend/order/form/modal_deleteorderpayment.html.twig' %}
  101. {% endif %}
  102. {% if form_add_redelivery_order_product is defined %}
  103. {% include '@LcShop/backend/order/form/modal_addredeliveryorderproduct.html.twig' %}
  104. {% endif %}
  105. {% if form_order_send_payment_link is defined %}
  106. {% include '@LcShop/backend/order/form/modal_sendpaymentlink.html.twig' %}
  107. {% endif %}
  108. {# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
  109. {% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
  110. {{ macros.endCard(3) }}
  111. {{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
  112. {{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
  113. {{ form_end(form_order_reduction_credit) }}
  114. {{ macros.endCard(3) }}#}
  115. </div>
  116. </div>
  117. {% endblock %}
  118. {% block script_javascript %}
  119. {{ parent() }}
  120. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  121. <script src="{{ asset('bundles/lcshop/js/backend/script/order/vuejs-order.js') }}"></script>
  122. {% endblock %}