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.

114 lines
4.7KB

  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 global_actions %}
  6. {% if entity.user is not null %}
  7. <button id="btn-ticket-write-to-user"
  8. data-url="{{ path('easyadmin', {'entity': 'Ticket', 'action': 'new'}) }}"
  9. data-user="{{ entity.user.id }}"
  10. class="btn-sm btn-success"
  11. type="button"><i class="fa fa-pen-alt"></i> {{ "action.ticket.writeToUser"|trans }}
  12. </button>
  13. {% endif %}
  14. {% endblock %}
  15. {% block main %}
  16. <div class="lc-vue-js-container" id="lc-order-edit">
  17. <div class="row">
  18. <div class="col-3">
  19. {{ order_macros.box_user_info() }}
  20. </div>
  21. <div class="col-3">
  22. {{ order_macros.box_total_order() }}
  23. </div>
  24. <div class="col-3">
  25. {{ order_macros.box_validation_date() }}
  26. </div>
  27. <div class="col-3">
  28. {{ order_macros.box_status() }}
  29. </div>
  30. <template v-if="order.user">
  31. <div class="col-3">
  32. {{ order_macros.box_address_invoice() }}
  33. </div>
  34. <div class="col-3">
  35. {{ order_macros.box_address_delivery() }}
  36. </div>
  37. <div class="col-3">
  38. {{ order_macros.box_delivery_slot() }}
  39. </div>
  40. </template>
  41. <div class="col-3">
  42. {{ order_macros.box_step_reach() }}
  43. </div>
  44. <div class="col-12">
  45. {{ macros.card_start('OrderShop.resume') }}
  46. {% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}
  47. {{ macros.card_end('isLoading') }}
  48. </div>
  49. <div class="col-6">
  50. {{ order_macros.box_payments() }}
  51. </div>
  52. {% if form_order_invoice_address is defined %}
  53. {% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
  54. {% endif %}
  55. {% if form_order_delivery_address is defined %}
  56. {% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
  57. {% endif %}
  58. {% if form_order_delivery_availability is defined %}
  59. {% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
  60. {% endif %}
  61. {% if form_order_status is defined %}
  62. {% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
  63. {% endif %}
  64. {% if form_add_order_reduction_credit is defined %}
  65. {% include '@LcShop/backend/order/form/modal_addorderreductioncredit.html.twig' %}
  66. {% endif %}
  67. {% if form_add_order_reduction_cart is defined %}
  68. {% include '@LcShop/backend/order/form/modal_addorderreductioncart.html.twig' %}
  69. {% endif %}
  70. {% if form_delete_order_reduction_cart is defined %}
  71. {% include '@LcShop/backend/order/form/modal_deletereductioncart.html.twig' %}
  72. {% endif %}
  73. {% if form_delete_order_reduction_credit is defined %}
  74. {% include '@LcShop/backend/order/form/modal_deletereductioncredit.html.twig' %}
  75. {% endif %}
  76. {% if form_add_product_to_order is defined %}
  77. {% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
  78. {% endif %}
  79. {% if form_order_payment is defined %}
  80. {% include '@LcShop/backend/order/form/modal_orderpayment.html.twig' %}
  81. {% endif %}
  82. {% if form_delete_order_payment is defined %}
  83. {% include '@LcShop/backend/order/form/modal_deleteorderpayment.html.twig' %}
  84. {% endif %}
  85. {% if form_add_redelivery_order_product is defined %}
  86. {% include '@LcShop/backend/order/form/modal_addredeliveryorderproduct.html.twig' %}
  87. {% endif %}
  88. {% if form_order_send_payment_link is defined %}
  89. {% include '@LcShop/backend/order/form/modal_sendpaymentlink.html.twig' %}
  90. {% endif %}
  91. {% include '@LcShop/backend/order/form/modal_orderstatushistories.html.twig' %}
  92. </div>
  93. </div>
  94. {% endblock %}
  95. {% block script_javascript %}
  96. {{ parent() }}
  97. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  98. <script src="{{ asset('bundles/lcshop/js/backend/script/order/vuejs-order.js')|lc_cache }}"></script>
  99. {% endblock %}